Add sway env vars, waybar spotifyd updates
This commit is contained in:
parent
0368c49716
commit
b50c5bc131
@ -33,10 +33,10 @@ output HEADLESS-1 {
|
|||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
#exec swayidle -w \
|
exec swayidle -w \
|
||||||
# timeout 600 'swaylock -f -c 000000' \
|
timeout 600 'swaylock -f -c 000000' \
|
||||||
# timeout 900 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 900 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||||
# before-sleep 'swaylock -f -c 000000'
|
before-sleep 'swaylock -f -c 000000'
|
||||||
|
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
@ -228,5 +228,6 @@ include /etc/sway/config.d/*
|
|||||||
include ~/.config/sway/local.d/*
|
include ~/.config/sway/local.d/*
|
||||||
|
|
||||||
# Display target has started
|
# Display target has started
|
||||||
exec systemctl --user import-environment
|
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||||
exec systemctl start --user display.target
|
exec systemctl start --user display.target
|
||||||
|
@ -56,13 +56,17 @@
|
|||||||
"format-alt": "{time} {icon}",
|
"format-alt": "{time} {icon}",
|
||||||
"format-icons": ["", "", "", "", ""]
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"custom/waybar-mpris": {
|
"mpris": {
|
||||||
"return-type": "json",
|
"player-icons": {
|
||||||
"exec": "waybar-mpris --position --autofocus --play ▶ --pause ",
|
"default": "▶"
|
||||||
|
},
|
||||||
|
"status-icons": {
|
||||||
|
"paused": ""
|
||||||
|
},
|
||||||
"on-click": "waybar-mpris --send toggle",
|
"on-click": "waybar-mpris --send toggle",
|
||||||
"on-click-right": "waybar-mpris --send player-next",
|
"on-click-right": "waybar-mpris --send player-next",
|
||||||
"escape": true,
|
|
||||||
"max-length": 45,
|
"max-length": 45,
|
||||||
"scroll-step": 1
|
"format": "{player_icon} {title} | {artist}",
|
||||||
|
"ignored-players": ["firefox"]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ window#waybar {
|
|||||||
|
|
||||||
/* Modules */
|
/* Modules */
|
||||||
|
|
||||||
#clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #custom-launcher, #custom-power, #tray, #mode, #idle_inhibitor , #mpd, #custom-waybar-mpris, #custom-aggietimed {
|
#clock, #battery, #cpu, #memory, #disk, #temperature, #backlight, #network, #pulseaudio, #custom-media, #custom-launcher, #custom-power, #tray, #mode, #idle_inhibitor , #mpd, #mpris, #custom-aggietimed {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
margin: 0px 5px;
|
margin: 0px 5px;
|
||||||
background: #fbf1c7;
|
background: #fbf1c7;
|
||||||
|
@ -8,3 +8,7 @@ eval $(thefuck --alias)
|
|||||||
|
|
||||||
# ghcup-env
|
# ghcup-env
|
||||||
[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env"
|
[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env"
|
||||||
|
|
||||||
|
export XDG_CURRENT_DESKTOP=sway
|
||||||
|
export XDG_SESSION_DESKTOP=sway
|
||||||
|
export QT_QPA_PLATFORM=wayland
|
||||||
|
Loading…
Reference in New Issue
Block a user