mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
polybar audio and power buttons
also switched from systemd because it breaks rofi
This commit is contained in:
parent
8283480fd1
commit
985b8bf13b
@ -36,7 +36,7 @@
|
|||||||
module-margin = 1;
|
module-margin = 1;
|
||||||
modules-left = "i3";
|
modules-left = "i3";
|
||||||
modules-center = "xwindow";
|
modules-center = "xwindow";
|
||||||
modules-right = "pulseaudio date";
|
modules-right = "pulseaudio date power";
|
||||||
cursor-click = "pointer";
|
cursor-click = "pointer";
|
||||||
cursor-scroll = "ns-resize";
|
cursor-scroll = "ns-resize";
|
||||||
enable-ipc = true;
|
enable-ipc = true;
|
||||||
@ -115,6 +115,7 @@
|
|||||||
ramp-volume-0 = "";
|
ramp-volume-0 = "";
|
||||||
ramp-volume-1 = "墳";
|
ramp-volume-1 = "墳";
|
||||||
ramp-volume-2 = "";
|
ramp-volume-2 = "";
|
||||||
|
click-right = config.audioSwitchCommand;
|
||||||
};
|
};
|
||||||
# "module/xkeyboard" = {
|
# "module/xkeyboard" = {
|
||||||
# type = "internal/xkeyboard";
|
# type = "internal/xkeyboard";
|
||||||
@ -166,6 +167,12 @@
|
|||||||
label-foreground = config.theme.colors.base0A;
|
label-foreground = config.theme.colors.base0A;
|
||||||
# format-background = colors.background;
|
# format-background = colors.background;
|
||||||
};
|
};
|
||||||
|
"module/power" = {
|
||||||
|
type = "custom/text";
|
||||||
|
content = " ";
|
||||||
|
click-left = config.powerCommand;
|
||||||
|
content-foreground = config.theme.colors.base04;
|
||||||
|
};
|
||||||
"settings" = {
|
"settings" = {
|
||||||
screenchange-reload = true;
|
screenchange-reload = true;
|
||||||
pseudo-transparency = false;
|
pseudo-transparency = false;
|
||||||
@ -174,7 +181,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
xsession.windowManager.i3.config.startup = [{
|
xsession.windowManager.i3.config.startup = [{
|
||||||
command = "systemctl --user restart polybar";
|
command = "pkill polybar; polybar -r main";
|
||||||
always = true;
|
always = true;
|
||||||
notification = false;
|
notification = false;
|
||||||
}];
|
}];
|
||||||
|
@ -5,7 +5,14 @@
|
|||||||
sink=$(
|
sink=$(
|
||||||
ponymix -t sink list |
|
ponymix -t sink list |
|
||||||
awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}' |
|
awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}' |
|
||||||
rofi -dmenu -p 'pulseaudio sink:' -location 6 -width 100 -theme-str 'inputbar { enabled: false; }' |
|
rofi \
|
||||||
|
-dmenu \
|
||||||
|
-p 'pulseaudio sink:' \
|
||||||
|
-width 100 \
|
||||||
|
-hover-select \
|
||||||
|
-me-select-entry '' \
|
||||||
|
-me-accept-entry MousePrimary \
|
||||||
|
-theme-str 'inputbar { enabled: false; }' |
|
||||||
grep -Po '[0-9]+(?=:)'
|
grep -Po '[0-9]+(?=:)'
|
||||||
) &&
|
) &&
|
||||||
ponymix set-default -d "$sink" &&
|
ponymix set-default -d "$sink" &&
|
||||||
|
Loading…
Reference in New Issue
Block a user