1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

Compare commits

..

5 Commits

Author SHA1 Message Date
juan
373839598d add notify-send to waybar 2021-09-03 12:11:55 +08:00
juan
c97c766260 debloat config file 2021-09-03 12:05:27 +08:00
juan
fdfcb750e3 waybar use playerctl for music 2021-09-03 11:43:21 +08:00
juan
1749ca3343 Merge branch 'master' of github.com:JuanCldCmt/dotfiles 2021-09-03 11:17:32 +08:00
juan
c040ddf813 update go path and add sway autostart 2021-09-03 11:16:56 +08:00
3 changed files with 12 additions and 37 deletions

View File

@ -11,10 +11,12 @@ output * bg $(find ~/Pictures/Wallpapers/ -type f | shuf -n1) fill
##starting userspace software ##starting userspace software
exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500 exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500
exec light -S 70
exec --no-startup-id pipewire exec --no-startup-id pipewire
exec mako exec mako
exec light -S 70
exec mpd exec mpd
exec ~/.cache/go/bin/mpd-mpris
exec playerctld daemon
#my keybinds #my keybinds

View File

@ -4,39 +4,7 @@
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/window"], "modules-left": ["sway/workspaces", "sway/window"],
"modules-center": [], "modules-center": [],
"modules-right": ["tray","mpd","custom/weather","network","battery","clock"], "modules-right": ["tray","custom/player","custom/weather","network","battery","clock"],
"mpd": {
"format": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} {stateIcon}",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"format-disconnected": "Disconnected ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": { "tray": {
"spacing": 10 "spacing": 10
}, },
@ -67,7 +35,12 @@
"format-alt": "{ifname}: {ipaddr}/{cidr}" "format-alt": "{ifname}: {ipaddr}/{cidr}"
}, },
"custom/weather": { "custom/weather": {
"exec": "sleep 10 && curl 'wttr.in/?format=%t+(%f)+%c' || echo 'No weather data '", "exec": "sleep 10 && curl 'wttr.in/?format=%t+(%f)+%c'",
"interval": 1800 "interval": 1800
},
"custom/player": {
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}'",
"interval": 10,
"on-click": "playerctl play-pause && notify-send `playerctl status` -t 1000"
} }
} }

View File

@ -38,7 +38,7 @@ window#waybar {
#clock, #clock,
#battery, #battery,
#network, #network,
#mpd, #custom-player,
#custom-weather { #custom-weather {
background-color: #161821; background-color: #161821;
padding: 0px 10px; padding: 0px 10px;
@ -70,7 +70,7 @@ window#waybar {
animation-direction: alternate; animation-direction: alternate;
} }
#mpd { #custom-player {
border-radius: 2px 0px 0px 2px; border-radius: 2px 0px 0px 2px;
margin-left: 10px; margin-left: 10px;
} }