Move all config files to config directory and add corresponding changes to bootstrap script
This commit is contained in:
71
config/waybar/config
Normal file
71
config/waybar/config
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"position": "top",
|
||||
"modules-left": ["sway/workspaces", "custom/player", "sway/mode"],
|
||||
"modules-right": [
|
||||
"custom/weather",
|
||||
"custom/pacman-updates",
|
||||
"pulseaudio",
|
||||
"sway/language",
|
||||
"network",
|
||||
"clock",
|
||||
"tray",
|
||||
"custom/power-menu"
|
||||
],
|
||||
|
||||
"sway/workspaces": {
|
||||
"all-output": true,
|
||||
"format": "{index}"
|
||||
},
|
||||
"custom/player": {
|
||||
"exec": "playerctl metadata -f '{{emoji(status)}} {{title}} by {{artist}}'",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-click-right": "pamixer -t",
|
||||
"restart-interval": 0,
|
||||
"tooltip": false,
|
||||
"max-length": 40
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "--{}--"
|
||||
},
|
||||
|
||||
"custom/weather": {
|
||||
"exec": "curl 'https://wttr.in/?format=1'",
|
||||
"interval": 60,
|
||||
"on-click": "firefox https://wttr.in",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/pacman-updates": {
|
||||
"exec": "pacman -Qu | wc -l",
|
||||
"interval": 60,
|
||||
"return-type": "{}",
|
||||
"format": "{} updates",
|
||||
"on-click": "alacritty -e sudo pacman -Syu",
|
||||
"tooltip": false
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
"format-muted": "MUTE"
|
||||
},
|
||||
"sway/language": {
|
||||
"tooltip": false
|
||||
},
|
||||
"network": {
|
||||
"format": "{icon}",
|
||||
"format-icons": [""],
|
||||
"format-disconnected": "No network",
|
||||
"tooltip": false
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%d %b %H:%M, %A}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/power-menu": {
|
||||
"format": "{icon}",
|
||||
"format-icons": [""],
|
||||
"on-click": "wlogout -b 4 -m 450 -c 30"
|
||||
}
|
||||
}
|
||||
5
config/waybar/launch.sh
Executable file
5
config/waybar/launch.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#! /bin/bash
|
||||
|
||||
killall waybar
|
||||
|
||||
waybar
|
||||
54
config/waybar/style.css
Normal file
54
config/waybar/style.css
Normal file
@@ -0,0 +1,54 @@
|
||||
/* Colors */
|
||||
/* primary: #ffa759 */
|
||||
/* background: #202734 */
|
||||
/* background-alt: #191e2a */
|
||||
/* foreground: #cbccc6 */
|
||||
|
||||
window#waybar {
|
||||
background: #191e2a;
|
||||
color: #cbccc6;
|
||||
font-family: "Fira Code", "Font Awesome 5 Free Solid";
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background: #202734;
|
||||
margin: 10px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: #fff;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: #ffa759;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background: #ffa759;
|
||||
}
|
||||
|
||||
#mode {
|
||||
color: #ffa759;
|
||||
}
|
||||
|
||||
#custom-player,
|
||||
#custom-weather,
|
||||
#custom-pacman-updates,
|
||||
#clock,
|
||||
#network,
|
||||
#language,
|
||||
#pulseaudio,
|
||||
#tray,
|
||||
#custom-power-menu {
|
||||
background: #202734;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
color: #ffa759;
|
||||
}
|
||||
1
config/waybar/waybar
Symbolic link
1
config/waybar/waybar
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/daniil/dotfiles/config/waybar
|
||||
Reference in New Issue
Block a user