Moved bar to quickshell

This commit is contained in:
agryphus 2025-02-09 21:34:23 -05:00
parent ab0a71784e
commit 5a3a18f9f7
30 changed files with 971 additions and 206 deletions

View file

@ -3,7 +3,7 @@
# Wayland related environment variables.
env = HYPRCURSOR_THEME,McMojave
env = HYPRCURSOR_SIZE,30
env = TERMINAL,foot
env = TERMINAL,st
env = QT_QPA_PLATFORM,wayland
opengl {
@ -37,7 +37,7 @@ input {
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
kb_options = caps:swapescape
# kb_options = caps:swapescape
}
general {
@ -112,6 +112,7 @@ windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
windowrulev2 = float, class:nm-tray
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
@ -122,7 +123,7 @@ misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
# enable_swallow = true
# swallow_regex = ^(st|foot|footclient)$
# swallow_regex = ^(st-256color)$
mouse_move_enables_dpms = true
}
@ -140,29 +141,28 @@ layerrule = ignorezero, waybar
$mainMod = SUPER
# Program spawning hotkeys
bind = CONTROL ALT, BACKSPACE, exec, foot -e zsh -c 'btop'
bind = CONTROL ALT, BACKSPACE, exec, st -e zsh -c 'btop'
bind = $mainMod CONTROL, W, exec, [floating] foot -W 78x38 -e nmtui
bind = $mainMod, RETURN, exec, foot
bind = $mainMod, W, exec, firefox
bind = $mainMod, E, exec, foot -e zsh -c 'tmp="$(mktemp -t "yazi-cwd.XXXXX")"; yazi "$@" --cwd-file="$tmp"; printf "\033]0;foot\007"; if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then; cd -- "$cwd"; fi; rm -f -- "$tmp"; exec $SHELL'
bind = $mainMod, RETURN, exec, st
bind = $mainMod, W, exec, zen
bind = $mainMod, E, exec, st -e zsh -c 'tmp="$(mktemp -t "yazi-cwd.XXXXX")"; yazi "$@" --cwd-file="$tmp"; printf "\033]0;st\007"; if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then; cd -- "$cwd"; fi; rm -f -- "$tmp"; exec $SHELL'
bind = $mainMod SHIFT, E, exec, emacsclient -c -a 'emacs'
bind = $mainMod, C, exec, foot -e zsh -c 'khal interactive'
bind = $mainMod, M, exec, foot -e zsh -c 'neomutt'
bind = $mainMod, C, exec, st -e zsh -c 'khal interactive'
bind = $mainMod, M, exec, st -e zsh -c 'neomutt'
# Menu hoykeys
bind = $mainMod, R, exec, fuzzel
# System control keybinds
binde = $mainMod, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; test -z "$(pidof waybar)" && notify-send -r 44 "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
binde = $mainMod SHIFT, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; test -z "$(pidof waybar)" && notify-send -r 44 "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
binde = $mainMod, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; test -z "$(pidof waybar)" && notify-send -r 44 "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
binde = $mainMod SHIFT, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; test -z "$(pidof waybar)" && notify-send -r 44 "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
binde = $mainMod, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
binde = $mainMod SHIFT, MINUS, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
binde = $mainMod, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+
binde = $mainMod SHIFT, EQUAL, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
binde = ,F7, exec, change-brightness up
binde = ,XF86MonBrightnessUp, exec, change-brightness up
binde = ,F6, exec, change-brightness down
binde = ,XF86MonBrightnessDown,exec, change-brightness down
bind = $mainMod, L, exec, swaylock -e -c 000000
bind = $mainMod, L, exec, sleep 5; hyprctl dispatch dpms off
bind = $mainMod, L, exec, hyprlock
bind = $mainMod CONTROL SHIFT, R, exec, startw # Reload all graphical daemons
@ -176,7 +176,9 @@ bind = $mainMod, D, exec, hyprctl dispatch submap menu-submap; sleep 2; hyprctl
submap = menu-submap
bind = ,A, exec, menu-accent
bind = ,A, submap, reset
bind = ,M, exec, menu-man
bind = ,B, exec, [floating] foot -W 80x17 -e dash -c -i 'menu-bookmark'
bind = ,B, submap, reset
bind = ,M, exec, [floating] foot -W 78x38 -e dash -c -i 'menu-man'
bind = ,M, submap, reset
bind = ,W, exec, networkmanager_dmenu
bind = ,W, submap, reset
@ -186,7 +188,7 @@ bind = ,I, exec, menu-wpio source
bind = ,I, submap, reset
bind = ,L, exec, hyprmonitors menu
bind = ,L, submap, reset
bind = ,P, exec, menu-pass
bind = ,P, exec, [floating] foot -W 80x17 -e zsh -c -i 'menu-pass'
bind = ,P, submap, reset
submap = reset

View file

@ -1,29 +1,34 @@
version = "1.1.15"
[title."(?i)foot"]
Yazi = "󰇥"
[class]
DEFAULT = "{class}"
"(?i)Anki" = " "
"(?i)anki" = " "
"(?i)blueman-manager-wrapped" = " "
"(?i)chromium" = " "
"(?i)discord" = "󰊴 "
"(?i)Element" = "󰘨 "
"(?i)element" = " "
"(?i)emacs" = " "
"(?i)firefox" = " "
"(?i)foot" = " "
"(?i)ghidra" = " "
"(?i)Gimp" = " "
"(?i)Kitty" = " "
"(?i)gimp" = " "
"(?i)kitty" = " "
"(?i)libreoffice-draw" = "󰽉 "
"(?i)libreoffice-writer" = "󰷈 "
"(?i)mpv" = " "
"(?i)mullvad vpn" = " "
"(?i)Nsxiv" = " "
"(?i)nsxiv" = " "
"(?i)signal" = "󰭹 "
"(?i)slack" = "󰒱 "
"(?i)spotify" = " "
"(?i)st" = " "
"(?i)steam" = " "
"(?i)virtualbox" = " "
"(?i)zathura" = " "
"(?i)zen" = "󰇧 "
[class_active]
@ -52,7 +57,7 @@ DEFAULT = "{class}"
"(?i)neomutt" = "neomutt"
[title_in_class_active."(?i)firefox"]
"(?i)twitch" = "<span color='purple'>{icon}</span>"
"(?i)twitch" = "<span style='color:purple'>{icon}</span>"
[title_in_initial_class]
@ -79,9 +84,9 @@ dedup_inactive_fullscreen = false
delim = ""
workspace = "{id}:{delim}{clients}"
workspace_empty = "{id}"
client = "<span color='#999999'>{icon}</span>"
client = "<span>{icon}</span>"
client_fullscreen = "[{icon}]"
client_active = "<span color='#FFFFFF'>{icon}</span>"
client_active = "<span style='color:#FFFFFF'>{icon}</font>"
client_dup = "{icon}{counter_sup}"
client_dup_active = "*{icon}*{delim}{icon}{counter_unfocused_sup}"
client_dup_fullscreen = "[{icon}]{delim}{icon}{counter_unfocused_sup}"

View file

@ -3,10 +3,14 @@
"position": "top",
"height": 27,
"modules-left": ["hyprland/workspaces", "custom/scratch", "hyprland/mode", "hyprland/window"],
"modules-left": ["custom/icon", "hyprland/workspaces", "custom/scratch", "hyprland/mode", "hyprland/window"],
"modules-center": [],
"modules-right": ["tray", "memory", "pulseaudio", "battery", "clock"],
"custom/icon": {
"format": "",
},
"hyprland/workspaces": {
"disable-scroll": true,
"disable-markup": true,

View file

@ -29,9 +29,12 @@ button:hover {
}
#custom-scratch {
color: #b8b8b8;
#custom-icon {
color: #ffffff;
padding: 0px 9px 0px 9px;
margin: 0px 0px 0px 0px;
border: none;
border-radius: 0;
}
#workspaces button {

View file

@ -5,24 +5,11 @@
swww kill
pkill fcitx5
# Start daemons that can turn on asynchronously
(
foot --server &
systemctl --user restart network-manager-applet
pkill emacs; emacs --daemon
) &
# Rearrange monitors
hyprmonitors auto
systemctl --user restart hyprland-autoname-workspaces
swww-daemon &
fcitx5 &
waybar &
# Sometimes the monitor config does not want to apply properly on the first
# go. I then have to reload the configuration to make sure that the monitors
# are actually in their intended place.
hyprctl reload
quickshell &
hypridle &
pkill emacs; emacs --daemo