BSPWM config tweaks
This commit is contained in:
parent
da9a10cfbb
commit
161c096f49
|
@ -9,6 +9,7 @@ in {
|
||||||
extraConfigEarly = lib.strings.concatStringsSep "\n" [
|
extraConfigEarly = lib.strings.concatStringsSep "\n" [
|
||||||
"xsetroot -cursor_name left_ptr"
|
"xsetroot -cursor_name left_ptr"
|
||||||
"xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Scrolling Distance' 60 60"
|
"xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Scrolling Distance' 60 60"
|
||||||
|
"setxkbmap"
|
||||||
];
|
];
|
||||||
extraConfig = lib.strings.concatStringsSep "\n"
|
extraConfig = lib.strings.concatStringsSep "\n"
|
||||||
[ "nitrogen --set-zoom-fill ${../../../external/6.png}" ];
|
[ "nitrogen --set-zoom-fill ${../../../external/6.png}" ];
|
||||||
|
@ -43,6 +44,8 @@ in {
|
||||||
"Yubico Authenticator".state = "floating";
|
"Yubico Authenticator".state = "floating";
|
||||||
"firefox:Places".state = "floating";
|
"firefox:Places".state = "floating";
|
||||||
};
|
};
|
||||||
|
startupPrograms =
|
||||||
|
[ "firefox" "element-desktop" "telegram-desktop" "geary" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.sxhkd = {
|
services.sxhkd = {
|
||||||
|
@ -65,6 +68,9 @@ in {
|
||||||
"super + shift + c" = ''
|
"super + shift + c" = ''
|
||||||
ROFI_PLUGIN_PATH=${pkgs.rofi-calc}/lib/rofi rofi -show calc -modi calc -calc-command '${pkgs.xdotool}/bin/xdotool type --clearmodifiers "\{result\}'
|
ROFI_PLUGIN_PATH=${pkgs.rofi-calc}/lib/rofi rofi -show calc -modi calc -calc-command '${pkgs.xdotool}/bin/xdotool type --clearmodifiers "\{result\}'
|
||||||
'';
|
'';
|
||||||
|
"super + shift + e" = ''
|
||||||
|
rofimoji --action clipboard
|
||||||
|
'';
|
||||||
# Media keys
|
# Media keys
|
||||||
"XF86Audio{Raise,Lower}Volume" = "pamixer {-i,-d} 5";
|
"XF86Audio{Raise,Lower}Volume" = "pamixer {-i,-d} 5";
|
||||||
"XF86AudioMute" = "pamixer -t";
|
"XF86AudioMute" = "pamixer -t";
|
||||||
|
@ -106,8 +112,8 @@ in {
|
||||||
# Move floating window
|
# Move floating window
|
||||||
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
|
||||||
# Lock screen
|
# Lock screen
|
||||||
"super + x" =
|
"super + x" = ''
|
||||||
"betterlockscreen --lock dimblur; systemctl --user restart gpg-agent";
|
betterlockscreen --lock dimblur --time-format "%H:%M"; systemctl --user restart gpg-agent'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, pkgs, ... }: {
|
{ lib, pkgs, ... }: {
|
||||||
colorscheme = name: image: rec {
|
colorscheme = name: image: rec {
|
||||||
generate = pkgs.callPackage ({ runCommand, colorz }:
|
generate = pkgs.callPackage ({ runCommand, colorz }:
|
||||||
runCommand name { nativeBuildInputs = [ colorz ]; } ''
|
runCommand "colors-${name}" { nativeBuildInputs = [ colorz ]; } ''
|
||||||
colorz ${image} --no-preview -n 8 --minv 0 --maxv 255 | awk '{print $1} {print $2}' > $out
|
colorz ${image} --no-preview -n 8 --minv 0 --maxv 255 | awk '{print $1} {print $2}' > $out
|
||||||
'') { };
|
'') { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue