Compare commits

...

5 Commits

12 changed files with 41 additions and 23 deletions

View File

@@ -40,7 +40,7 @@
networkmanager
networkmanagerapplet
nmap
# nvtopPackages.full # <- Build failure: https://github.com/nixos/nixpkgs/issues/456928
nvtopPackages.full
openrgb-with-all-plugins
pciutils
rofi-bluetooth

View File

@@ -25,6 +25,7 @@
environment.systemPackages = with pkgs; [
arandr
bemenu
dunst
grim
hyprpaper
@@ -39,7 +40,7 @@
swayimg
wl-clipboard
wlogout
bemenu
];
}

View File

@@ -4,6 +4,7 @@
enable = true;
extraRules = [
{
groups = [ "wheel" ];
commands = [
{
command = "${pkgs.systemd}/bin/reboot";
@@ -14,7 +15,16 @@
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}
{
users = [ "caperren" ];
commands = [
{
command = "${pkgs.nvtopPackages.full}/bin/nvtop";
options = [ "NOPASSWD" "SETENV" ];
}
];
}
];
};

View File

@@ -43,7 +43,11 @@ in
programs.bemenu.enable = true;
programs.kitty = {
enable = true;
font.name = "JetBrains Mono";
settings = {
allow_remote_control = true;
};
};
# Assets/scripts
@@ -74,16 +78,19 @@ in
home.file.".config/wlogout/layout".source = ./dotfiles/wlogout/layout;
# Desktop entry files so bemenu can find them
home.file.".local/share/glava.desktop".source = ./dotfiles/.local/share/glava.desktop;
home.file.".local/share/jetbrains-toolbox.desktop".source =
./dotfiles/.local/share/jetbrains-toolbox.desktop;
home.file.".local/share/spotify-player.desktop".source =
./dotfiles/.local/share/spotify-player.desktop;
home.file.".local/share/applications/alltop.desktop".source =
./dotfiles/.local/share/applications/alltop.desktop;
home.file.".local/share/applications/glava.desktop".source =
./dotfiles/.local/share/applications/glava.desktop;
home.file.".local/share/applications/phonerdp.desktop".source =
./dotfiles/.local/share/applications/phonerdp.desktop;
home.file.".local/share/applications/spotify-player.desktop".source =
./dotfiles/.local/share/applications/spotify-player.desktop;
# Custom bash aliases
home.shellAliases = {
# Phone remote desktop over usb (adb), with some default flags I want
phonerdp = "scrcpy --no-audio --orientation=0 --turn-screen-off --fullscreen";
phonerdp = "scrcpy --no-audio --orientation=0 --turn-screen-off --stay-awake";
# Streamdeck isn't easy to manually edit, so make a save command to copy any updates to the repo
savestreamdeck = "cp ~/.streamdeck_ui.json ~/.nixos-configs/users/caperren/dotfiles/streamdeck/.streamdeck_ui.json";

View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=All Top
Exec=bash -c "kitty --single-instance --detach bash -c 'kitten @ launch --type=window --title btop btop ; kitten @ launch --type=window --title nvtop nvtop'"
Icon=alltop
Terminal=false
Categories=Utilities;

View File

@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
Name=Phone RDP
Exec=bash -c "phonerdp"
Exec=bash -c "scrcpy --no-audio --orientation=0 --turn-screen-off --stay-awake"
Icon=phonerdp
Terminal=false
Categories=Utilities;

View File

@@ -1,7 +0,0 @@
[Desktop Entry]
Type=Application
Name=JetBrains Toolbox
Exec=jetbrains-toolbox
Icon=jetbrains-toolbox
Terminal=false
Categories=Development;IDE;

View File

@@ -4,7 +4,7 @@ monitor=,preferred,auto,1
# Set programs that you use
$terminal = kitty
$fileManager = thunar
$menu = bemenu-run --line-height 22 --hf "##10AC25" --ff "##10AC25" --tf "##10AC25"
$menu = j4-dmenu-desktop --dmenu='bemenu --ignorecase --line-height 22 --hf "##10AC25" --ff "##10AC25" --tf "##10AC25"' --term='kitty'
# Some default env vars
env = XCURSOR_SIZE,24

View File

@@ -176,14 +176,14 @@
"states": {
"0": {
"text": "",
"icon": "/home/caperren/.config/streamdeck-ui/icons/glances-logo.png",
"icon": "/home/caperren/.config/streamdeck-ui/icons/btop-logo.png",
"keys": "",
"write": "",
"command": "kitty -e glances",
"command": "bash -c \"kitty --single-instance --detach bash -c 'kitten @ launch --type=window --title btop btop ; kitten @ launch --type=window --title nvtop nvtop'\"",
"brightness_change": 0,
"switch_page": 0,
"switch_state": 0,
"text_vertical_align": "middle",
"text_vertical_align": "top",
"text_horizontal_align": "",
"font": "",
"font_color": "",
@@ -582,7 +582,7 @@
"write": "",
"command": "kitty -e bash -i -c nrs",
"brightness_change": 0,
"switch_page": 0,
"switch_page": 1,
"switch_state": 0,
"text_vertical_align": "middle",
"text_horizontal_align": "",
@@ -603,7 +603,7 @@
"write": "",
"command": "kitty -e bash -i -c nus",
"brightness_change": 0,
"switch_page": 0,
"switch_page": 1,
"switch_state": 0,
"text_vertical_align": "middle",
"text_horizontal_align": "",

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB