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";}
### Stuff that I actually need
{block = "backlight";}
{block = "sound";}
{block = "battery";}
{block = "time";}

View file

@ -67,8 +67,6 @@
modifier = "Mod4";
keybindings = let
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";
in
{
@ -108,11 +106,11 @@
"Print+Control" = "exec ${screenshot} swappy";
# Fn keys
"XF86MonBrightnessUp" = "exec ${setBrightness} up";
"XF86MonBrightnessDown" = "exec ${setBrightness} down";
"XF86AudioRaiseVolume" = "exec ${setVolume} up";
"XF86AudioLowerVolume" = "exec ${setVolume} down";
"XF86AudioMute" = "exec ${setVolume} mute";
"XF86MonBrightnessUp" = "exec ${lib.getExe pkgs.brightnessctl} set 5%+";
"XF86MonBrightnessDown" = "exec ${lib.getExe pkgs.brightnessctl} set 5%-";
"XF86AudioRaiseVolume" = "exec ${lib.getExe pkgs.pamixer} -i5";
"XF86AudioLowerVolume" = "exec ${lib.getExe pkgs.pamixer} -d5";
"XF86AudioMute" = "exec ${lib.getExe pkgs.pamixer} -t";
"XF86AudioPlay" = "exec ${lib.getExe pkgs.playerctl} play";
"XF86AudioPause" = "exec ${lib.getExe pkgs.playerctl} pause";
"XF86AudioPrev" = "exec ${lib.getExe pkgs.playerctl} previous";

View file

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