nixos: drop scripts

This commit is contained in:
Guanran Wang 2024-02-02 20:49:19 +08:00
parent aeda65e117
commit d258257f5e
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
7 changed files with 13 additions and 14 deletions

View file

@ -15,6 +15,7 @@
{block = "load";} {block = "load";}
### Stuff that I actually need ### Stuff that I actually need
{block = "backlight";}
{block = "sound";} {block = "sound";}
{block = "battery";} {block = "battery";}
{block = "time";} {block = "time";}

View file

@ -67,8 +67,6 @@
modifier = "Mod4"; modifier = "Mod4";
keybindings = let keybindings = let
inherit (config.wayland.windowManager.sway.config) modifier; inherit (config.wayland.windowManager.sway.config) modifier;
setBrightness = "/home/guanranwang/.local/bin/wrapped-brightnessctl";
setVolume = "/home/guanranwang/.local/bin/wrapped-pamixer";
screenshot = "/home/guanranwang/.local/bin/screenshot"; screenshot = "/home/guanranwang/.local/bin/screenshot";
in in
{ {
@ -108,11 +106,11 @@
"Print+Control" = "exec ${screenshot} swappy"; "Print+Control" = "exec ${screenshot} swappy";
# Fn keys # Fn keys
"XF86MonBrightnessUp" = "exec ${setBrightness} up"; "XF86MonBrightnessUp" = "exec ${lib.getExe pkgs.brightnessctl} set 5%+";
"XF86MonBrightnessDown" = "exec ${setBrightness} down"; "XF86MonBrightnessDown" = "exec ${lib.getExe pkgs.brightnessctl} set 5%-";
"XF86AudioRaiseVolume" = "exec ${setVolume} up"; "XF86AudioRaiseVolume" = "exec ${lib.getExe pkgs.pamixer} -i5";
"XF86AudioLowerVolume" = "exec ${setVolume} down"; "XF86AudioLowerVolume" = "exec ${lib.getExe pkgs.pamixer} -d5";
"XF86AudioMute" = "exec ${setVolume} mute"; "XF86AudioMute" = "exec ${lib.getExe pkgs.pamixer} -t";
"XF86AudioPlay" = "exec ${lib.getExe pkgs.playerctl} play"; "XF86AudioPlay" = "exec ${lib.getExe pkgs.playerctl} play";
"XF86AudioPause" = "exec ${lib.getExe pkgs.playerctl} pause"; "XF86AudioPause" = "exec ${lib.getExe pkgs.playerctl} pause";
"XF86AudioPrev" = "exec ${lib.getExe pkgs.playerctl} previous"; "XF86AudioPrev" = "exec ${lib.getExe pkgs.playerctl} previous";

View file

@ -2,8 +2,8 @@
binPATH = ".local/bin"; binPATH = ".local/bin";
in { in {
home.packages = with pkgs; [ home.packages = with pkgs; [
pamixer #pamixer
brightnessctl #brightnessctl
grim grim
slurp slurp
swappy swappy
@ -11,14 +11,14 @@ in {
#mpvpaper #mpvpaper
#swww #swww
libnotify libnotify
dunst #dunst
]; ];
home.sessionPath = ["$HOME/${binPATH}"]; home.sessionPath = ["$HOME/${binPATH}"];
home.file = builtins.mapAttrs (_name: value: value // {executable = true;}) { home.file = builtins.mapAttrs (_name: value: value // {executable = true;}) {
${binPATH} = { #${binPATH} = {
source = ./bin; # source = ./bin;
recursive = true; # recursive = true;
}; #};
"${binPATH}/lofi".source = pkgs.fetchurl { "${binPATH}/lofi".source = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi"; url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";