Update Dunst and sxhkd
This commit is contained in:
parent
f17bfe4aa3
commit
53f62e4cd5
2 changed files with 28 additions and 53 deletions
|
|
@ -8,55 +8,22 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
package = pkgs.qogir-icon-theme;
|
package = pkgs.qogir-icon-theme;
|
||||||
name = "Qogir-dark";
|
name = "Qogir";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
monitor = 0;
|
width = "(0, 320)";
|
||||||
follow = "mouse";
|
height = 320;
|
||||||
geometry = "300x6-20+50";
|
notification_limit = 10;
|
||||||
indicate_hidden = false;
|
transparency = 100 - float.round (pkgs.rice.opacity * 100);
|
||||||
shrink = "yes";
|
frame_width = 1;
|
||||||
transparency = 10;
|
frame_color = strPalette.normal.blue;
|
||||||
notification_height = 0;
|
|
||||||
separator_height = 2;
|
|
||||||
padding = 8;
|
|
||||||
horizontal_padding = 8;
|
|
||||||
frame_width = 2;
|
|
||||||
frame_color = strPalette.normal.black;
|
|
||||||
separator_color = strPalette.normal.blue;
|
separator_color = strPalette.normal.blue;
|
||||||
sort = "yes";
|
|
||||||
idle_threshold = 120;
|
|
||||||
|
|
||||||
font = "${pkgs.rice.font.normal.name} 10";
|
font = "${pkgs.rice.font.normal.name} 10";
|
||||||
line_height = 0;
|
dmenu = "${pkgs.rofi}/bin/rofi -dmenu -p dunst:";
|
||||||
markup = "full";
|
browser = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||||
format = "<b>%s</b>\\n%b";
|
# corner_radius = 8;
|
||||||
alignment = "left";
|
|
||||||
show_age_threshold = 60;
|
|
||||||
word_wrap = "yes";
|
|
||||||
ellipsize = "middle";
|
|
||||||
ignore_newline = "no";
|
|
||||||
stack_duplicates = "true";
|
|
||||||
hide_duplicate_count = "false";
|
|
||||||
show_indicators = true;
|
|
||||||
icon_position = "off";
|
|
||||||
max_icon_size = 32;
|
|
||||||
sticky_history = "yes";
|
|
||||||
history_length = 20;
|
|
||||||
dmenu = "rofi -dmenu -p dunst:";
|
|
||||||
# browser = "google-chrome-stable";
|
|
||||||
browser = "firefox";
|
|
||||||
always_run_script = "true";
|
|
||||||
title = "Dunst";
|
|
||||||
class = "Dunst";
|
|
||||||
startup_notification = "false";
|
|
||||||
verbosity = "mesg";
|
|
||||||
corner_radius = 0;
|
|
||||||
force_xinerama = "false";
|
|
||||||
mouse_left_click = "close_current";
|
|
||||||
mouse_middle_click = "context";
|
mouse_middle_click = "context";
|
||||||
mouse_right_click = "close_all";
|
|
||||||
};
|
};
|
||||||
urgency_low = {
|
urgency_low = {
|
||||||
inherit (strPalette) background foreground;
|
inherit (strPalette) background foreground;
|
||||||
|
|
@ -72,10 +39,10 @@ in
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
};
|
};
|
||||||
shortcuts = {
|
shortcuts = {
|
||||||
close = "ctrl+space";
|
# close = "ctrl+space";
|
||||||
close_all = "ctrl+shift+space";
|
# close_all = "ctrl+shift+space";
|
||||||
history = "ctrl+backslash";
|
# history = "ctrl+backslash";
|
||||||
context = "ctrl+shift+period";
|
# context = "ctrl+shift+period";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@
|
||||||
bc
|
bc
|
||||||
gnome.gnome-screenshot
|
gnome.gnome-screenshot
|
||||||
lockscreen
|
lockscreen
|
||||||
pamixer
|
|
||||||
playerctl
|
playerctl
|
||||||
terminator
|
terminator
|
||||||
bsp-layout
|
bsp-layout
|
||||||
update-background
|
update-background
|
||||||
xorg.xbacklight
|
|
||||||
clipedit
|
clipedit
|
||||||
];
|
];
|
||||||
services.sxhkd =
|
services.sxhkd =
|
||||||
|
|
@ -23,6 +23,8 @@
|
||||||
emojiChooser = "rofimoji --skin-tone light -a copy";
|
emojiChooser = "rofimoji --skin-tone light -a copy";
|
||||||
yad = "${pkgs.yad}/bin/yad";
|
yad = "${pkgs.yad}/bin/yad";
|
||||||
notify = "${pkgs.libnotify}/bin/notify-send";
|
notify = "${pkgs.libnotify}/bin/notify-send";
|
||||||
|
pamixer = "${pkgs.pamixer}/bin/pamixer";
|
||||||
|
xbacklight = "${pkgs.xorg.xbacklight}/bin/xbacklight";
|
||||||
resetBspwm = pkgs.writeShellScript "resetBspwm" ''
|
resetBspwm = pkgs.writeShellScript "resetBspwm" ''
|
||||||
bspc wm -r
|
bspc wm -r
|
||||||
systemctl --user restart polybar # Restart polybar
|
systemctl --user restart polybar # Restart polybar
|
||||||
|
|
@ -30,6 +32,14 @@
|
||||||
moveAllNodesToPrimary = pkgs.writeShellScript "moveAllNodesToPrimary" ''
|
moveAllNodesToPrimary = pkgs.writeShellScript "moveAllNodesToPrimary" ''
|
||||||
comm -23 <(bspc query -N | sort) <(bspc query -m primary -N | sort) | while read n; do bspc node $n -m primary; done
|
comm -23 <(bspc query -N | sort) <(bspc query -m primary -N | sort) | while read n; do bspc node $n -m primary; done
|
||||||
'';
|
'';
|
||||||
|
notifyVolume = pkgs.writeShellScript "notifyVolume" ''
|
||||||
|
volume=`${pamixer} --get-volume`
|
||||||
|
${notify} -r 1 -h "int:value:$volume" "Volume $volume%"
|
||||||
|
'';
|
||||||
|
notifyBrightness = pkgs.writeShellScript "notifyBrightness" ''
|
||||||
|
level=`printf "%.0f" $(${xbacklight} -get)`
|
||||||
|
${notify} -r 2 -h "int:value:$level" "Luminosità $level"
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -77,11 +87,9 @@
|
||||||
"super + {_,shift + } w" = "bspc node -{c,k}";
|
"super + {_,shift + } w" = "bspc node -{c,k}";
|
||||||
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
"super + {t,shift + t,s,f}" = "bspc node -t {tiled,pseudo_tiled,floating,fullscreen}";
|
||||||
# "super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
|
# "super + y" = "bspc node newest.marked.local -n newest.!automatic.local";
|
||||||
"{XF86AudioLowerVolume,XF86AudioMute,XF86AudioRaiseVolume}" = "pamixer {-d 2 -u,-t,-i 2 -u} && ${notify} -r 1 Volume `pamixer --get-volume-human`";
|
"XF86Audio{LowerVolume,Mute,RaiseVolume}" = "${pamixer} {-d 2 -u,-t,-i 2 -u} && ${notifyVolume}";
|
||||||
"XF86Audio{Next,Play,Prev}" = "playerctl {next,play-pause,previous}";
|
"XF86Audio{Next,Play,Prev}" = "playerctl {next,play-pause,previous}";
|
||||||
"XF86MonBrightness{Up,Down}" = ''
|
"XF86MonBrightness{Up,Down}" = " ${xbacklight} -{inc,dec} 10 && ${notifyBrightness}";
|
||||||
xbacklight -{inc,dec} 10 && ${notify} -r 2 Luminosità `printf "%.0f" $(xbacklight -get)`
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue