update: reduce waybar update check

This commit is contained in:
Yingjie Wang 2024-10-20 13:08:09 -04:00
parent c8e824d8a4
commit 7e1b96eb2a

View File

@ -10,15 +10,15 @@
// //
{ {
// Workspaces // Workspaces
"hyprland/workspaces" : { "hyprland/workspaces": {
"on-click": "activate", "on-click": "activate",
"active-only": false, "active-only": false,
"all-outputs": true, "all-outputs": true,
"format": "{}", "format": "{}",
"format-icons": { "format-icons": {
"urgent": "", "urgent": "",
"active": "", "active": "",
"default": "" "default": ""
}, },
"persistent-workspaces": { "persistent-workspaces": {
// START WORKSPACES // START WORKSPACES
@ -26,7 +26,6 @@
// END WORKSPACES // END WORKSPACES
} }
}, },
// Taskbar // Taskbar
"wlr/taskbar": { "wlr/taskbar": {
"format": "{icon}", "format": "{icon}",
@ -48,7 +47,6 @@
"Foot Server": "Terminal" "Foot Server": "Terminal"
} }
}, },
// Hyprland Window // Hyprland Window
"hyprland/window": { "hyprland/window": {
"rewrite": { "rewrite": {
@ -62,12 +60,10 @@
}, },
"separate-outputs": true "separate-outputs": true
}, },
// Empty // Empty
"custom/empty": { "custom/empty": {
"format": "" "format": ""
}, },
// Cliphist // Cliphist
"custom/cliphist": { "custom/cliphist": {
"format": "", "format": "",
@ -76,7 +72,6 @@
"on-click-middle": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh w", "on-click-middle": "sleep 0.1 && ~/dotfiles/scripts/cliphist.sh w",
"tooltip": false "tooltip": false
}, },
// Updates Count // Updates Count
"custom/updates": { "custom/updates": {
"format": " {}", "format": " {}",
@ -84,11 +79,10 @@
"escape": true, "escape": true,
"return-type": "json", "return-type": "json",
"exec": "~/dotfiles/scripts/updates.sh", "exec": "~/dotfiles/scripts/updates.sh",
"restart-interval": 60, "restart-interval": 300,
"on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh", "on-click": "alacritty --class dotfiles-floating -e ~/dotfiles/scripts/installupdates.sh",
"tooltip": false "tooltip": false
}, },
// Wallpaper // Wallpaper
"custom/wallpaper": { "custom/wallpaper": {
"format": "", "format": "",
@ -96,63 +90,54 @@
"on-click-right": "~/dotfiles/hypr/scripts/wallpaper.sh", "on-click-right": "~/dotfiles/hypr/scripts/wallpaper.sh",
"tooltip": false "tooltip": false
}, },
// Waybar Themes // Waybar Themes
"custom/waybarthemes": { "custom/waybarthemes": {
"format": "", "format": "",
"on-click": "~/dotfiles/waybar/themeswitcher.sh", "on-click": "~/dotfiles/waybar/themeswitcher.sh",
"tooltip": false "tooltip": false
}, },
// Keybindings // Keybindings
"custom/keybindings": { "custom/keybindings": {
"format": "", "format": "",
"on-click": "~/dotfiles/hypr/scripts/keybindings.sh", "on-click": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false "tooltip": false
}, },
// Filemanager Launcher // Filemanager Launcher
"custom/filemanager": { "custom/filemanager": {
"format": "", "format": "",
"on-click": "~/dotfiles/.settings/filemanager.sh", "on-click": "~/dotfiles/.settings/filemanager.sh",
"tooltip": false "tooltip": false
}, },
// Outlook Launcher // Outlook Launcher
"custom/outlook": { "custom/outlook": {
"format": "", "format": "",
"on-click": "chromium --app=https://outlook.office.com/mail/", "on-click": "chromium --app=https://outlook.office.com/mail/",
"tooltip": false "tooltip": false
}, },
// Browser Launcher // Browser Launcher
"custom/browser": { "custom/browser": {
"format": "", "format": "",
"on-click": "~/dotfiles/.settings/browser.sh", "on-click": "~/dotfiles/.settings/browser.sh",
"tooltip": false "tooltip": false
}, },
// ChatGPT Launcher // ChatGPT Launcher
"custom/chatgpt": { "custom/chatgpt": {
"format": " ", "format": " ",
"on-click": "chromium --app=https://chat.openai.com", "on-click": "chromium --app=https://chat.openai.com",
"tooltip": false "tooltip": false
}, },
// Calculator // Calculator
"custom/calculator": { "custom/calculator": {
"format": "", "format": "",
"on-click": "qalculate-gtk", "on-click": "qalculate-gtk",
"tooltip": false "tooltip": false
}, },
// Windows VM // Windows VM
"custom/windowsvm": { "custom/windowsvm": {
"format": "", "format": "",
"on-click": "~/dotfiles/scripts/launchvm.sh", "on-click": "~/dotfiles/scripts/launchvm.sh",
"tooltip": false "tooltip": false
}, },
// Rofi Application Launcher // Rofi Application Launcher
"custom/appmenu": { "custom/appmenu": {
// START APPS LABEL // START APPS LABEL
@ -162,7 +147,6 @@
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh", "on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false "tooltip": false
}, },
// Rofi Application Launcher // Rofi Application Launcher
"custom/appmenuicon": { "custom/appmenuicon": {
"format": "", "format": "",
@ -170,14 +154,12 @@
"on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh", "on-click-right": "~/dotfiles/hypr/scripts/keybindings.sh",
"tooltip": false "tooltip": false
}, },
// Power Menu // Power Menu
"custom/exit": { "custom/exit": {
"format": "", "format": "",
"on-click": "wlogout", "on-click": "wlogout",
"tooltip": false "tooltip": false
}, },
// Keyboard State // Keyboard State
"keyboard-state": { "keyboard-state": {
"numlock": true, "numlock": true,
@ -188,7 +170,6 @@
"unlocked": "" "unlocked": ""
} }
}, },
"group/tray": { "group/tray": {
"orientation": "inherit", "orientation": "inherit",
"drawer": { "drawer": {
@ -200,29 +181,27 @@
"tray" "tray"
] ]
}, },
// System tray // System tray
"tray": { "tray": {
"icon-size": 16, "icon-size": 16,
"spacing": 8, "spacing": 8,
"verse-direction": true "verse-direction": true
}, },
// Clock // Clock
"clock": { "clock": {
"calendar": { "calendar": {
"mode" : "year", "mode": "year",
"mode-mon-col" : 3, "mode-mon-col": 3,
"weeks-pos" : "right", "weeks-pos": "right",
"on-scroll" : 1, "on-scroll": 1,
"format": { "format": {
"months": "<span color='#ffead3'><b>{}</b></span>", "months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>", "days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>", "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>", "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>" "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
} }
}, },
// TIMEDATEFORMAT // TIMEDATEFORMAT
"format": "{:%B %d %H:%M %a}", "format": "{:%B %d %H:%M %a}",
// "timezone": "America/New_York", // "timezone": "America/New_York",
@ -231,19 +210,16 @@
"format-alt": "{:%Y-%m-%d}" "format-alt": "{:%Y-%m-%d}"
// END CLOCK FORMAT // END CLOCK FORMAT
}, },
// spacer // spacer
"custom/spacer": { "custom/spacer": {
"format": " ", "format": " ",
"tooltip": false "tooltip": false
}, },
// div // div
"custom/div": { "custom/div": {
"format": "", "format": "",
"tooltip": false "tooltip": false
}, },
// CPU // CPU
"cpu": { "cpu": {
"format": "󰒇 {usage}%", "format": "󰒇 {usage}%",
@ -254,14 +230,12 @@
"critical": 90 "critical": 90
} }
}, },
// "cpu#bar": { // "cpu#bar": {
// "format": "{icon}", // "format": "{icon}",
// "format-icons":[ // "format-icons":[
// "▏ ","▎ ","▍ ","▌ ","▋ ","▊ ","▉ ","█ ","█▏","█▎","█▍","█▌","█▋","█▊","█▉","██" // "▏ ","▎ ","▍ ","▌ ","▋ ","▊ ","▉ ","█ ","█▏","█▎","█▍","█▌","█▋","█▊","█▉","██"
// ] // ]
// }, // },
// Memory // Memory
"memory": { "memory": {
"format": " {used:0.1f}G", "format": " {used:0.1f}G",
@ -273,7 +247,6 @@
"critical": 80 "critical": 80
} }
}, },
// Harddisc space used // Harddisc space used
"disk": { "disk": {
"interval": 30, "interval": 30,
@ -281,11 +254,9 @@
"path": "/", "path": "/",
"on-click": "alacritty -e htop" "on-click": "alacritty -e htop"
}, },
"hyprland/language": { "hyprland/language": {
"format": "/ K {short}" "format": "/ K {short}"
}, },
// Group Hardware // Group Hardware
"group/hardware": { "group/hardware": {
"orientation": "inherit", "orientation": "inherit",
@ -297,7 +268,6 @@
"memory" "memory"
] ]
}, },
"group/hardware2": { "group/hardware2": {
"orientation": "inherit", "orientation": "inherit",
"modules": [ "modules": [
@ -309,7 +279,6 @@
// "battery#charging" // "battery#charging"
] ]
}, },
// Group system settings // Group system settings
"group/systems": { "group/systems": {
"orientation": "inherit", "orientation": "inherit",
@ -318,7 +287,6 @@
"clock" "clock"
] ]
}, },
"group/power": { "group/power": {
"orientation": "inherit", "orientation": "inherit",
"drawer": { "drawer": {
@ -331,7 +299,6 @@
"idle_inhibitor" "idle_inhibitor"
] ]
}, },
// Group Settings // Group Settings
"group/settings": { "group/settings": {
"orientation": "horizontal", "orientation": "horizontal",
@ -344,16 +311,14 @@
"custom/wallpaper" "custom/wallpaper"
] ]
}, },
// Group Quicklinks // Group Quicklinks
"group/quicklinks": { "group/quicklinks": {
"orientation": "horizontal", "orientation": "horizontal",
"modules": [ "modules": [
"custom/browser", "custom/browser",
"custom/filemanager", "custom/filemanager",
] ]
}, },
// Network // Network
"network": { "network": {
"format": "{ifname}", "format": "{ifname}",
@ -366,14 +331,19 @@
"tooltip-format-disconnected": "Disconnected", "tooltip-format-disconnected": "Disconnected",
"max-length": 50, "max-length": 50,
"on-click": "~/dotfiles/.settings/networkmanager.sh", "on-click": "~/dotfiles/.settings/networkmanager.sh",
"format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"] "format-icons": [
"󰤯",
"󰤟",
"󰤢",
"󰤥",
"󰤨"
]
}, },
"network#speed": { "network#speed": {
"format": " {bandwidthTotalBits}", "format": " {bandwidthTotalBits}",
"tooltip-format": " {bandwidthUpBits}\n {bandwidthDownBits}", "tooltip-format": " {bandwidthUpBits}\n {bandwidthDownBits}",
"interval": 5 "interval": 5
}, },
// Battery // Battery
"battery": { "battery": {
"states": { "states": {
@ -391,7 +361,19 @@
// "Charging": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"], // "Charging": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"],
// "default": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"] // "default": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"]
//} //}
"format-icons": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"] "format-icons": [
"󱃍",
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
]
}, },
"battery#charging": { "battery#charging": {
"states": { "states": {
@ -406,9 +388,20 @@
// "Charging": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"], // "Charging": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"],
// "default": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"] // "default": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"]
//} //}
"format-icons": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"] "format-icons": [
"󰢟",
"󰢜",
"󰂆",
"󰂇",
"󰂈",
"󰢝",
"󰂉",
"󰢞",
"󰂊",
"󰂋",
"󰂅"
]
}, },
// Pulseaudio // Pulseaudio
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float // "scroll-step": 1, // %, can be a float
@ -425,11 +418,14 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": [
"",
"",
""
]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
// Bluetooth // Bluetooth
"bluetooth": { "bluetooth": {
"format": " {status}", "format": " {status}",
@ -439,25 +435,22 @@
"on-click": "blueman-manager", "on-click": "blueman-manager",
"format-no-controller": "" "format-no-controller": ""
}, },
// Other // Other
"user": { "user": {
"format": "{user}", "format": "{user}",
"interval": 60, "interval": 60,
"icon": false, "icon": false,
}, },
// Idle Inhibator // Idle Inhibator
"idle_inhibitor": { "idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
"tooltip": true, "tooltip": true,
"format-icons":{ "format-icons": {
"activated": "", "activated": "",
"deactivated": "" "deactivated": ""
}, },
"on-click-right": "hyprlock" "on-click-right": "hyprlock"
}, },
"custom/events": { "custom/events": {
"format": "{}", "format": "{}",
"tooltip": true, "tooltip": true,
@ -469,7 +462,6 @@
"return-type": "json", "return-type": "json",
"on-click-right": "vdirsyncer sync" "on-click-right": "vdirsyncer sync"
}, },
"group/time": { "group/time": {
"orientation": "inherit", "orientation": "inherit",
"drawer": { "drawer": {