BSPWM config tweaks

This commit is contained in:
Agatha Lovelace 2023-04-07 18:21:43 +02:00
parent da9a10cfbb
commit 161c096f49
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
2 changed files with 9 additions and 3 deletions

View File

@ -9,6 +9,7 @@ in {
extraConfigEarly = lib.strings.concatStringsSep "\n" [
"xsetroot -cursor_name left_ptr"
"xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Scrolling Distance' 60 60"
"setxkbmap"
];
extraConfig = lib.strings.concatStringsSep "\n"
[ "nitrogen --set-zoom-fill ${../../../external/6.png}" ];
@ -43,6 +44,8 @@ in {
"Yubico Authenticator".state = "floating";
"firefox:Places".state = "floating";
};
startupPrograms =
[ "firefox" "element-desktop" "telegram-desktop" "geary" ];
};
services.sxhkd = {
@ -65,6 +68,9 @@ in {
"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\}'
'';
"super + shift + e" = ''
rofimoji --action clipboard
'';
# Media keys
"XF86Audio{Raise,Lower}Volume" = "pamixer {-i,-d} 5";
"XF86AudioMute" = "pamixer -t";
@ -106,8 +112,8 @@ in {
# Move floating window
"super + {Left,Down,Up,Right}" = "bspc node -v {-20 0,0 20,0 -20,20 0}";
# Lock screen
"super + x" =
"betterlockscreen --lock dimblur; systemctl --user restart gpg-agent";
"super + x" = ''
betterlockscreen --lock dimblur --time-format "%H:%M"; systemctl --user restart gpg-agent'';
};
};
};

View File

@ -1,7 +1,7 @@
{ lib, pkgs, ... }: {
colorscheme = name: image: rec {
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
'') { };