waybar sunset module added

This commit is contained in:
parent 800f589128
commit 1df9335ae7
2 changed files with 31 additions and 1 deletions

View File

@ -7,7 +7,8 @@
"modules-left": [ "modules-left": [
"custom/appmenuicon", "custom/appmenuicon",
"wlr/taskbar", "wlr/taskbar",
"custom/pomodoro" "custom/pomodoro",
"custom/sunset"
], ],
"modules-center": [ "modules-center": [
"hyprland/workspaces", "hyprland/workspaces",

View File

@ -19,6 +19,9 @@
"*": 5 "*": 5
} }
}, },
//
// pomodoro
//
"custom/pomodoro": { "custom/pomodoro": {
"format-icons": ["🕛", "🕐", "🕑", "🕒", "🕓", "🕔", "🕕", "🕖", "🕗", "🕘", "🕙", "🕚"], "format-icons": ["🕛", "🕐", "🕑", "🕒", "🕓", "🕔", "🕕", "🕖", "🕗", "🕘", "🕙", "🕚"],
"return-type": "json", "return-type": "json",
@ -30,6 +33,9 @@
"exec": "~/.config/waybar/custom/pomodoro.sh", "exec": "~/.config/waybar/custom/pomodoro.sh",
"interval": 1 "interval": 1
}, },
//
// player
//
"group/playerctl": { "group/playerctl": {
"orientation": "inherit", "orientation": "inherit",
"children-class": "playerctl", "children-class": "playerctl",
@ -40,6 +46,7 @@
"custom/playerctl-title" "custom/playerctl-title"
] ]
}, },
"custom/playerctl-title": { "custom/playerctl-title": {
"interval": 2, "interval": 2,
"format": "{}", "format": "{}",
@ -50,6 +57,7 @@
"on-scroll-up": "playerctl position 1+", "on-scroll-up": "playerctl position 1+",
"on-scroll-down": "playerctl position 1-", "on-scroll-down": "playerctl position 1-",
}, },
"custom/playerctl-prev": { "custom/playerctl-prev": {
"interval": 1, "interval": 1,
"format": "", "format": "",
@ -60,6 +68,7 @@
"on-scroll-up": "playerctl position 1+", "on-scroll-up": "playerctl position 1+",
"on-scroll-down": "playerctl position 1-", "on-scroll-down": "playerctl position 1-",
}, },
"custom/playerctl-pause-play": { "custom/playerctl-pause-play": {
"interval": 1, "interval": 1,
"format": "{icon}", "format": "{icon}",
@ -74,6 +83,7 @@
"on-scroll-up": "playerctl position 1+", "on-scroll-up": "playerctl position 1+",
"on-scroll-down": "playerctl position 1-", "on-scroll-down": "playerctl position 1-",
}, },
"custom/playerctl-next": { "custom/playerctl-next": {
"interval": 1, "interval": 1,
"format": "", "format": "",
@ -84,6 +94,25 @@
"on-scroll-up": "playerctl position 1+", "on-scroll-up": "playerctl position 1+",
"on-scroll-down": "playerctl position 1-", "on-scroll-down": "playerctl position 1-",
}, },
//
// sunset (night light)
//
"custom/sunset": {
"interval": "once",
"tooltip": true,
"return-type": "json",
"format": "{icon}",
"format-icons": {
"on": "",
"off": ""
},
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= ",
"on-click": "~/dotfiles/.config/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
"exec-if": "/dotfiles/.config/scripts/sunset.sh check",
"signal": 6
},
// Taskbar // Taskbar
"wlr/taskbar": { "wlr/taskbar": {
"format": "{icon}", "format": "{icon}",