mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
setup tilig
This commit is contained in:
parent
89c7b5d35d
commit
ec5940b911
7 changed files with 398 additions and 23 deletions
106
config/waybar/config
Normal file
106
config/waybar/config
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
// vim: ft=jsonc
|
||||
{
|
||||
"position": "top",
|
||||
"layer": "top",
|
||||
"height": 14,
|
||||
"margin-top": 0,
|
||||
"margin-bottom": 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock",
|
||||
"cpu"
|
||||
],
|
||||
"modules-right": [
|
||||
"memory",
|
||||
"tray",
|
||||
"backlight",
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"network"
|
||||
],
|
||||
|
||||
// modules
|
||||
"clock": {
|
||||
"format": " {:%H:%M}",
|
||||
"tooltip": "true",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": " {:%d/%m}"
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"active-only": false,
|
||||
"all-outputs": true,
|
||||
"disable-scroll": false,
|
||||
"on-scroll-up": "hyprctl dispatch workspace -1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace +1",
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
"sort-by-number": true,
|
||||
"format-icons": {
|
||||
"urgent": "",
|
||||
"active": "",
|
||||
"default": ""
|
||||
},
|
||||
"persistent_workspaces": { "*": 9 }
|
||||
},
|
||||
|
||||
"hyprland/window": { "max-length": "40" },
|
||||
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format":"{icon} {capacity}%",
|
||||
"format-charging":"{icon} {capacity}%",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{icon} {time}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"format": " {used}%",
|
||||
"interval": 5
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"format-alt": " {avg_frequency} GHz",
|
||||
"interval": 5
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format-wifi": " {essid}",
|
||||
"format-linked": " {ifname} (No IP)",
|
||||
"format-disconnected": "",
|
||||
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
||||
"tooltip-format": "{essid}",
|
||||
"on-click-right": "nm-connection-editor"
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 5
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"format": "{icon} {percent}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
||||
"on-scroll-up": "brightnessctl set +10%",
|
||||
"on-scroll-down": "brightnessctl set 10%-"
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": { "default": ["", "", ""] },
|
||||
"on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+",
|
||||
"on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
}
|
||||
}
|
||||
50
config/waybar/style.css
Normal file
50
config/waybar/style.css
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
@define-color bg-color #1a1b26;
|
||||
@define-color bg-darker-color #15161e;
|
||||
@define-color fg-color #c0caf5;
|
||||
@define-color active-bg-color #7aa2f7;
|
||||
@define-color active-fg-color #16161e;
|
||||
@define-color inactive-bg-color #292e42;
|
||||
@define-color inactive-fg-color #545c7e;
|
||||
@define-color green #73daca;
|
||||
@define-color red #db4b4b;
|
||||
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0px;
|
||||
font-family: Jetbrains Mono Nerd Font;
|
||||
font-size: 14px;
|
||||
font-style: normal;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @bg-color;
|
||||
border-bottom: 2px solid @inactive-bg-color;
|
||||
color: @fg-color;
|
||||
}
|
||||
|
||||
#cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #pulseaudio, #network, #backlight {
|
||||
background-color: @bg-darker-color;
|
||||
color: @fg-color;
|
||||
border-radius: 16px;
|
||||
margin: 5px 5px 5px 5px;
|
||||
padding: 0px 10px 0px 10px;
|
||||
}
|
||||
|
||||
#workspaces button { color: @inactive-fg-color; }
|
||||
#workspaces button.active {
|
||||
color: @active-bg-color;
|
||||
background-color: transparent;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background-color: @active-bg-color;
|
||||
border-radius: 16px;
|
||||
color: black;
|
||||
}
|
||||
|
||||
#clock { font-weight: bold; }
|
||||
#battery.charging { color: @green; }
|
||||
#battery.warning:not(.charging) { color: @red; }
|
||||
#pulseaudio.muted { color: @red; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue