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