mirror of
https://github.com/JorySeverijnse/dotfiles.git
synced 2026-08-26 08:57:27 +02:00
initial dotfiles commit
This commit is contained in:
+114
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 25, // Waybar height (to be removed for auto height)
|
||||
"spacing": 2, // Gaps between modules (4px)
|
||||
"modules-left": ["clock", "sway/workspaces", "custom/cmus"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": [ "custom/clipboard", "network", "pulseaudio", "cpu", "memory", "temperature", "custom/gpu-usage", "custom/gpu-temp", "battery"],
|
||||
// Modules configuration
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"format": "{icon} {name}",
|
||||
"format-icons": {
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 5
|
||||
},
|
||||
"clock": {
|
||||
"interval": 1,
|
||||
"format": "{:%H-:%M-:%S}",
|
||||
"format-alt": "{:%Y-%m-%d}",
|
||||
"on-click-right": "alacritty --hold -e bash -c 'cal -m -Y -c 5'",
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"on-click-right": "alacritty --hold -e nu -c 'cat ~/pass.txt | sudo -S lshw -class cpu | grep -v capabilities: ; ps | sort-by -r cpu | first 10 | select pid name cpu mem'",
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
}
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% ",
|
||||
"on-click-right": "alacritty --hold -e nu -c 'cat ~/pass.txt | sudo -S lshw -short -class memory ; ps | sort-by -r mem | first 10 | select pid name cpu mem'",
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
}
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"custom/clipboard": {
|
||||
"format": "",
|
||||
"interval": "once",
|
||||
"on-click": "copyq toggle",
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
"on-click": "alacritty --hold -e upower -i /org/freedesktop/UPower/devices/battery_BAT0",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"on-click-right": "alacritty -e nmtui",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
|
||||
"custom/separator": {
|
||||
"format": "|",
|
||||
"interval": "once",
|
||||
"tooltip": false
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
@define-color background #1d2021;
|
||||
@define-color foreground #ebdbb2;
|
||||
@define-color dim #928374;
|
||||
@define-color yellow #fabd2f;
|
||||
@define-color red #fb4934;
|
||||
@define-color green #b8bb26;
|
||||
|
||||
* {
|
||||
background: @background;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: Input, "Font Awesome 6 Free Solid";
|
||||
font-size: 10px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
#submap {
|
||||
border-bottom: 3px solid @red;
|
||||
}
|
||||
|
||||
#custom-usbguard,
|
||||
#custom-decrypted,
|
||||
#custom-updates,
|
||||
#custom-mail,
|
||||
#battery.warning,
|
||||
#disk.warning,
|
||||
#memory.warning,
|
||||
#cpu.warning,
|
||||
#custom-movie.on,
|
||||
#custom-dnd.dnd-notification,
|
||||
#custom-dnd.dnd-none {
|
||||
border-top: 3px solid @background;
|
||||
border-bottom: 3px solid @yellow;
|
||||
}
|
||||
|
||||
#custom-security,
|
||||
#custom-systemd,
|
||||
#battery.critical,
|
||||
#disk.critical,
|
||||
#memory.critical,
|
||||
#cpu.critical,
|
||||
#custom-eyes,
|
||||
#custom-recording {
|
||||
border-top: 3px solid @background;
|
||||
border-bottom: 3px solid @red;
|
||||
}
|
||||
|
||||
battery.charging {
|
||||
border-top: 3px solid @background;
|
||||
border-bottom: 3px solid @green;
|
||||
}
|
||||
|
||||
#submap,
|
||||
#pulseaudio,
|
||||
#custom-clipboard,
|
||||
#network,
|
||||
#cpu,
|
||||
#disk,
|
||||
#memory,
|
||||
#backlight,
|
||||
#battery,
|
||||
#clock {
|
||||
padding: 0 6px;
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
|
||||
#tray {
|
||||
margin-left: -1000000px;
|
||||
}
|
||||
#workspaces,
|
||||
#window,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#battery,
|
||||
#custom-clipboard,
|
||||
#clock,
|
||||
#cpu,
|
||||
#custom-progress,
|
||||
#custom-recording,
|
||||
#custom-security,
|
||||
#custom-systemd,
|
||||
#custom-updates,
|
||||
#custom-usbguard,
|
||||
#custom-yubikey,
|
||||
#disk,
|
||||
#memory,
|
||||
#submap,
|
||||
#network,
|
||||
#pulseaudio
|
||||
{
|
||||
color: @foreground;
|
||||
}
|
||||
Reference in New Issue
Block a user