list windows
This commit is contained in:
parent
de8855153e
commit
9ddd8edd1f
|
@ -1,6 +1,7 @@
|
||||||
[bar/bar]
|
[bar/bar]
|
||||||
modules-right = tray pulseaudio battery date
|
modules-right = tray pulseaudio battery date
|
||||||
modules-left = ewmh
|
modules-left = ewmh
|
||||||
|
modules-center = polywin
|
||||||
padding-right = 15px
|
padding-right = 15px
|
||||||
padding-left = 10px
|
padding-left = 10px
|
||||||
bottom = true
|
bottom = true
|
||||||
|
@ -86,3 +87,11 @@ type = internal/tray
|
||||||
|
|
||||||
format-margin = 8px
|
format-margin = 8px
|
||||||
tray-spacing = 8px
|
tray-spacing = 8px
|
||||||
|
|
||||||
|
[module/polywin]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/.config/polybar/scripts/polywin.sh
|
||||||
|
format = <label>
|
||||||
|
label = %output%
|
||||||
|
label-padding = 1
|
||||||
|
interval = 1
|
||||||
|
|
|
@ -95,6 +95,25 @@ in rec {
|
||||||
file.".config/berry/autostart" = {
|
file.".config/berry/autostart" = {
|
||||||
source = ./berry_config;
|
source = ./berry_config;
|
||||||
};
|
};
|
||||||
|
file.".config/polybar/scripts/polywin.sh" = {
|
||||||
|
source = pkgs.writeScript "polywin.sh" ''
|
||||||
|
PATH="$PATH:${pkgs.lib.makeBinPath [
|
||||||
|
pkgs.wmctrl
|
||||||
|
pkgs.gawk
|
||||||
|
pkgs.coreutils-full
|
||||||
|
]}"
|
||||||
|
current_display=$(wmctrl -d|awk '/*/ {print $1}')
|
||||||
|
|
||||||
|
wmctrl -lx |
|
||||||
|
awk -v current_display="$current_display" '{
|
||||||
|
if ($2==current_display) {
|
||||||
|
split($3,window_title,".")
|
||||||
|
printf "%s ", "["tolower(window_title[2])"]"
|
||||||
|
}
|
||||||
|
}'
|
||||||
|
'';
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -488,6 +507,8 @@ in rec {
|
||||||
"super + f" = "berryc fullscreen_state";
|
"super + f" = "berryc fullscreen_state";
|
||||||
"alt + Tab" = "berryc cycle_focus";
|
"alt + Tab" = "berryc cycle_focus";
|
||||||
"~button1" = "berryc pointer_focus";
|
"~button1" = "berryc pointer_focus";
|
||||||
|
"~button2" = "berryc pointer_focus";
|
||||||
|
"~button3" = "berryc pointer_focus";
|
||||||
"~Escape" = "dunstctl close-all";
|
"~Escape" = "dunstctl close-all";
|
||||||
"Print" = "maim -s ~/img/scrot$(date +%s).png";
|
"Print" = "maim -s ~/img/scrot$(date +%s).png";
|
||||||
"XF86AudioMute" = "${vol} mute";
|
"XF86AudioMute" = "${vol} mute";
|
||||||
|
@ -523,6 +544,12 @@ in rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
redshift = {
|
||||||
|
enable = true;
|
||||||
|
latitude = "57.70";
|
||||||
|
longitude = "11.97";
|
||||||
|
};
|
||||||
|
|
||||||
network-manager-applet.enable = true;
|
network-manager-applet.enable = true;
|
||||||
blueman-applet.enable = true;
|
blueman-applet.enable = true;
|
||||||
betterlockscreen.enable = true;
|
betterlockscreen.enable = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user