Add Hyprland work config

This commit is contained in:
Jacob Babor
2024-11-05 20:50:29 -06:00
parent 55efdb4a21
commit 0845419583
27 changed files with 1443 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
# vim: set ft=config:
# Some default env vars.
env = XCURSOR_SIZE,24
env = QT_QPA_PLATFORMTHEME,qt5ct # change to qt6ct if you have that
general {
# https://wiki.hyprland.org/Configuring/Variables/
gaps_in = 8
gaps_out = 16
border_size = 4
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.active_border = rgba(458588ff)
col.inactive_border = rgba(ebdbb2cc)
layout = dwindle
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 6
blur {
enabled = false
size = 3
passes = 1
}
drop_shadow = no
shadow_range = 8
shadow_render_power = 3
col.shadow = rgba(282828ee)
}
animations {
# https://wiki.hyprland.org/Configuring/Animations/
enabled = yes
bezier = snappy, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 2, snappy
animation = windowsIn, 1, 1, default
animation = windowsOut, 1, 2, default, popin 80%
animation = layers, 1, 1, default
animation = border, 1, 3, default
animation = borderangle, 1, 8, default
animation = fade, 1, 3, default
animation = workspaces, 1, 1.5, snappy
}
dwindle {
# https://wiki.hyprland.org/Configuring/Dwindle-Layout/
pseudotile = yes # Enables pseudotile functionality
preserve_split = yes # Remember splits
force_split = 2 # Force splits to put the child on the right/down
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_status = master
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = true
workspace_swipe_invert = true
}
misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_splash_rendering = true
}
xwayland {
force_zero_scaling = true
}

View File

@@ -0,0 +1,83 @@
# vim: set ft=config:
# https://wiki.hyprland.org/Configuring/Binds/
$mainMod = ALT
# Program opening and closing
bind = $mainMod, Return, exec, kitty --single-instance --wait-for-single-instance-window-close
bind = $mainMod, Q, killactive
bind = $mainMod, Space, exec, pgrep wofi || wofi --show drun
#bind = $mainMod, M, exit,
bind = $mainMod, T, pseudo, # dwindle
bind = $mainMod, F, togglefloating,
bind = $mainMod Shift, F, fullscreen
bind = $mainMod, R, togglesplit, # dwindle
# Dunst management
bind = $mainMod Shift, Space, exec, dunstctl close
bind = $mainMod Shift, Return, exec, dunstctl close-all
bind = $mainMod Shift, D, exec, dunstctl history-pop
bind = $mainMod Shift, O, exec, dunstctl context
# Pulse controls
bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume 0 +5%
bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume 0 -5%
# Screenshots
bind = $mainMod, O, exec, grim -g "$(slurp -d)" - | wl-copy
# pavucontrol controls
bind = $mainMod, P, exec, pgrep pavucontrol || pavucontrol
bind = $mainMod Shift, P, exec, pkill pavucontrol
# Miscellaneous non-movement hotkeys
bind = CTRL ALT, L, exec, loginctl lock-session
# Change focus
bind = $mainMod, h, movefocus, l
bind = $mainMod, j, movefocus, d
bind = $mainMod, k, movefocus, u
bind = $mainMod, l, movefocus, r
# Move the focused window around
bind = $mainMod Shift, h, movewindow, l
bind = $mainMod Shift, j, movewindow, d
bind = $mainMod Shift, k, movewindow, u
bind = $mainMod Shift, l, movewindow, r
# 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, MINUS, workspace, 11
# 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, MINUS, movetoworkspace, 11
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, Period, workspace, e+1
bind = $mainMod, Comma, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

View File

@@ -0,0 +1,13 @@
# vim: set ft=config:
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
accel_profile = flat
follow_mouse = 1
numlock_by_default = true
touchpad {
# Also sometimes called "Australian Scrolling"
natural_scroll = no
}
sensitivity = 0 # -1.0 to 1.0, 0 means no modification.
}

View File

@@ -0,0 +1,18 @@
# vim: set ft=config:
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# Force all windows to be unable to maximize themselves
# Default rule that ships with hypr
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
# Force pavucontrol to be the center of attention
windowrulev2 = float, center 1, pin, class:^(.*pavucontrol.*)$
# Assign specific windows to specific workspaces on launch
windowrulev2 = workspace 8 silent, class:^(org.keepassxc.KeePassXC)$
windowrulev2 = workspace 8 silent, class:^(org.mozilla.Thunderbird)$
windowrulev2 = workspace 8 silent, class:^(Slack)$
windowrulev2 = workspace 9 silent, class:^(.*vesktop.*)$
windowrulev2 = workspace 10 silent, class:^(.*spotube.*)$
windowrulev2 = workspace 10 silent, class:^(.*potify.*)$
windowrulev2 = workspace 10 silent, class:^(im.riot.Riot)$

View File

@@ -0,0 +1,4 @@
# vim: set ft=config:
# See https://wiki.hyprland.org/Configuring/Monitors/
# Fall-through rule that sets sane defaults when possible
monitor=,preferred,auto,auto

View File

@@ -0,0 +1,15 @@
# vim: set ft=config:
# Run this at first to fix up some systemd stuff
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# Polkit
exec-once = /usr/libexec/xfce-polkit
# Not technically a daemon but required for wallet
exec-once = /usr/libexec/pam_kwallet_init
# Daemons and stuff
exec-once = nm-applet
exec-once = flatpak run com.nextcloud.desktopclient.nextcloud --background
#exec-once = flatpak run io.kopia.KopiaUI
exec-once = waybar
exec-once = wlsunset -T 5300 -t 3500 -g 1

View File

@@ -0,0 +1,3 @@
# vim: set ft=config:
# Configuration for hypridle is in ~/.config/hypr/hypridle.conf
exec-once = hypridle

View File

@@ -0,0 +1,2 @@
# vim: set ft=config:
exec-once = pgrep swww-daemon || { rm /run/user/$UID/swww.socket; swww-daemon --format xrgb; }

View File

@@ -0,0 +1,8 @@
# vim: set ft=config:
# Workspace-specific applications
exec-once = [workspace 8 silent] flatpak run org.keepassxc.KeePassXC
#exec-once = [workspace 8 silent] flatpak run org.mozilla.Thunderbird
#exec-once = [workspace 9 silent] flatpak run dev.vencord.Vesktop
exec-once = [workspace 8 silent] flatpak run com.slack.Slack
#exec-once = [workspace 10 silent] flatpak run im.riot.Riot
exec-once = [workspace 10 silent] flatpak run com.spotify.Client

View File

@@ -0,0 +1,2 @@
# vim: set ft=config:
exec-once = test -x "$HOME/.config/hypr/post.sh" && "$HOME/.config/hypr/post.sh"