Adjust polybar
This commit is contained in:
@@ -123,7 +123,6 @@ client.urgent $red $red $white $red $black
|
||||
|
||||
# i3 bar
|
||||
# flaoting on start
|
||||
for_window [class="Nautilus"] floating enable
|
||||
for_window [class="Pavucontrol"] floating enable
|
||||
for_window [title="Event Tester"] floating enable
|
||||
for_window [class="flameshot"] floating enable
|
||||
@@ -150,4 +149,4 @@ exec --no-startup-id picom --backend glx --no-vsync
|
||||
exec --no-startup-id enact --watch --pos top -n 1
|
||||
exec --no-startup-id libinput-gestures-setup start
|
||||
|
||||
exec_always --no-startup-id notify-send -i ~/data/Seafile/images/anime/dashboard.png "よろしくマルコさん!" "「i3」へようこそ。"
|
||||
exec_always --no-startup-id notify-send -i ~/data/Seafile/images/anime/dashboard.png "よろしくマルコさん!" "「i3」へようこそ。"
|
||||
|
||||
@@ -27,6 +27,8 @@ foreground = ${colors.black}
|
||||
|
||||
bottom = false
|
||||
|
||||
screenchange-reload = true
|
||||
|
||||
tray-position = right
|
||||
tray-scale = 1.0
|
||||
tray-maxsize = 25
|
||||
@@ -35,11 +37,11 @@ line-size = 4
|
||||
|
||||
padding-left = 1
|
||||
padding-right = 1
|
||||
module-margin = 1
|
||||
module-margin = 2
|
||||
|
||||
modules-left = logo i3 polywins
|
||||
modules-left = logo i3 polywins spotify
|
||||
modules-center =
|
||||
modules-right = time date backlight pulseaudio battery conservation
|
||||
modules-right = backlight pulseaudio battery conservation date time
|
||||
|
||||
[module/i3]
|
||||
strip-wsnumbers = true
|
||||
@@ -130,7 +132,7 @@ label-full = 100%
|
||||
|
||||
[module/conservation]
|
||||
type = custom/script
|
||||
exec = cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
|
||||
exec = if [ /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode ]; then echo "On"; else echo "Off"; fi
|
||||
click-left = alacritty --command ~/dots/scripts/conservation_mode.sh
|
||||
format = <label>
|
||||
label = %output%
|
||||
@@ -152,3 +154,14 @@ exec = ~/dots/scripts/polywins.sh 2>/dev/null
|
||||
format = <label>
|
||||
label = %output%
|
||||
tail = true
|
||||
|
||||
[module/spotify]
|
||||
type = custom/script
|
||||
interval = 1
|
||||
format = <label>
|
||||
#exec = python3 ~/dots/scripts/spotify.py -f '{play_pause} {artist}: {song}' --font=2
|
||||
exec = python3 ~/dots/scripts/spotify.py -f '{artist}: {song}'
|
||||
|
||||
click-left = playerctl play-pause
|
||||
click-right = playerctl next
|
||||
click-middle = playerctl previous
|
||||
|
||||
Reference in New Issue
Block a user