mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
updated afk-cmds pkg
removed AFKCommands moved moonfly plugin to correct location switched from alacritty to st
This commit is contained in:
parent
ca947d62b9
commit
f353281d6b
12 changed files with 107 additions and 301 deletions
16
flake.nix
16
flake.nix
|
|
@ -31,22 +31,6 @@
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
(import ./suckless)
|
(import ./suckless)
|
||||||
(self: super:
|
|
||||||
let
|
|
||||||
vim-moonfly = super.vimUtils.buildVimPlugin {
|
|
||||||
name = "vim-moonfly";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "bluz71";
|
|
||||||
repo = "vim-moonfly-colors";
|
|
||||||
rev = "065c99b95355b33dfaa05bde11ad758e519b04a3";
|
|
||||||
sha256 = "sha256-TEYN8G/VNxitpPJPM7+O9AGLm6V7bPkiTlFG5op55pI=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
vimPlugins =
|
|
||||||
super.vimPlugins // { inherit vim-moonfly; };
|
|
||||||
}
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
{
|
|
||||||
programs.alacritty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
font.size = 9;
|
|
||||||
colors = {
|
|
||||||
primary = {
|
|
||||||
background = "0x000000";
|
|
||||||
foreground = "0xa9b1d6";
|
|
||||||
};
|
|
||||||
normal = {
|
|
||||||
black = "0x32344a";
|
|
||||||
red = "0xf7768e";
|
|
||||||
green = "0x9ece6a";
|
|
||||||
yellow = "0xe0af68";
|
|
||||||
blue = "0x7aa2f7";
|
|
||||||
magenta = "0xad8ee6";
|
|
||||||
cyan = "0x449dab";
|
|
||||||
white = "0x787c99";
|
|
||||||
};
|
|
||||||
bright = {
|
|
||||||
black = "0x444b6a";
|
|
||||||
red = "0xff7a93";
|
|
||||||
green = "0xb9f27c";
|
|
||||||
yellow = "0xff9e64";
|
|
||||||
blue = "0x7da6ff";
|
|
||||||
magenta = "0xbb9af7";
|
|
||||||
cyan = "0x0db9d7";
|
|
||||||
white = "0xacb0d0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<actions>
|
|
||||||
<action>
|
|
||||||
<icon>utilities-terminal</icon>
|
|
||||||
<name>Open Terminal Here</name>
|
|
||||||
<unique-id>1651604010244754-1</unique-id>
|
|
||||||
<command>alacritty --working-directory %f </command>
|
|
||||||
<description>Example for a custom action</description>
|
|
||||||
<patterns>*</patterns>
|
|
||||||
<startup-notify/>
|
|
||||||
<directories/>
|
|
||||||
</action>
|
|
||||||
<action>
|
|
||||||
<icon>folder</icon>
|
|
||||||
<name>Root</name>
|
|
||||||
<unique-id>1651640324751320-1</unique-id>
|
|
||||||
<command>qsudo thunar %f</command>
|
|
||||||
<description></description>
|
|
||||||
<patterns>*</patterns>
|
|
||||||
<directories/>
|
|
||||||
</action>
|
|
||||||
<action>
|
|
||||||
<icon>org.xfce.catfish</icon>
|
|
||||||
<name>Search</name>
|
|
||||||
<unique-id>1651908115751880-1</unique-id>
|
|
||||||
<command>catfish --path=%f</command>
|
|
||||||
<description></description>
|
|
||||||
<patterns>*</patterns>
|
|
||||||
<directories/>
|
|
||||||
</action>
|
|
||||||
</actions>
|
|
||||||
|
|
@ -3,7 +3,7 @@ configuration{
|
||||||
lines: 5;
|
lines: 5;
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
icon-theme: "Flat-Remix-Blue-Dark";
|
icon-theme: "Flat-Remix-Blue-Dark";
|
||||||
terminal: "alacritty";
|
terminal: "st";
|
||||||
drun-display-format: "{name}";
|
drun-display-format: "{name}";
|
||||||
location: 0;
|
location: 0;
|
||||||
disable-history: false;
|
disable-history: false;
|
||||||
|
|
|
||||||
|
|
@ -1,109 +0,0 @@
|
||||||
configuration {
|
|
||||||
show-icons: true;
|
|
||||||
icon-theme: "Flat-Remix-Blue-Dark";
|
|
||||||
disable-history: true;
|
|
||||||
fullscreen: false;
|
|
||||||
hide-scrollbar: true;
|
|
||||||
sidebar-mode: false;
|
|
||||||
display-window: "";
|
|
||||||
window-format : "{t}";
|
|
||||||
window-thumbnail: false;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
background-color: #000000;
|
|
||||||
black: #000000;
|
|
||||||
text-color: #7AA2F7;
|
|
||||||
blue: #7AA2F7;
|
|
||||||
deepblue: #03339c;
|
|
||||||
clear: #00000000;
|
|
||||||
font: "Overpass 16";
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
border: 0px;
|
|
||||||
border-color: @deepblue;
|
|
||||||
border-radius: 20px;
|
|
||||||
height: 18.8%;
|
|
||||||
location: center;
|
|
||||||
x-offset: 0;
|
|
||||||
y-offset: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt {
|
|
||||||
enabled: false;
|
|
||||||
padding: 0.25% 0.75% 0% -0.25%;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
enabled: false;
|
|
||||||
placeholder-color: @blue;
|
|
||||||
expand: false;
|
|
||||||
horizontal-align: 0;
|
|
||||||
placeholder: "Switch to...";
|
|
||||||
padding: 0% 0% 0% 0%;
|
|
||||||
blink: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputbar {
|
|
||||||
enabled: false;
|
|
||||||
children: [ prompt, entry];
|
|
||||||
expand: false;
|
|
||||||
border: 0.3% 0% 0.3% 0%;
|
|
||||||
border-radius: 100%;
|
|
||||||
border-color: @deepblue;
|
|
||||||
margin: 0% 0% 0% 0%;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
margin: 0.3% 0% 0% 0%;
|
|
||||||
columns: 6;
|
|
||||||
row: 1;
|
|
||||||
spacing: 1%;
|
|
||||||
cycle: true;
|
|
||||||
dynamic: true;
|
|
||||||
layout: vertical;
|
|
||||||
fixed-height : true;
|
|
||||||
}
|
|
||||||
|
|
||||||
mainbox {
|
|
||||||
border: 0% 0% 0% 0%;
|
|
||||||
border-radius: 0% 0% 0% 0%;
|
|
||||||
border-color: @accent;
|
|
||||||
children: [ inputbar, listview];
|
|
||||||
spacing: -100%;
|
|
||||||
padding: 1.5% 1% 1% 1%;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
orientation: vertical;
|
|
||||||
border-radius: 100px;
|
|
||||||
padding: 2% 0% 0% 0%;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
size: 100px;
|
|
||||||
border: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-text {
|
|
||||||
expand: false;
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
vertical-align: 0.9;
|
|
||||||
margin: 1% 0.5% 0.7% 0.5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected {
|
|
||||||
background-color: @deepblue;
|
|
||||||
border: 3px;
|
|
||||||
border-radius: 15px;
|
|
||||||
border-color: @deepblue;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-text, element-icon, element {
|
|
||||||
background-color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview, element, element selected, element-icon, element-text {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
./sxhkd.nix
|
./sxhkd.nix
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
./polybar.nix
|
./polybar.nix
|
||||||
./alacritty.nix
|
|
||||||
./theme.nix
|
./theme.nix
|
||||||
./picom.nix
|
./picom.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,19 @@
|
||||||
{pkgs, ... }:
|
{pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
vim-moonfly = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "vim-moonfly";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "bluz71";
|
||||||
|
repo = "vim-moonfly-colors";
|
||||||
|
rev = "065c99b95355b33dfaa05bde11ad758e519b04a3";
|
||||||
|
sha256 = "sha256-TEYN8G/VNxitpPJPM7+O9AGLm6V7bPkiTlFG5op55pI=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
./theme.nix
|
./theme.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./neovim
|
./neovim
|
||||||
./alacritty.nix
|
|
||||||
];
|
];
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
home = {
|
home = {
|
||||||
|
|
@ -12,10 +11,6 @@
|
||||||
homeDirectory = "/root";
|
homeDirectory = "/root";
|
||||||
stateVersion = "22.11";
|
stateVersion = "22.11";
|
||||||
file = {
|
file = {
|
||||||
".config/Thunar" = {
|
|
||||||
source = ./config/Thunar;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
".config/neofetch/config.conf" = {
|
".config/neofetch/config.conf" = {
|
||||||
source = ./config/neofetch/config.conf;
|
source = ./config/neofetch/config.conf;
|
||||||
recursive = false;
|
recursive = false;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
#terminal
|
#terminal
|
||||||
"super + Return" = "alacritty";
|
"super + Return" = "st";
|
||||||
#application launcher
|
#application launcher
|
||||||
"super + @space" = "rofi -show drun";
|
"super + @space" = "rofi -show drun";
|
||||||
#kill sxhkd
|
#kill sxhkd
|
||||||
|
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
{ lib
|
|
||||||
, stdenv
|
|
||||||
, writeText
|
|
||||||
, fetchFromGitHub
|
|
||||||
, xorg
|
|
||||||
, glibc
|
|
||||||
, t-rex-miner
|
|
||||||
}:
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "AFKCommands";
|
|
||||||
version = "1.0.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "ISnortPennies";
|
|
||||||
repo = "AFKCommands";
|
|
||||||
rev = "6bb107e8f4ff593e1540986263fad9cb60e7e79a";
|
|
||||||
sha256 = "sha256-toJPE/8obPXaSiw0LFRF05AIuD8gGL3YB10cn6FlvEc=";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
xorg.libXScrnSaver
|
|
||||||
xorg.libX11
|
|
||||||
];
|
|
||||||
|
|
||||||
ConfigText = writeText "config.h" ''
|
|
||||||
const int AFK = 300;
|
|
||||||
const int RESTART = 60;
|
|
||||||
const char* COMMANDS[] = {
|
|
||||||
"xmrig --no-color -o rx.unmineable.com:3333 -u XMR:46vHuD3G9wKVpoBV7rwQQzCRfBw3rxUo3fzj1G9mSFqPg2A71pspHsTTD2Y5hmPXFuVUXRzFj6NevVRUHriDerhw5JcNkXV.nixos",
|
|
||||||
"t-rex --no-color -a autolykos2 -o autolykos.unmineable.com:3333 -u XMR:46vHuD3G9wKVpoBV7rwQQzCRfBw3rxUo3fzj1G9mSFqPg2A71pspHsTTD2Y5hmPXFuVUXRzFj6NevVRUHriDerhw5JcNkXV.nixos --mt 4"
|
|
||||||
};
|
|
||||||
'';
|
|
||||||
configurePhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
export C_INCLUDE_PATH=$out
|
|
||||||
cp $ConfigText $out/config.h
|
|
||||||
export PREFIX=$out
|
|
||||||
'';
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://github.com/ISnortPennies/AFKCommands";
|
|
||||||
description = "";
|
|
||||||
license = licenses.unlicense;
|
|
||||||
maintainers = with maintainers; [ ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +1,17 @@
|
||||||
{ lib
|
{ lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, xorg
|
, wrapGAppsHook
|
||||||
|
, libX11
|
||||||
|
, libXScrnSaver
|
||||||
|
, pkg-config
|
||||||
|
, cairo
|
||||||
|
, glib
|
||||||
|
, gdk-pixbuf
|
||||||
|
, gtkmm3
|
||||||
|
, pango
|
||||||
|
, libappindicator-gtk3
|
||||||
|
, atk
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "afk-cmds";
|
pname = "afk-cmds";
|
||||||
|
|
@ -10,16 +20,34 @@ rustPlatform.buildRustPackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ISnortPennies";
|
owner = "ISnortPennies";
|
||||||
repo = "afk-cmds";
|
repo = "afk-cmds";
|
||||||
rev = "6a131c4892ea411281426d1165a48607e556f729";
|
rev = "b345d5a038a86c6ca31d3bd8800ac759da912a22";
|
||||||
sha256 = "sha256-LK6XeQc5Rc7KxwL2r2L3dCAKtbENuigbyTTuS+7JKnQ=";
|
sha256 = "sha256-yleq8bg3ZnilbYTNXRteBALiJ/fIXOxXxqf966OokqQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
xorg.libXScrnSaver
|
libX11
|
||||||
xorg.libX11
|
libXScrnSaver
|
||||||
|
cairo
|
||||||
|
glib
|
||||||
|
gdk-pixbuf
|
||||||
|
gtkmm3
|
||||||
|
pango
|
||||||
|
libappindicator-gtk3
|
||||||
|
atk
|
||||||
];
|
];
|
||||||
|
|
||||||
cargoSha256 = "sha256-Osxg/KuHOdnz8UYnbT69dmNFLHW6Cq1fLb32/UJeDUg=";
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/afk-cmds \
|
||||||
|
--prefix LD_LIBRARY_PATH : ${(lib.makeLibraryPath buildInputs)}
|
||||||
|
mkdir -p $out/share/icons/hicolor/256x256/apps/
|
||||||
|
cp $src/afk-icon.png $out/share/icons/hicolor/256x256/apps/afk-icon.png
|
||||||
|
'';
|
||||||
|
cargoSha256 = "sha256-CPpFUdgb0zTZAVlv4uhJ0Y7eocCjuEZNgQJdNwV1FI4=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ISnortPennies/AFKCommands";
|
homepage = "https://github.com/ISnortPennies/AFKCommands";
|
||||||
|
|
@ -28,5 +56,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,14 +50,18 @@
|
||||||
};
|
};
|
||||||
systemd.services.mining = {
|
systemd.services.mining = {
|
||||||
enable = true;
|
enable = true;
|
||||||
path = with pkgs; [ afk-cmds t-rex-miner xmrig alacritty zsh ];
|
path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig];
|
||||||
wantedBy = [ "graphical.target" ];
|
wantedBy = [ "graphical.target" ];
|
||||||
script = ''
|
script = ''
|
||||||
afk_cmds -c /home/gerg/afk-cmds.json
|
afk-cmds -c /home/gerg/afk-cmds.json
|
||||||
'';
|
'';
|
||||||
environment = {
|
environment = {
|
||||||
|
# PATH="/run/current-system/sw/bin"; missing something with dbus
|
||||||
XAUTHORITY="/home/gerg/.Xauthority";
|
XAUTHORITY="/home/gerg/.Xauthority";
|
||||||
DISPLAY=":0";
|
DISPLAY=":0";
|
||||||
|
XDG_DATA_DIRS="/nix/var/nix/profiles/default/share:/run/current-system/sw/share";
|
||||||
|
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus";
|
||||||
|
NO_AT_BRIDGE="1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue