Compare commits
2 commits
7c632d8163
...
6faece00a3
Author | SHA1 | Date | |
---|---|---|---|
6faece00a3 | |||
1eedc532f0 |
6 changed files with 959 additions and 0 deletions
39
config/hypr/hypridle.conf
Normal file
39
config/hypr/hypridle.conf
Normal file
|
@ -0,0 +1,39 @@
|
|||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||
}
|
||||
|
||||
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
||||
#listener {
|
||||
# timeout = 150 # 2.5min
|
||||
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
||||
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||
#}
|
||||
|
||||
listener {
|
||||
timeout = 210 # 3.5min
|
||||
on-timeout = brightnessctl -s set 40 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||
on-resume = brightnessctl -r # monitor backlight restore.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 297 # 4min57s
|
||||
on-timeout = chayang -d 3 # dim monitor
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 600 # 10min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800 # 30min
|
||||
on-timeout = systemctl suspend # suspend pc
|
||||
}
|
280
config/hypr/hyprland.conf
Normal file
280
config/hypr/hyprland.conf
Normal file
|
@ -0,0 +1,280 @@
|
|||
# This is an example Hyprland config file.
|
||||
#
|
||||
# Refer to the wiki for more information.
|
||||
|
||||
#
|
||||
# Please note not all available settings / options are set here.
|
||||
# For a full list, see the wiki
|
||||
#
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
#monitor=HDMI-A-2, 1920x1080, 1920x0, 1
|
||||
#monitor=DVI-D-1, 1920x1080, 0x0, 1
|
||||
monitor = , preferred, auto, 1
|
||||
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
|
||||
# Source a file (multi-file configs)
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
env = XCURSOR_THEME,Bibata-Modern-Classic
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_THEME,Bibata-Modern-Classic
|
||||
#env = SDL_VIDEODRIVER,wayland
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct
|
||||
env = QT_STYLE_OVERRIDE,kvantum
|
||||
#env = XDG_CURRENT_DESKTOP,hyprland
|
||||
env = XDG_SESSION_DESKTOP,hyprland
|
||||
env = XDG_SESSION_TYPE,hyprland
|
||||
env = GDK_BACKEND,wayland,x11,*
|
||||
env = GTK_THEME,cachyos-nord:dark
|
||||
env = PATH,$HOME/bin:$PATH
|
||||
env = HYPRSHOT_DIR,/home/siren/Pictures/Screenshots
|
||||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
#kb_layout = us
|
||||
#kb_variant =
|
||||
kb_layout = de
|
||||
kb_variant = nodeadkeys
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
numlock_by_default = true
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = false
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 2
|
||||
gaps_out = 2
|
||||
border_size = 2
|
||||
col.active_border = rgba(82dcccff) rgba(01ccffff) 45deg
|
||||
col.inactive_border = rgba(007d6fff) rgba(182545ff) 45deg
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
decoration {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
inactive_opacity = 0.95
|
||||
rounding = 6
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
new_optimizations = true
|
||||
#xray = true
|
||||
}
|
||||
shadow {
|
||||
enabled = true
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = 0xee1a1a1
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 5, default, fade
|
||||
}
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # you probably want this
|
||||
smart_split = true
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
orientation = center
|
||||
}
|
||||
|
||||
gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = false
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||
#device:epic-mouse-v1 {
|
||||
# sensitivity = -0.5
|
||||
#}
|
||||
|
||||
misc {
|
||||
disable_hyprland_logo = true
|
||||
disable_splash_rendering = true
|
||||
mouse_move_enables_dpms = true
|
||||
key_press_enables_dpms = true
|
||||
}
|
||||
|
||||
# Example windowrule v1
|
||||
# windowrule = float,^(*ksnip)$
|
||||
# Example windowrule v2
|
||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
||||
# Workspace Rules
|
||||
#workspace = 1, monitor:HDMI-A-2
|
||||
#workspace = 2, monitor:HDMI-A-2
|
||||
#workspace = 3, monitor:HDMI-A-2
|
||||
#workspace = 4, monitor:HDMI-A-2
|
||||
#workspace = 5, monitor:HDMI-A-2
|
||||
#workspace = 6, monitor:HDMI-A-2
|
||||
#workspace = 7, monitor:HDMI-A-2
|
||||
#workspace = 8, monitor:HDMI-A-2
|
||||
#workspace = 9, monitor:HDMI-A-2
|
||||
#workspace = 10, monitor:HDMI-A-2
|
||||
#workspace = 11, monitor:DVI-D-1
|
||||
#workspace = 12, monitor:DVI-D-1
|
||||
#workspace = 13, monitor:DVI-D-1
|
||||
#workspace = 14, monitor:DVI-D-1
|
||||
#workspace = 15, monitor:DVI-D-1
|
||||
#workspace = 16, monitor:DVI-D-1
|
||||
#workspace = 17, monitor:DVI-D-1
|
||||
#workspace = 18, monitor:DVI-D-1
|
||||
#workspace = 19, monitor:DVI-D-1
|
||||
#workspace = 20, monitor:DVI-D-1
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, Q, exec, alacritty
|
||||
bind = $mainMod, C, killactive,
|
||||
bind = $mainMod SHIFT, M, exit,
|
||||
bind = $mainMod, E, exec, nemo
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, wofi -S drun,run
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod, F, fullscreen, # dwindle
|
||||
bind = $mainMod, N, exec, swaync-client -t -sw # swaync
|
||||
bind = $mainMod SHIFT, S, exec, systemctl suspend
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
#bind = $mainMod, left, movefocus, l
|
||||
#bind = $mainMod, right, movefocus, r
|
||||
#bind = $mainMod, up, movefocus, u
|
||||
#bind = $mainMod, down, movefocus, d
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
#bind = $mainMod ALT, 1, workspace, 11
|
||||
#bind = $mainMod ALT, 2, workspace, 12
|
||||
#bind = $mainMod ALT, 3, workspace, 13
|
||||
#bind = $mainMod ALT, 4, workspace, 14
|
||||
#bind = $mainMod ALT, 5, workspace, 15
|
||||
#bind = $mainMod ALT, 6, workspace, 16
|
||||
#bind = $mainMod ALT, 7, workspace, 17
|
||||
#bind = $mainMod ALT, 8, workspace, 18
|
||||
#bind = $mainMod ALT, 9, workspace, 19
|
||||
#bind = $mainMod ALT, 0, workspace, 20
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
#bind = $mainMod SHIFT ALT, 1, movetoworkspace, 11
|
||||
#bind = $mainMod SHIFT ALT, 2, movetoworkspace, 12
|
||||
#bind = $mainMod SHIFT ALT, 3, movetoworkspace, 13
|
||||
#bind = $mainMod SHIFT ALT, 4, movetoworkspace, 14
|
||||
#bind = $mainMod SHIFT ALT, 5, movetoworkspace, 15
|
||||
#bind = $mainMod SHIFT ALT, 6, movetoworkspace, 16
|
||||
#bind = $mainMod SHIFT ALT, 7, movetoworkspace, 17
|
||||
#bind = $mainMod SHIFT ALT, 8, movetoworkspace, 18
|
||||
#bind = $mainMod SHIFT ALT, 9, movetoworkspace, 19
|
||||
#bind = $mainMod SHIFT ALT, 0, movetoworkspace, 20
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, m+1
|
||||
bind = $mainMod, mouse_up, workspace, m-1
|
||||
|
||||
# go to previous or next workspace with mainMod + arrow keys
|
||||
bind = $mainMod, left, workspace, r-1
|
||||
bind = $mainMod, right, workspace, r+1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Suspend
|
||||
bind = , XF86Sleep, exec, systemctl suspend
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
|
||||
# Brightness
|
||||
#bindel = , XF86MonBrightnessUp, exec, brightnessctl set 10%+
|
||||
#bindel = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
|
||||
bindl = , XF86MonBrightnessUp, exec, swayosd-client --brightness +10
|
||||
bindl = , XF86MonBrightnessDown, exec, swayosd-client --brightness -10
|
||||
|
||||
# Media keys
|
||||
#bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||
#bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
#bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
#bindl = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
bindl = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume 5
|
||||
bindl = , XF86AudioLowerVolume, exec, swayosd-client --output-volume -5
|
||||
bindl = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
|
||||
bindl = , XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle
|
||||
|
||||
# Screenshots
|
||||
bind = , PRINT, exec, hyprshot -m output # screenshot a monitor
|
||||
bind = $mainMod, PRINT, exec, hyprshot -m window # screenshot a window
|
||||
bind = $mainMod SHIFT, PRINT, exec, hyprshot -m region # screenshot a region
|
||||
|
||||
# Autolaunch
|
||||
#exec-once = hyprpaper
|
||||
exec-once = swaybg -o \* -i /home/siren/Pictures/wallpaper/cachy_btw_swirl.jpg -m fill &
|
||||
exec-once = hypridle &
|
||||
exec-once = waybar -c .config/waybar/config-hypr &
|
||||
exec-once = swaync &
|
||||
exec-once = copyq --start-server &
|
||||
#exec-once = gammastep-indicator
|
||||
#exec-once = nextcloud
|
||||
exec-once = swayosd-server &
|
||||
exec-once = systemctl --user start hyprpolkitagent &
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
|
75
config/hypr/hyprlock.conf
Normal file
75
config/hypr/hyprlock.conf
Normal file
|
@ -0,0 +1,75 @@
|
|||
background {
|
||||
monitor =
|
||||
#path = screenshot
|
||||
path = /home/siren/Pictures/wallpaper/swirl.jpg
|
||||
color = rgba(17, 17, 17, 1.0)
|
||||
blur_passes = 2
|
||||
}
|
||||
input-field {
|
||||
monitor =
|
||||
size = 275, 40%
|
||||
outline_thickness = 2
|
||||
|
||||
#placeholder_text = insert password
|
||||
#hide_input = true
|
||||
|
||||
inner_color = rgba(0, 0, 0, 0.4)
|
||||
outer_color = rgba(44, 44, 44, 0.4)
|
||||
#check_color = rgba(0, 170, 136, 1)
|
||||
#fail_color = rgba(255, 144, 116, 1)
|
||||
|
||||
font_family = Ubuntu
|
||||
font_color = rgb(204, 204, 204)
|
||||
fade_on_empty = false
|
||||
rounding = 15
|
||||
|
||||
position = 0, -20
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo "$(date)"
|
||||
color = rgba(204, 204, 204, 1.0)
|
||||
font_size = 16
|
||||
font_family = Bahnschrift
|
||||
|
||||
position = 0, 180
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
label {
|
||||
monitor =
|
||||
text = welcome back $USER
|
||||
color = rgba(197, 197, 197, 1.0)
|
||||
font_size = 25
|
||||
font_family = Ubuntu
|
||||
|
||||
position = 0, 80
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
shape {
|
||||
monitor =
|
||||
size = 360, 60
|
||||
color = rgba(0, 0, 0, 0.0) # no fill
|
||||
rounding = -1 # circle
|
||||
border_size = 4
|
||||
#border_color = rgba(46, 40, 76, 1)
|
||||
border_color = rgba(0, 125, 111, 1)
|
||||
|
||||
position = 0, 80
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:0] echo "$(fortune -s)"
|
||||
color = rgba(197, 197, 197, 1.0)
|
||||
font_size = 12
|
||||
font_family = Ubuntu
|
||||
|
||||
position = 0, 30
|
||||
halign = center
|
||||
valign = bottom
|
||||
}
|
215
config/waybar/config-hypr
Normal file
215
config/waybar/config-hypr
Normal file
|
@ -0,0 +1,215 @@
|
|||
{
|
||||
"layer": "bottom", // (top|bottom|overlay)
|
||||
"position": "top", // (top|bottom|left|right)
|
||||
"height": 20, // leave blank for a dynamic value
|
||||
// "width": 1280, // leave blank for a dynamic value
|
||||
"spacing": 0, // Gaps between modules
|
||||
"fixed-center": false,
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["hyprland/workspaces", "custom/arrow8"],
|
||||
"modules-center": ["hyprland/window"],
|
||||
"modules-right": [ "custom/arrow0", "tray", "custom/notification", "idle_inhibitor", "custom/arrow1", "cpu", "custom/arrow2", "memory", "custom/arrow3", "temperature", "custom/arrow4", "custom/storage", "custom/arrow5", "network", "custom/arrow6", "bluetooth", "battery", "wireplumber", "custom/arrow7", "clock","custom/power"],
|
||||
// Module Config
|
||||
"hyprland/workspaces": {
|
||||
"format": "{id}",
|
||||
"smooth-scrolling-threshold": 1.0,
|
||||
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r-1",
|
||||
"on-click": "activate"
|
||||
},
|
||||
"hyprland/window": {
|
||||
"max-length": 200,
|
||||
"separate-outputs": true
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 4
|
||||
},
|
||||
"custom/notification": {
|
||||
"tooltip": false,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-inhibited-none": ""
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {max_frequency}GHz | {usage}%" ,
|
||||
},
|
||||
"memory": {
|
||||
"format": " {}%"
|
||||
},
|
||||
"temperature": {
|
||||
"interval": 4,
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{icon}{temperatureC}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"tooltip": false,
|
||||
"max-length": 6,
|
||||
"min-length": 6,
|
||||
"on-click": "xsensors"
|
||||
},
|
||||
"custom/storage": {
|
||||
"format": " {}",
|
||||
"format-alt": "{percentage}% ",
|
||||
"format-alt-click": "click-right",
|
||||
"return-type": "json",
|
||||
"interval": 60,
|
||||
"exec": "~/.config/waybar/modules/storage.sh"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-ethernet": " {bandwidthUpBytes} {bandwidthDownBytes}",
|
||||
"format-wifi": " {bandwidthUpBytes} {bandwidthDownBytes}",
|
||||
"tooltip-format": "[{ipaddr}/{cidr}] {ifname} via {gwaddr}",
|
||||
"tooltip-format-wifi": "{essid} {frequency}MHz\nStrength: {signaldBm}dBm ({signalStrength}%)\n[{ipaddr}/{cidr}] {ifname} via {gwaddr}",
|
||||
"format-linked": " {ifname} (No IP)",
|
||||
"format-disconnected": "⚠ Disconnected",
|
||||
"interval": 10,
|
||||
"on-click": "nm-connection-editor",
|
||||
"on-click-right": "rfkill toggle wlan"
|
||||
},
|
||||
"battery": {
|
||||
"interval": 2,
|
||||
"states": {
|
||||
"good": 85,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"bluetooth": {
|
||||
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
|
||||
"format-on": "",
|
||||
"format-off": "",
|
||||
"format-disabled": "", // an empty format will hide the module
|
||||
"format-connected": " {num_connections}",
|
||||
"tooltip-format": "{controller_alias}\t[{controller_address}]",
|
||||
"tooltip-format-connected": "{controller_alias}\t[{controller_address}]\n\n{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": "{device_alias}\t[{device_address}]",
|
||||
"tooltip-format-enumerate-connected-battery": "{device_alias}\t {device_battery_percentage}%\t[{device_address}]",
|
||||
"on-click": "blueman-manager",
|
||||
"on-click-right": "rfkill toggle bluetooth"
|
||||
},
|
||||
"wireplumber": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " MUTE",
|
||||
"on-click": "pavucontrol",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"clock": {
|
||||
"format": " {:%I:%M %p}",
|
||||
"tooltip-format": "<tt>{calendar}</tt>",
|
||||
"format-alt": " {:%a, %d %b, W%V %Y} ",
|
||||
"calendar": {
|
||||
"mode" : "month",
|
||||
"weeks-pos" : "right",
|
||||
"format": {
|
||||
"months": "<span color='#0883ff'><b>{}</b></span>",
|
||||
"days": "<span color='#8308ff'><b>{}</b></span>",
|
||||
"weeks": "<span color='#08ff83'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#ff8308'><b>{}</b></span>",
|
||||
"today": "<span color='#ff0883'><b><u>{}</u></b></span>"
|
||||
}
|
||||
}
|
||||
},
|
||||
"custom/power": {
|
||||
"format": "",
|
||||
"tooltip": false,
|
||||
"on-click": "wlogout"
|
||||
},
|
||||
// Separators
|
||||
"custom/arrow0": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow1": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow2": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow3": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow4": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow5": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow6": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow7": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/arrow8": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
}
|
||||
// Unused modules
|
||||
// "keyboard-state": {
|
||||
// "numlock": true,
|
||||
// "capslock": true,
|
||||
// "format": "{name} {icon}",
|
||||
// "format-icons": {
|
||||
// "locked": "",
|
||||
// "unlocked": ""
|
||||
// }
|
||||
// },
|
||||
// "disk": {
|
||||
// "format": " {percentage_used}%",
|
||||
// "tooltip-format": "{used} of {total} on {path}",
|
||||
// "path": "/"
|
||||
// },
|
||||
// "mpris": {
|
||||
// "format": "{player_icon} {artist} - {title}",
|
||||
// "format-paused": "{status_icon} {artist} - {title}",
|
||||
// "player-icons": {
|
||||
// "default": "⏵",
|
||||
// "mpv": ""
|
||||
// },
|
||||
// "status-icons": {
|
||||
// "paused": "⏯"
|
||||
// },
|
||||
// "ignored-players": ["firefox"]
|
||||
// },
|
||||
}
|
||||
|
25
config/waybar/modules/storage.sh
Executable file
25
config/waybar/modules/storage.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
mount="/"
|
||||
warning=20
|
||||
critical=10
|
||||
|
||||
df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical '
|
||||
/\/.*/ {
|
||||
text=$4
|
||||
tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6
|
||||
use=$5
|
||||
exit 0
|
||||
}
|
||||
END {
|
||||
class=""
|
||||
gsub(/%$/,"",use)
|
||||
if ((100 - use) < critical) {
|
||||
class="critical"
|
||||
} else if ((100 - use) < warning) {
|
||||
class="warning"
|
||||
}
|
||||
print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}"
|
||||
}
|
||||
'
|
||||
|
325
config/waybar/style.css
Normal file
325
config/waybar/style.css
Normal file
|
@ -0,0 +1,325 @@
|
|||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
/* font-family: Input Mono Light, Input Mono, FontAwesome, SymbolsNerdFont, Roboto, Helvetica, Arial, sans-serif; */
|
||||
font-family: JetBrainsMono Nerd Font, FontAwesome, SymbolsNerdFont;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
color: #aeafb2;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#bluetooth,
|
||||
#tray,
|
||||
#idle_inhibitor,
|
||||
#mpris,
|
||||
#keyboard-state,
|
||||
#battery,
|
||||
#custom-notification,
|
||||
#custom-storage,
|
||||
#custom-power
|
||||
{
|
||||
padding: 0 7px;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#bluetooth,
|
||||
#mpris,
|
||||
#idle_inhibitor
|
||||
{
|
||||
border: 0;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background: rgba(49, 60, 84, 0.75);
|
||||
border-radius: 0px;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0 7px 0 0;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: #aeafb2;
|
||||
padding: 2px 4px 0px 5px;
|
||||
margin: 0;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
#workspaces button:hover, #workspaces button.active:hover {
|
||||
color: #fff;
|
||||
background: #647aab;
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
border: 0;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
#workspaces button.visible {
|
||||
border: 0;
|
||||
border-radius: 0px;
|
||||
background-image: -gtk-gradient (linear,
|
||||
0.5 0, 0.5 1,
|
||||
color-stop(0.2, #313c54),
|
||||
color-stop(1, #556892)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #fff000;
|
||||
border: 0;
|
||||
border-radius: 0px;
|
||||
background-image: -gtk-gradient (linear,
|
||||
0.5 0, 0.5 1,
|
||||
color-stop(0.2, #313c54),
|
||||
color-stop(1, #556892)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #fff;
|
||||
border: 0;
|
||||
border-radius: 0px;
|
||||
background-image: -gtk-gradient (linear,
|
||||
0.5 0, 0.5 1,
|
||||
color-stop(0.2, #313c54),
|
||||
color-stop(1, #eb4d4b)
|
||||
);
|
||||
}
|
||||
|
||||
#window {
|
||||
padding: 0px 7px 0 7px;
|
||||
opacity: 1;
|
||||
color: #dcdcde;
|
||||
text-shadow: 1px 1px 2px #111;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
color: #aeafb2;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#custom-power,
|
||||
#custom-notification,
|
||||
#idle_inhibitor,
|
||||
#tray {
|
||||
background-color: #111;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#cpu
|
||||
{
|
||||
background-color: #313c54;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #455c8f;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #17243b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
color: #cf4beb;
|
||||
}
|
||||
|
||||
#disk,
|
||||
#custom-storage
|
||||
{
|
||||
background-color: #38588f;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: #dcdcde;
|
||||
background-color: #37373f;
|
||||
}
|
||||
|
||||
#bluetooth.disabled,
|
||||
#pulseaudio.muted,
|
||||
#wireplumber.muted,
|
||||
#battery.critical,
|
||||
#network.disconnected {
|
||||
color: #f53c3c;
|
||||
}
|
||||
|
||||
#bluetooth.off {
|
||||
color: #909091;
|
||||
}
|
||||
|
||||
#bluetooth,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#wireplumber
|
||||
{
|
||||
background-color: #112254;
|
||||
}
|
||||
|
||||
#battery
|
||||
{
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#battery.good
|
||||
{
|
||||
color: #aeafb2;
|
||||
}
|
||||
|
||||
#battery.warning
|
||||
{
|
||||
color: #fff000;
|
||||
|
||||
}
|
||||
|
||||
/* arrows */
|
||||
|
||||
#custom-arrow0,
|
||||
#custom-arrow1,
|
||||
#custom-arrow2,
|
||||
#custom-arrow3,
|
||||
#custom-arrow4,
|
||||
#custom-arrow5,
|
||||
#custom-arrow6,
|
||||
#custom-arrow7,
|
||||
#custom-arrow8
|
||||
{
|
||||
margin: -2px 0 0 0;
|
||||
padding: 0 0 0 0;
|
||||
opacity: 0.75;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
#custom-arrow0 {
|
||||
color: #111;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#custom-arrow1 {
|
||||
color: #313c54;
|
||||
background-color: #111;
|
||||
}
|
||||
|
||||
#custom-arrow2 {
|
||||
color: #455c8f;
|
||||
background-color: #313c54;
|
||||
}
|
||||
|
||||
#custom-arrow3 {
|
||||
color: #17243b;
|
||||
background-color: #455c8f;
|
||||
}
|
||||
|
||||
#custom-arrow4 {
|
||||
color: #38588f;
|
||||
background-color: #17243b;
|
||||
}
|
||||
|
||||
#custom-arrow5 {
|
||||
color: #37373f;
|
||||
background-color: #38588f;
|
||||
}
|
||||
|
||||
#custom-arrow6 {
|
||||
color: #112254;
|
||||
background-color: #37373f;
|
||||
}
|
||||
|
||||
#custom-arrow7 {
|
||||
color: #111;
|
||||
background-color: #112254;
|
||||
}
|
||||
|
||||
#custom-arrow8 {
|
||||
color: #313c54;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* unused */
|
||||
/*
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#mpris {
|
||||
background:#989898;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #455c8f;
|
||||
color: #aeafb2;
|
||||
padding: 0;
|
||||
margin: 0 0 0 5px;
|
||||
min-width: 16px;
|
||||
border-top: 1px solid rgba(25, 25, 25, 0.5);
|
||||
border-bottom: 1px solid rgba(25, 25, 25, 0.5);
|
||||
border-left: 1px solid rgba(25, 25, 25, 0.5);
|
||||
border: 0;
|
||||
border-radius: 20px 0 0 20px;
|
||||
}
|
||||
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue