update dotfiles

This commit is contained in:
piccihud 2023-09-23 18:18:35 +02:00
parent ab3cd42c2f
commit 13987e414b
2 changed files with 211 additions and 202 deletions

View File

@ -20,7 +20,7 @@
# == Options # == Options
# =================================================================== # ===================================================================
#set preview_images true set preview_images true
# Which viewmode should be used? Possible values are: # Which viewmode should be used? Possible values are:
# miller: Use miller columns which show multiple levels of the hierarchy # miller: Use miller columns which show multiple levels of the hierarchy

View File

@ -4,26 +4,27 @@
// Global // Global
{ {
"layer": "top", "layer": "top",
"position": "top", "position": "top",
// If height property would be not present, it'd be calculated dynamically // If height property would be not present, it'd be calculated dynamically
"height": 30, "height": 30,
"modules-left": [ "modules-left": [
// "custom/launcher", // "custom/launcher",
"sway/workspaces", "sway/workspaces",
"sway/mode", "sway/mode",
], ],
"modules-center": [ "modules-center": [
], ],
"modules-right": [ "modules-right": [
"disk", "disk",
"network", "network",
//"idle_inhibitor", //"idle_inhibitor",
"memory", "memory",
"cpu", "cpu",
"temperature",
"pulseaudio", "pulseaudio",
"custom/keyboard-layout", "custom/keyboard-layout",
"battery", "battery",
@ -34,205 +35,213 @@
"tray", "tray",
//"custom/weather", //"custom/weather",
"custom/power", "custom/power",
], ],
// Modules // Modules
"disk": { "disk": {
"interval": 30, "interval": 30,
"format": "{used} used on {path} ({percentage_used}%) | ", "format": "{used} used on {path} ({percentage_used}%) | ",
},
"idle_inhibitor": {
"format": "{icon} ",
"format-icons":{
"activated": "",
"deactivated": ""
}
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
}, },
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"custom/PBPbattery": { "idle_inhibitor": {
"exec": "~/.config/waybar/scripts/PBPbattery.sh", "format": "{icon} ",
"format": "{}", "format-icons":{
}, "activated": "",
"deactivated": ""
"clock": { }
"interval": 10,
//"format-alt": "󰃭 {:%e %b %Y}", // Icon: calendar-alt
"format": "󰃭 {:%e %b %Y %H:%M}",
// "tooltip-format": "{:%e %B %Y}",
"on-click": "orage"
},
"cpu": {
"interval": 5,
"format": " {usage}% ({load}) |", // Icon: microchip
"states": {
"warning": 70,
"critical": 90,
}, },
"on-click": "alacritty -e 'btop'",
},
"custom/keyboard-layout": { "temperature": {
"exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4", // "thermal-zone": 2,
// Interval set only as a fallback, as the value is updated by signal // "hwmon-path": ["/sys/class/hwmon/hwmon2/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
"interval": 30, // "critical-threshold": 80,
"format": "󰌌 {} |", // Icon: keyboard // "format-critical": "{temperatureC}°C ",
// Signal sent by Sway key binding (~/.config/sway/key-bindings) "format": "{temperatureC}°C  |"
"signal": 1, // SIGHUP
"tooltip": false,
"on-click": "~/.config/waybar/scripts/keyhint.sh",
},
"custom/keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"memory": {
"interval": 5,
"format": " {}% | ", // Icon: memory
"on-click": "alacritty -e 'btop'",
"states": {
"warning": 70,
"critical": 90
}
},
"network": {
"interval": 5,
"format-wifi": "SSID: {essid} ({signalStrength}%) |", // Icon: wifi
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}",
"on-click": "alacritty -e 'nmtui'",
},
"network#vpn": {
"interface": "tun0",
"format": " {essid} ({signalStrength}%)",
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
},
"sway/mode": {
"format": "{}",
"tooltip": false
},
"sway/window": {
"format": "{}",
"max-length": 120
},
// "sway/workspaces": {
// "disable-scroll": true,
// "disable-markup" : false,
// "all-outputs": true,
// "format": " {icon} ",
// //"format":"{icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// }
// },
"pulseaudio": {
"scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}  {format_source}",
"format-bluetooth-muted": "󰝟 {icon}  {format_source}",
"format-muted": "󰝟 {format_source}",
"format-source": "{volume}%  ",
"format-source-muted": " ",
"format-icons": {
"headphone": "󰋋 ",
"hands-free": "וֹ",
"headset": "󰋎 ",
"phone": " ",
"portable": " ",
"car": " ",
"default": [" "]
}, },
"on-click": "pavucontrol",
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%",
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%",
},
// to use the weather module replace <your_location> with your city or town "battery": {
// note: do not use spaces: new york would be newyork "states": {
"custom/weather": { // "good": 95,
"exec": "~/.config/waybar/scripts/weather.sh <your_location>", "warning": 30,
"return-type": "json", "critical": 15
"interval": 600, },
}, "format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": [" ", " ", " ", " ", " "]
},
"tray": { "custom/PBPbattery": {
"icon-size": 18, "exec": "~/.config/waybar/scripts/PBPbattery.sh",
"spacing":10, "format": "{}",
}, },
"backlight#icon": { "clock": {
"format": "{icon}", "interval": 10,
"format-icons": [""], //"format-alt": "󰃭 {:%e %b %Y}", // Icon: calendar-alt
"on-scroll-down": "brightnessctl -c backlight set 1%-", "format": "󰃭 {:%e %b %Y %H:%M}",
"on-scroll-up": "brightnessctl -c backlight set +1%" // "tooltip-format": "{:%e %B %Y}",
}, "on-click": "orage"
},
"backlight#value" :{ "cpu": {
"format": "{percent}%", "interval": 5,
"on-scroll-down": "brightnessctl -c backlight set 1%-", "format": " {usage}% ({load}) |", // Icon: microchip
"on-scroll-up": "brightnessctl -c backlight set +1%" "states": {
}, "warning": 70,
"critical": 90,
},
"on-click": "alacritty -e 'btop'",
},
// "custom/firefox": { "custom/keyboard-layout": {
// "format": " ", "exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
// "on-click": "exec firefox", // Interval set only as a fallback, as the value is updated by signal
// "tooltip": false "interval": 30,
// }, "format": "󰌌 {} |", // Icon: keyboard
// // Signal sent by Sway key binding (~/.config/sway/key-bindings)
// "custom/terminal": { "signal": 1, // SIGHUP
// "format": " ", "tooltip": false,
// "on-click": "exec xfce4-terminal", "on-click": "~/.config/waybar/scripts/keyhint.sh",
// "tooltip": false },
// },
// "custom/keyboard-state": {
// "custom/files": { "numlock": true,
// "format": " ", "capslock": true,
// "on-click": "exec thunar", "format": "{name} {icon}",
// "tooltip": false "format-icons": {
// }, "locked": "",
// "unlocked": ""
// "custom/launcher": { }
// "format":" ", },
// "on-click": "exec wofi -c ~/.config/wofi/config -I",
// "tooltip": false, "memory": {
// }, "interval": 5,
// "format": " {}% | ", // Icon: memory
"custom/power": { "on-click": "alacritty -e 'btop'",
"format":"⏻ ", "states": {
"on-click": "exec ~/.config/waybar/scripts/power-menu.sh", "warning": 70,
"tooltip": false, "critical": 90
}, }
},
"network": {
"interval": 5,
"format-wifi": "SSID: {essid} ({signalStrength}%) |", // Icon: wifi
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}",
"on-click": "alacritty -e 'nmtui'",
},
"network#vpn": {
"interface": "tun0",
"format": " {essid} ({signalStrength}%)",
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
},
"sway/mode": {
"format": "{}",
"tooltip": false
},
"sway/window": {
"format": "{}",
"max-length": 120
},
// "sway/workspaces": {
// "disable-scroll": true,
// "disable-markup" : false,
// "all-outputs": true,
// "format": " {icon} ",
// //"format":"{icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// }
// },
"pulseaudio": {
"scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}  {format_source}",
"format-bluetooth-muted": "󰝟 {icon}  {format_source}",
"format-muted": "󰝟 {format_source}",
"format-source": "{volume}%  ",
"format-source-muted": " ",
"format-icons": {
"headphone": "󰋋 ",
"hands-free": "וֹ",
"headset": "󰋎 ",
"phone": " ",
"portable": " ",
"car": " ",
"default": [" "]
},
"on-click": "pavucontrol",
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%",
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%",
},
// to use the weather module replace <your_location> with your city or town
// note: do not use spaces: new york would be newyork
"custom/weather": {
"exec": "~/.config/waybar/scripts/weather.sh <your_location>",
"return-type": "json",
"interval": 600,
},
"tray": {
"icon-size": 18,
"spacing":10,
},
"backlight#icon": {
"format": "{icon}",
"format-icons": [""],
"on-scroll-down": "brightnessctl -c backlight set 1%-",
"on-scroll-up": "brightnessctl -c backlight set +1%"
},
"backlight#value" :{
"format": "{percent}%",
"on-scroll-down": "brightnessctl -c backlight set 1%-",
"on-scroll-up": "brightnessctl -c backlight set +1%"
},
// "custom/firefox": {
// "format": " ",
// "on-click": "exec firefox",
// "tooltip": false
// },
//
// "custom/terminal": {
// "format": " ",
// "on-click": "exec xfce4-terminal",
// "tooltip": false
// },
//
// "custom/files": {
// "format": " ",
// "on-click": "exec thunar",
// "tooltip": false
// },
//
// "custom/launcher": {
// "format":" ",
// "on-click": "exec wofi -c ~/.config/wofi/config -I",
// "tooltip": false,
// },
//
"custom/power": {
"format":"⏻ ",
"on-click": "exec ~/.config/waybar/scripts/power-menu.sh",
"tooltip": false,
},
} }