Delete .config/waybar directory
This commit is contained in:
@@ -1,204 +0,0 @@
|
|||||||
// Global
|
|
||||||
{
|
|
||||||
"layer": "top",
|
|
||||||
"position": "top",
|
|
||||||
// If height property would be not present, it'd be calculated dynamically
|
|
||||||
"height": 30,
|
|
||||||
|
|
||||||
"modules-left": [
|
|
||||||
"custom/launcher",
|
|
||||||
"sway/workspaces",
|
|
||||||
"sway/mode",
|
|
||||||
],
|
|
||||||
|
|
||||||
"modules-center": [
|
|
||||||
],
|
|
||||||
|
|
||||||
"modules-right": [
|
|
||||||
"network",
|
|
||||||
"memory",
|
|
||||||
"cpu",
|
|
||||||
// "custom/weather",
|
|
||||||
"pulseaudio",
|
|
||||||
"custom/keyboard-layout",
|
|
||||||
"battery",
|
|
||||||
"backlight",
|
|
||||||
"clock",
|
|
||||||
"tray",
|
|
||||||
"custom/power",
|
|
||||||
],
|
|
||||||
|
|
||||||
// Modules
|
|
||||||
|
|
||||||
"battery": {
|
|
||||||
"states": {
|
|
||||||
// "good": 95,
|
|
||||||
"warning": 30,
|
|
||||||
"critical": 15
|
|
||||||
},
|
|
||||||
"format": "{capacity}% {icon}",
|
|
||||||
"format-charging": "{capacity}% ",
|
|
||||||
"format-plugged": "{capacity}% ",
|
|
||||||
"format-alt": "{time} {icon}",
|
|
||||||
// "format-good": "", // An empty format will hide the module
|
|
||||||
// "format-full": "",
|
|
||||||
"format-icons": ["", "", "", "", ""]
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
"clock": {
|
|
||||||
"interval": 10,
|
|
||||||
"format-alt": " {:%e %b %Y}", // Icon: calendar-alt
|
|
||||||
"format": "{:%H:%M}",
|
|
||||||
"tooltip-format": "{:%e %B %Y}"
|
|
||||||
},
|
|
||||||
|
|
||||||
"cpu": {
|
|
||||||
"interval": 5,
|
|
||||||
"format": " {usage}% ({load})", // Icon: microchip
|
|
||||||
"states": {
|
|
||||||
"warning": 70,
|
|
||||||
"critical": 90
|
|
||||||
},
|
|
||||||
"on-click": "exec htop",
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/keyboard-layout": {
|
|
||||||
"exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
|
|
||||||
// Interval set only as a fallback, as the value is updated by signal
|
|
||||||
"interval": 30,
|
|
||||||
"format": " {}", // Icon: keyboard
|
|
||||||
// Signal sent by Sway key binding (~/.config/sway/key-bindings)
|
|
||||||
"signal": 1, // SIGHUP
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"memory": {
|
|
||||||
"interval": 5,
|
|
||||||
"format": " {}%", // Icon: memory
|
|
||||||
"states": {
|
|
||||||
"warning": 70,
|
|
||||||
"critical": 90
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"network": {
|
|
||||||
"interval": 5,
|
|
||||||
"format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi
|
|
||||||
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
|
|
||||||
"format-disconnected": "⚠ Disconnected",
|
|
||||||
"tooltip-format": "{ifname}: {ipaddr}"
|
|
||||||
},
|
|
||||||
"network#vpn": {
|
|
||||||
"interface": "tun0",
|
|
||||||
"format": "嬨 {essid} ({signalStrength}%)",
|
|
||||||
"format-disconnected": "⚠ Disconnected",
|
|
||||||
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
|
||||||
"on-click": "nm-connection-editor"
|
|
||||||
},
|
|
||||||
|
|
||||||
"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": "pamixer -ui 2",
|
|
||||||
"on-scroll-down": "pamixer -ud 2",
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/weather": {
|
|
||||||
"exec": "~/.config/waybar/scripts/weather.sh",
|
|
||||||
"format": "{}",
|
|
||||||
"return-type": "json",
|
|
||||||
"interval": 600
|
|
||||||
},
|
|
||||||
|
|
||||||
"tray": {
|
|
||||||
"icon-size": 18,
|
|
||||||
"spacing":10,
|
|
||||||
},
|
|
||||||
|
|
||||||
"backlight": {
|
|
||||||
"interval": 5,
|
|
||||||
"format": "{icon} {percent}%",
|
|
||||||
"format-alt": "{percent}% {icon}",
|
|
||||||
"format-alt-click": "click-right",
|
|
||||||
"format-icons": ["🌕", "🌔", "🌓", "🌒", "🌑"],
|
|
||||||
"on-scroll-down": "brightnessctl -c backlight set +5%",
|
|
||||||
"on-scroll-up": "brightnessctl -c backlight set 5%-"
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/firefox": {
|
|
||||||
"format": " ",
|
|
||||||
"on-click": "exec firefox",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/terminal": {
|
|
||||||
"format": " ",
|
|
||||||
"on-click": "exec alacritty",
|
|
||||||
"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,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
"wlr/taskbar": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"icon-size": 14,
|
|
||||||
"icon-theme": "Numix-Circle",
|
|
||||||
"tooltip-format": "{title}",
|
|
||||||
"on-click": "activate",
|
|
||||||
"on-click-middle": "close"
|
|
||||||
}
|
|
||||||
@@ -1,244 +0,0 @@
|
|||||||
[{
|
|
||||||
"layer": "top", // Waybar at top layer
|
|
||||||
"position": "bottom", // Waybar position (top|bottom|left|right)
|
|
||||||
"height": 30, // Waybar height (to be removed for auto height)
|
|
||||||
// "width": 2560, // Waybar width
|
|
||||||
// Choose the order of the modules
|
|
||||||
|
|
||||||
"margin-right": 8,
|
|
||||||
"margin-left": 8,
|
|
||||||
"margin-top": 1,
|
|
||||||
"margin-bottom":8,
|
|
||||||
|
|
||||||
"modules-left": ["custom/launcher", "sway/workspaces","custom/firefox", "custom/libreoffice", "custom/youtube", "custom/dolphin", "custom/kate","custom/store", "custom/spotify",],
|
|
||||||
"modules-center": ["sway/window",],
|
|
||||||
"modules-right": ["pulseaudio", "custom/weather", "cpu", "custom/pacman", "battery", "backlight" , "tray", "clock", "custom/recorder", "custom/power", ],
|
|
||||||
// Modules configuration
|
|
||||||
"sway/workspaces": {
|
|
||||||
"disable-scroll": false,
|
|
||||||
"all-outputs": true,
|
|
||||||
"format": "{icon}",
|
|
||||||
"persistent_workspaces": {
|
|
||||||
"1": [],
|
|
||||||
"2": [],
|
|
||||||
"3": [],
|
|
||||||
"4": [],
|
|
||||||
},
|
|
||||||
"format-icons": {
|
|
||||||
"1": "1",
|
|
||||||
"2": "2",
|
|
||||||
"3": "3",
|
|
||||||
"4": "4",
|
|
||||||
"5": "5",
|
|
||||||
"focused": "",
|
|
||||||
"urgent": "",
|
|
||||||
"default": ""
|
|
||||||
},
|
|
||||||
"icon-size": 15
|
|
||||||
},
|
|
||||||
"river/tags": {
|
|
||||||
"num-tags": 5
|
|
||||||
},
|
|
||||||
"sway/mode": {
|
|
||||||
"format": "<span style=\"italic\">{}</span>"
|
|
||||||
},
|
|
||||||
"sway/window": {
|
|
||||||
"format": "{}",
|
|
||||||
"max-length": 65,
|
|
||||||
},
|
|
||||||
"custom/media": {
|
|
||||||
"format": "{icon}{}",
|
|
||||||
"return-type": "json",
|
|
||||||
"format-icons": {
|
|
||||||
"Playing": " ",
|
|
||||||
"Paused": " ",
|
|
||||||
"Music": " "
|
|
||||||
},
|
|
||||||
"max-length":65,
|
|
||||||
"interval": 2,
|
|
||||||
"exec": "fish -c playerstatus",
|
|
||||||
"exec-on-event": "fish -c playerstatus",
|
|
||||||
"on-click": "playerctl play-pause",
|
|
||||||
"on-click-right": "mpc toggle --host 127.0.0.1 --port 6002",
|
|
||||||
},
|
|
||||||
"custom/recorder": {
|
|
||||||
"return-type": "json",
|
|
||||||
"format": "",
|
|
||||||
"interval": 1,
|
|
||||||
"exec-if": "pgrep wf-recorder",
|
|
||||||
"exec": "echo '{\"class\": \"recording\"}'",
|
|
||||||
"on-click": "fish -c recording",
|
|
||||||
"tooltip": false,
|
|
||||||
},
|
|
||||||
"tray": {
|
|
||||||
"spacing": 10,
|
|
||||||
},
|
|
||||||
"idle_inhibitor": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"activated": "",
|
|
||||||
"deactivated": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"clock": {
|
|
||||||
|
|
||||||
// "timezone": "America/New_York",
|
|
||||||
"format": "{:%I:%M %p}",
|
|
||||||
"format-alt": "{:%A, %B %d}",
|
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
||||||
// "format-alt": "{:%Y-%m-%d}"
|
|
||||||
},
|
|
||||||
"cpu": {
|
|
||||||
"format": "{usage} ",
|
|
||||||
"on-click": "alacritty -e ytop",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"memory": {
|
|
||||||
"format": "{} "
|
|
||||||
},
|
|
||||||
"temperature": {
|
|
||||||
"thermal-zone": 2,
|
|
||||||
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
|
|
||||||
"critical-threshold": 80,
|
|
||||||
"format-critical": "{temperatureC}°C {icon}",
|
|
||||||
"format": "{temperatureC} {icon}",
|
|
||||||
"interval": 60,
|
|
||||||
"format-icons": ["", "", ""]
|
|
||||||
},
|
|
||||||
"backlight": {
|
|
||||||
"interval": 5,
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-alt": "{percent}% {icon}",
|
|
||||||
"format-alt-click": "click-right",
|
|
||||||
"format-icons": ["🌕", "🌔", "🌓", "🌒", "🌑"],
|
|
||||||
"on-scroll-down": "brightnessctl -c backlight set +5%",
|
|
||||||
"on-scroll-up": "brightnessctl -c backlight set 5%-"
|
|
||||||
},
|
|
||||||
"battery": {
|
|
||||||
"states": {
|
|
||||||
// "good": 95,
|
|
||||||
"warning": 30,
|
|
||||||
"critical": 15
|
|
||||||
},
|
|
||||||
"format": "{capacity}% {icon}",
|
|
||||||
"format-charging": "{capacity}% ",
|
|
||||||
"format-plugged": "{capacity}% ",
|
|
||||||
"format-alt": "{time} {icon}",
|
|
||||||
// "format-good": "", // An empty format will hide the module
|
|
||||||
// "format-full": "",
|
|
||||||
"format-icons": ["", "", "", "", ""]
|
|
||||||
},
|
|
||||||
"battery#bat2": {
|
|
||||||
"bat": "BAT2"
|
|
||||||
},
|
|
||||||
"network": {
|
|
||||||
"interface": "wlan0", // (Optional) To force the use of this interface
|
|
||||||
"format-wifi": " connected",
|
|
||||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
||||||
"format-linked": "{ifname} (No IP) ",
|
|
||||||
"format-disconnected": "Disconnected ⚠",
|
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
||||||
"interval": 60,
|
|
||||||
"on-click-right": "exec /home/aryan/nmcli-rofi/nmcli-rofi"
|
|
||||||
},
|
|
||||||
"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@ -5%",
|
|
||||||
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
|
|
||||||
},
|
|
||||||
"custom/weather": {
|
|
||||||
"exec": "~/.config/waybar/scripts/weather.sh Royal Tunbridge Wells",
|
|
||||||
"format": "{}",
|
|
||||||
"return-type": "json",
|
|
||||||
"interval": 600
|
|
||||||
},
|
|
||||||
"custom/pacman": {
|
|
||||||
"format": "{} ",
|
|
||||||
"interval": 3600, // every hour
|
|
||||||
// "restart-interval": 3600,
|
|
||||||
"exec": "checkupdates | wc -l", // # of updates
|
|
||||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
|
||||||
"on-click": "alacritty -e yay; pkill -SIGRTMIN+8 waybar", // update system
|
|
||||||
"signal": 8,
|
|
||||||
},
|
|
||||||
"disk": {
|
|
||||||
"interval": 30,
|
|
||||||
"format": "{free}",
|
|
||||||
"path": "/run/media/aryan/",
|
|
||||||
},
|
|
||||||
"custom/power": {
|
|
||||||
"format": "⏻",
|
|
||||||
"on-click": "exec nwgbar",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/firefox": {
|
|
||||||
"format": "",
|
|
||||||
"on-click": "exec firefox",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/libreoffice": {
|
|
||||||
"format": "",
|
|
||||||
"on-click": "exec libreoffice",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/youtube": {
|
|
||||||
"format": "輸",
|
|
||||||
"on-click": "xdg-open https://www.youtube.com/",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/dolphin": {
|
|
||||||
"format": "",
|
|
||||||
"on-click": "exec dolphin",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/kate": {
|
|
||||||
"format": "",
|
|
||||||
"on-click": "exec kate",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/store": {
|
|
||||||
"format": " ",
|
|
||||||
"on-click": "exec pamac-manager",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/launcher": {
|
|
||||||
"format":" ",
|
|
||||||
"on-click": "exec ~/.config/rofi/launchers/text/launcher.sh",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"wlr/taskbar": {
|
|
||||||
"format": "{icon}",
|
|
||||||
// "format": "{app_id}",
|
|
||||||
"icon-theme": "Papirus",
|
|
||||||
"icon-size": 15,
|
|
||||||
"on-click": "activate",
|
|
||||||
"markup": true,
|
|
||||||
"max-length": 7,
|
|
||||||
"on-click-right": "minimize",
|
|
||||||
"on-click-middle": "close"
|
|
||||||
},
|
|
||||||
"custom/spotify": {
|
|
||||||
"interval": 1,
|
|
||||||
"return-type": "json",
|
|
||||||
"exec": "~/.config/waybar/modules/spotify.sh",
|
|
||||||
"exec-if": "pgrep spotify",
|
|
||||||
"escape": true
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
/*
|
|
||||||
*
|
|
||||||
* Base16 Gruvbox dark, soft
|
|
||||||
* Author: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
@define-color base00 #32302f;
|
|
||||||
@define-color base01 #3c3836;
|
|
||||||
@define-color base02 #504945;
|
|
||||||
@define-color base03 #665c54;
|
|
||||||
@define-color base04 #bdae93;
|
|
||||||
@define-color base05 #d5c4a1;
|
|
||||||
@define-color base06 #ebdbb2;
|
|
||||||
@define-color base07 #fbf1c7;
|
|
||||||
@define-color base08 #fb4934;
|
|
||||||
@define-color base09 #fe8019;
|
|
||||||
@define-color base0A #fabd2f;
|
|
||||||
@define-color base0B #b8bb26;
|
|
||||||
@define-color base0C #8ec07c;
|
|
||||||
@define-color base0D #83a598;
|
|
||||||
@define-color base0E #d3869b;
|
|
||||||
@define-color base0F #d65d0e;
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
class=$(playerctl metadata --player=spotify --format '{{lc(status)}}')
|
|
||||||
icon=""
|
|
||||||
|
|
||||||
if [[ $class == "playing" ]]; then
|
|
||||||
info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}')
|
|
||||||
if [[ ${#info} > 40 ]]; then
|
|
||||||
info=$(echo $info | cut -c1-40)"..."
|
|
||||||
fi
|
|
||||||
text=$info" "$icon
|
|
||||||
elif [[ $class == "paused" ]]; then
|
|
||||||
text=$icon
|
|
||||||
elif [[ $class == "stopped" ]]; then
|
|
||||||
text=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}"
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"os"
|
|
||||||
"os/exec"
|
|
||||||
"strings"
|
|
||||||
)
|
|
||||||
|
|
||||||
type jsonOutput struct {
|
|
||||||
Text string `json:"text,omitempty"`
|
|
||||||
Alt string `json:"alt,omitempty"`
|
|
||||||
Tooltip string `json:"tooltip,omitempty"`
|
|
||||||
Class string `json:"class,omitempty"`
|
|
||||||
Percentage int `json:"percentage,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
o := jsonOutput{}
|
|
||||||
|
|
||||||
pac, err := exec.Command("checkupdates").CombinedOutput()
|
|
||||||
if err != nil {
|
|
||||||
o.Tooltip = err.Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
aur, err := exec.Command("yay", "--devel", "-Qu").CombinedOutput()
|
|
||||||
if err != nil {
|
|
||||||
o.Tooltip += err.Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
updates := append(strings.Split(string(pac), "\n"), strings.Split(string(aur), "\n")...)
|
|
||||||
updates = removeEmptyLines(updates)
|
|
||||||
|
|
||||||
n := len(updates)
|
|
||||||
|
|
||||||
o.Class = "no-updates"
|
|
||||||
if n > 0 {
|
|
||||||
o.Class = "updates"
|
|
||||||
o.Tooltip = strings.Join(updates, "\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
o.Text = fmt.Sprintf("%d", n)
|
|
||||||
o.Alt = fmt.Sprintf("%d", n)
|
|
||||||
o.Percentage = n
|
|
||||||
|
|
||||||
json.NewEncoder(os.Stdout).Encode(o)
|
|
||||||
}
|
|
||||||
|
|
||||||
func removeEmptyLines(list []string) []string {
|
|
||||||
out := []string{}
|
|
||||||
for _, line := range list {
|
|
||||||
if len(line) > 0 {
|
|
||||||
out = append(out, line)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
alacritty --class aptus-upgrade -e yay --devel -Syu
|
|
||||||
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
report=$(curl wttr.in/?format="%C,+%t")
|
|
||||||
echo $report
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
*
|
|
||||||
* Base16 Nord
|
|
||||||
* Author: arcticicestudio
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
@define-color base10 #353B49;
|
|
||||||
@define-color base00 #2e3440;
|
|
||||||
@define-color base01 #3b4252;
|
|
||||||
@define-color base02 #434c5e;
|
|
||||||
@define-color base03 #4c566a;
|
|
||||||
@define-color base04 #d8dee9;
|
|
||||||
@define-color base05 #e5e9f0;
|
|
||||||
@define-color base06 #eceff4;
|
|
||||||
@define-color base07 #a4c3b9;
|
|
||||||
@define-color base08 #7ca4b4;
|
|
||||||
@define-color base09 #67788b;
|
|
||||||
@define-color base0A #78a7c5;
|
|
||||||
@define-color base0B #bf616a;
|
|
||||||
@define-color base0B-light #c57078;
|
|
||||||
@define-color base0C #d08770;
|
|
||||||
@define-color base0D #ebcb8b;
|
|
||||||
@define-color base0E #c1dbae;
|
|
||||||
@define-color base0F #b48ead;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo '{"text": "'$(playerctl metadata title)'", "alt": "'$(playerctl status)'", "tooltip": "'$(playerctl metadata --format "{{ playerName }} : {{ artist }} - {{ title }}")'", "class": "'$(playerctl status)'" }'
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
entries="Logout Suspend Reboot Shutdown"
|
|
||||||
|
|
||||||
selected=$(printf '%s\n' $entries | wofi --conf=$HOME/.config/wofi/config.power --style=$HOME/.config/wofi/style.widgets.css | awk '{print tolower($1)}')
|
|
||||||
|
|
||||||
case $selected in
|
|
||||||
logout)
|
|
||||||
swaymsg exit;;
|
|
||||||
suspend)
|
|
||||||
exec systemctl suspend;;
|
|
||||||
reboot)
|
|
||||||
exec systemctl reboot;;
|
|
||||||
shutdown)
|
|
||||||
exec systemctl poweroff -i;;
|
|
||||||
esac
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if pgrep river; then
|
|
||||||
wlogout -p layer-shell
|
|
||||||
else
|
|
||||||
nwgbar -o 0.4
|
|
||||||
fi
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
pid=`pgrep wf-recorder`
|
|
||||||
status=$?
|
|
||||||
|
|
||||||
if [ $status != 0 ]
|
|
||||||
then
|
|
||||||
echo '{"class": "nothing"}'
|
|
||||||
else
|
|
||||||
echo '{"class": "recording"}'
|
|
||||||
fi;
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
LOC="$1"
|
|
||||||
# HTML encode string as %20
|
|
||||||
LOCATION=$(sed -e "s/ /%20/g" <<<"$LOC")
|
|
||||||
content=$(curl -sS "https://thisdavej.azurewebsites.net/api/weather/current?loc=$LOCATION°=C")
|
|
||||||
ICON=$(curl -s 'https://wttr.in/?format=1' | sed 's/[+0-9a-cA-Z°-]//g' )
|
|
||||||
# echo $ICON
|
|
||||||
TEMP=$(echo $content | jq -r '. | "\(.temperature)°\(.degType)"' | sed 's/"//g')
|
|
||||||
TOOLTIP=$(echo $content | jq -r '. | "\(.temperature)°\(.degType)\n\(.skytext)"' | sed 's/"//g')
|
|
||||||
CLASS=$(echo $content | jq .skytext)
|
|
||||||
echo '{"text": "'$TEMP'", "tooltip": "'$ICON $TOOLTIP $LOC'", "class": '$CLASS' }'
|
|
||||||
|
|
||||||
@@ -1,201 +0,0 @@
|
|||||||
/* =============================================================================
|
|
||||||
*
|
|
||||||
* Waybar configuration
|
|
||||||
*
|
|
||||||
* Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
|
|
||||||
*
|
|
||||||
* =========================================================================== */
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
|
||||||
* Keyframes
|
|
||||||
* -------------------------------------------------------------------------- */
|
|
||||||
/*
|
|
||||||
Arc-Dark Color Scheme
|
|
||||||
*/
|
|
||||||
|
|
||||||
@define-color highlight #5294e2 ;
|
|
||||||
@define-color base1 #404552 ;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@keyframes blink-warning {
|
|
||||||
70% {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
color: white;
|
|
||||||
background-color: orange;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink-critical {
|
|
||||||
70% {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
color: white;
|
|
||||||
background-color: red;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
|
||||||
* Base styles
|
|
||||||
* -------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/* Reset all styles */
|
|
||||||
* {
|
|
||||||
border: none;
|
|
||||||
border-radius: 0;
|
|
||||||
min-height: 0;
|
|
||||||
margin: 1px;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The whole bar */
|
|
||||||
#waybar {
|
|
||||||
background: transparent;
|
|
||||||
color: #bebebe;
|
|
||||||
background-color: @base1;
|
|
||||||
font-family: UbuntuMono;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Each module */
|
|
||||||
#battery,
|
|
||||||
#clock,
|
|
||||||
#backlight,
|
|
||||||
#cpu,
|
|
||||||
#custom-keyboard-layout,
|
|
||||||
#memory,
|
|
||||||
#mode,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#temperature,
|
|
||||||
#tray {
|
|
||||||
margin-left:10px;
|
|
||||||
margin-right:10px;
|
|
||||||
padding:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
|
||||||
* Module styles
|
|
||||||
* -------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
#battery {
|
|
||||||
margin-top:3px;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.warning {
|
|
||||||
color: orange;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.warning.discharging {
|
|
||||||
animation-name: blink-warning;
|
|
||||||
animation-duration: 3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical.discharging {
|
|
||||||
animation-name: blink-critical;
|
|
||||||
animation-duration: 2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cpu{
|
|
||||||
margin-top:2.5px;
|
|
||||||
}
|
|
||||||
#cpu.warning {
|
|
||||||
color: orange;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cpu.critical {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory {
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory.warning {
|
|
||||||
color: orange;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory.critical {
|
|
||||||
color: red;
|
|
||||||
animation-name: blink-critical;
|
|
||||||
animation-duration: 2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode {
|
|
||||||
background: @highlight;
|
|
||||||
border-bottom: 3px transparent;
|
|
||||||
color:white;
|
|
||||||
margin-left: 5px;
|
|
||||||
padding:7;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
|
||||||
color: orange;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio{
|
|
||||||
margin-top:2px;
|
|
||||||
}
|
|
||||||
#pulseaudio.muted {
|
|
||||||
color: @highlight;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature.critical {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces{
|
|
||||||
font-size:18px;
|
|
||||||
}
|
|
||||||
#workspaces button {
|
|
||||||
border-bottom: 3px solid transparent;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
padding:0px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.focused {
|
|
||||||
border-bottom: 3px solid @highlight;
|
|
||||||
margin-bottom: 1px;
|
|
||||||
padding-left:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.urgent {
|
|
||||||
border-color: #c9545d;
|
|
||||||
color: #c9545d;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power{
|
|
||||||
margin-left:15px;
|
|
||||||
margin-right:15px;
|
|
||||||
font-size:20px;
|
|
||||||
}
|
|
||||||
#custom-launcher{
|
|
||||||
font-size:20px;
|
|
||||||
margin-left:15px;
|
|
||||||
margin-right:10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,285 +0,0 @@
|
|||||||
|
|
||||||
* {
|
|
||||||
border: none;
|
|
||||||
font-size: 15px;
|
|
||||||
margin: 2.5px;
|
|
||||||
font-family: MagicMushroom;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
window#waybar {
|
|
||||||
background-color: transparent;
|
|
||||||
color: #d8dee9;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
#workspaces {
|
|
||||||
font-family:JetBrainsMono;
|
|
||||||
background-color: #3b4252;
|
|
||||||
padding: 1px 5px 1px 5px;
|
|
||||||
font-size: 15px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
#workspaces button {
|
|
||||||
font-size: 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
margin: 0;
|
|
||||||
background-color: transparent;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
#window {
|
|
||||||
color: #d8dee9;
|
|
||||||
margin: 0px;
|
|
||||||
font-size: 14px;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 0px 6px 0px 6px;
|
|
||||||
}
|
|
||||||
@keyframes fadeIn {
|
|
||||||
from {opacity: 0;}
|
|
||||||
to {opacity: 1;}
|
|
||||||
}
|
|
||||||
window#waybar.empty {
|
|
||||||
/* background-color: #353b49; */
|
|
||||||
}
|
|
||||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
|
||||||
#workspaces button:hover {
|
|
||||||
box-shadow: inherit;
|
|
||||||
color: #5e81ac;
|
|
||||||
}
|
|
||||||
#workspaces button.focused,#tags button.occupied {
|
|
||||||
color: #81a1c1;
|
|
||||||
}
|
|
||||||
#tags button.focused {
|
|
||||||
color: #5e81ac;
|
|
||||||
}
|
|
||||||
#workspaces button.urgent {
|
|
||||||
color: #BF616A;
|
|
||||||
}
|
|
||||||
#tags button {
|
|
||||||
font-family:MagicMushroom;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
#mpd {
|
|
||||||
padding: 0px 10px;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
/* TASKBAR */
|
|
||||||
#taskbar {
|
|
||||||
margin: 2px 4px 2px 4px;
|
|
||||||
}
|
|
||||||
#taskbar button {
|
|
||||||
border-radius: 10px;
|
|
||||||
font-size: 14px;
|
|
||||||
margin: 0px 5px 0px 5px;
|
|
||||||
padding: 0px 6px 0px 6px;
|
|
||||||
background-color: #2e3440;
|
|
||||||
}
|
|
||||||
#taskbar button.active {
|
|
||||||
/* background-color: #434c5e; */
|
|
||||||
color: #5e81ac;
|
|
||||||
}
|
|
||||||
#taskbar button.minimized {
|
|
||||||
color: #ebcb8b;
|
|
||||||
}
|
|
||||||
#taskbar button:hover {
|
|
||||||
box-shadow: inherit;
|
|
||||||
background-color: rgba(35,39,49,0.4);
|
|
||||||
}
|
|
||||||
/* BROWSER BOOKMARKS */
|
|
||||||
#custom-name, #custom-firefox,#custom-libreoffice,#custom-dolphin,#custom-youtube,#custom-kate, #custom-store. {
|
|
||||||
background-color: transparent;
|
|
||||||
font-size: 15px;
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
padding: 0px 15px 0px 15px ;
|
|
||||||
}
|
|
||||||
#custom-firefox {
|
|
||||||
margin-left: 10px;
|
|
||||||
border-radius: 10px 0px 0px 10px;
|
|
||||||
font-size: 15px;
|
|
||||||
color: #d08770;
|
|
||||||
}
|
|
||||||
#custom-libreoffice {
|
|
||||||
color: #ebcb8b;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
#custom-library {
|
|
||||||
color: #c57078;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
#custom-dolphin {
|
|
||||||
color: #a3be8c;
|
|
||||||
border-radius: 0px 10px 10px 0px;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
#custom-youtube {
|
|
||||||
color: #b48ead;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
#custom-kate {
|
|
||||||
color: #88c0d0;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
#custom-store {
|
|
||||||
margin-left: 10px;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
#custom-launcher {
|
|
||||||
margin-left: 10px;
|
|
||||||
margin-right: 10px;
|
|
||||||
font-size: 15px;
|
|
||||||
background-color: #88c0d0;
|
|
||||||
padding: 7px 7px 7px 7px;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* WIDGETS */
|
|
||||||
#cpu, #idle_inhibitor, #custom-pacman, #memory, #backlight, #disk, #network, #pulseaudio, #custom-weather, #temperature, #mpd {
|
|
||||||
font-size: 14px;
|
|
||||||
background-color: #3b4252;
|
|
||||||
padding: 0px 14px 0px 14px;
|
|
||||||
margin: 3px 0px 3px 0px;
|
|
||||||
border-radius: 0px;
|
|
||||||
}
|
|
||||||
#disk {
|
|
||||||
color:#b48ead;
|
|
||||||
}
|
|
||||||
#memory {
|
|
||||||
color:#d08770;
|
|
||||||
}
|
|
||||||
#cpu {
|
|
||||||
color:#c57078;
|
|
||||||
}
|
|
||||||
#network {
|
|
||||||
color: #9da98d;
|
|
||||||
}
|
|
||||||
#custom-weather {
|
|
||||||
color:#81a1c1;
|
|
||||||
}
|
|
||||||
#custom-weather {
|
|
||||||
padding: 0px 8px 0px 8px;
|
|
||||||
background-color:#4c566a;
|
|
||||||
color:#b48ead;
|
|
||||||
}
|
|
||||||
#custom-media {
|
|
||||||
color: #818896;
|
|
||||||
border-radius: 0px;
|
|
||||||
margin-left: 10px;
|
|
||||||
padding: 0px 14px 0px 14px;
|
|
||||||
}
|
|
||||||
#custom-media.Playing {
|
|
||||||
color: #81a1c1;
|
|
||||||
border-radius: 0px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
#custom-media.Music {
|
|
||||||
color: #b48ead;
|
|
||||||
border-radius: 0px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
#custom-pacman {
|
|
||||||
color: #ebcb8b;
|
|
||||||
border-radius: 0px 10px 10px 0px;
|
|
||||||
font-weight: 600;
|
|
||||||
background-color:#4c566a;
|
|
||||||
}
|
|
||||||
#pulseaudio {
|
|
||||||
color: #8fbcbb;
|
|
||||||
border-radius: 10px 0px 0px 10px;
|
|
||||||
}
|
|
||||||
#pulseaudio.muted {
|
|
||||||
border-radius: 10px;
|
|
||||||
color: #4c566a;
|
|
||||||
}
|
|
||||||
#temperature{
|
|
||||||
color: #88c0d0;
|
|
||||||
}
|
|
||||||
#temperature.critical {
|
|
||||||
color: #eb4d4b;
|
|
||||||
}
|
|
||||||
#backlight{
|
|
||||||
background-color:#4c566a;
|
|
||||||
margin: 3px 0px 3px 0px;
|
|
||||||
color: #ebcb8b;
|
|
||||||
border-radius: 0px 10px 10px 0px;
|
|
||||||
font-size: 17px;
|
|
||||||
|
|
||||||
}
|
|
||||||
#battery {
|
|
||||||
font-size: 14px;
|
|
||||||
background-color: #3b4252;
|
|
||||||
border-radius: 10px 0px 0px 10px;
|
|
||||||
color: #88c0d0;
|
|
||||||
padding: 0px 14px 0px 14px;
|
|
||||||
margin: 3px 0px 3px 12px;
|
|
||||||
}
|
|
||||||
#battery.charging {
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
@keyframes blink {
|
|
||||||
to {
|
|
||||||
background-color: #ffffff;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#battery.critical:not(.charging) {
|
|
||||||
background-color: #88c0d0;
|
|
||||||
border-radius: 10px;
|
|
||||||
color: #ffffff;
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
label:focus {
|
|
||||||
background-color: #000000;
|
|
||||||
|
|
||||||
}
|
|
||||||
#idle_inhibitor {
|
|
||||||
font-size: 20px;
|
|
||||||
color: #6f7787;
|
|
||||||
}
|
|
||||||
#idle_inhibitor.activated {
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
#custom-power, #custom-recorder, #tray {
|
|
||||||
background-color: transparent;
|
|
||||||
padding: 2px 10px 2px 10px;
|
|
||||||
margin: 2px 10px 2px 10px;
|
|
||||||
}
|
|
||||||
#clock {
|
|
||||||
font-family:MagicMushroom;
|
|
||||||
font-size: 14px;
|
|
||||||
margin-left: 5px;
|
|
||||||
padding: 0px 14px 0px 14px;
|
|
||||||
background-color: #3b4252;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
#custom-recorder {
|
|
||||||
color:#c57078;
|
|
||||||
padding: 2px 5px 2px 15px;
|
|
||||||
margin: 2px 2px 2px 2px;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
#tray {
|
|
||||||
border-radius: 15px;
|
|
||||||
margin-left: 7px;
|
|
||||||
color: #8fbcbb;
|
|
||||||
}
|
|
||||||
#custom-power {
|
|
||||||
color: #eceff4;
|
|
||||||
background-color: #88c0d0;
|
|
||||||
font-size: 17px;
|
|
||||||
margin-right: 2px;
|
|
||||||
border-radius: 15px;
|
|
||||||
}
|
|
||||||
#mpd.disconnected {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
}
|
|
||||||
#mpd.stopped {
|
|
||||||
background-color: #90b1b1;
|
|
||||||
}
|
|
||||||
#mpd.paused {
|
|
||||||
background-color: #51a37a;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"layer": "top",
|
|
||||||
"position": "bottom",
|
|
||||||
"height": 25
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user