Add Hyprland work config
This commit is contained in:
74
hyprland-work/.config/hypr/config.d/00-basic.conf
Normal file
74
hyprland-work/.config/hypr/config.d/00-basic.conf
Normal 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
|
||||
}
|
83
hyprland-work/.config/hypr/config.d/03-keybinds.conf
Normal file
83
hyprland-work/.config/hypr/config.d/03-keybinds.conf
Normal 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
|
13
hyprland-work/.config/hypr/config.d/04-inputs.conf
Normal file
13
hyprland-work/.config/hypr/config.d/04-inputs.conf
Normal 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.
|
||||
}
|
18
hyprland-work/.config/hypr/config.d/50-window-rules.conf
Normal file
18
hyprland-work/.config/hypr/config.d/50-window-rules.conf
Normal 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)$
|
4
hyprland-work/.config/hypr/config.d/60-monitors.conf
Normal file
4
hyprland-work/.config/hypr/config.d/60-monitors.conf
Normal 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
|
@@ -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
|
@@ -0,0 +1,3 @@
|
||||
# vim: set ft=config:
|
||||
# Configuration for hypridle is in ~/.config/hypr/hypridle.conf
|
||||
exec-once = hypridle
|
@@ -0,0 +1,2 @@
|
||||
# vim: set ft=config:
|
||||
exec-once = pgrep swww-daemon || { rm /run/user/$UID/swww.socket; swww-daemon --format xrgb; }
|
@@ -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
|
2
hyprland-work/.config/hypr/config.d/90-post.conf
Normal file
2
hyprland-work/.config/hypr/config.d/90-post.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# vim: set ft=config:
|
||||
exec-once = test -x "$HOME/.config/hypr/post.sh" && "$HOME/.config/hypr/post.sh"
|
5
hyprland-work/.config/hypr/contrib/000-debug.conf
Normal file
5
hyprland-work/.config/hypr/contrib/000-debug.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
# vim: set ft=config:
|
||||
debug {
|
||||
# This enables debug logging for troubleshooting
|
||||
disable_logs = false
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
# vim: set ft=config:
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
#monitor=eDP-1,preferred,auto,1.3333
|
||||
monitor = DP-1,preferred,1440x937,1
|
||||
monitor = DP-2,preferred,0x0,1,transform,1
|
||||
|
||||
workspace = 1, monitor:DP-1
|
||||
workspace = 2, monitor:DP-1
|
||||
workspace = 3, monitor:DP-1
|
||||
workspace = 4, monitor:DP-1
|
||||
workspace = 5, monitor:DP-1
|
||||
workspace = 6, monitor:DP-1
|
||||
workspace = 7, monitor:DP-1
|
||||
|
||||
workspace = 8, monitor:DP-2
|
||||
workspace = 9, monitor:DP-2
|
||||
workspace = 10, monitor:DP-2
|
||||
workspace = 11, monitor:DP-2
|
@@ -0,0 +1,3 @@
|
||||
# vim: set ft=config:
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=eDP-1,preferred,auto,1.3333
|
8
hyprland-work/.config/hypr/contrib/README.md
Normal file
8
hyprland-work/.config/hypr/contrib/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Contrib
|
||||
|
||||
Scripts and config files that don't necessarily belong in the defaults.
|
||||
|
||||
## Usage
|
||||
|
||||
Link to any of these files from within config.d to load them up. Use them
|
||||
to store machine-specific configs or optional scripts.
|
11
hyprland-work/.config/hypr/hypridle.conf
Normal file
11
hyprland-work/.config/hypr/hypridle.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
# vim: set ft=config:
|
||||
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hypridle
|
||||
general {
|
||||
lock_cmd = pgrep -u "$USER" hyprlock || hyprlock
|
||||
unlock_cmd = pkill -xu "$USER" -SIGUSR1 hyprlock
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 900
|
||||
on-timeout = loginctl lock-session
|
||||
}
|
3
hyprland-work/.config/hypr/hyprland.conf
Normal file
3
hyprland-work/.config/hypr/hyprland.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
# vim: set ft=config:
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
source = ~/.config/hypr/config.d/*.conf
|
68
hyprland-work/.config/hypr/hyprlock.conf
Normal file
68
hyprland-work/.config/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,68 @@
|
||||
# vim: set ft=config:
|
||||
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
||||
|
||||
# General settings
|
||||
general {
|
||||
grace = 5
|
||||
hide_cursor = true
|
||||
}
|
||||
|
||||
# The password input field
|
||||
input-field {
|
||||
monitor =
|
||||
fade_on_empty = true
|
||||
rounding = 8
|
||||
outer_color = rgba(50,48,47,0.8)
|
||||
inner_color = rgba(50,48,47,0.8)
|
||||
font_color = rgb(235,219,178)
|
||||
check_color = rgb(250,189,47)
|
||||
fail_color = rgb(251,73,52)
|
||||
size = 400, 50
|
||||
position = 0, -200
|
||||
}
|
||||
|
||||
# The background of the login box
|
||||
shape {
|
||||
color = rgba(40,40,40,0.8)
|
||||
size = 600, 800
|
||||
position = 0, 0
|
||||
rounding = 8
|
||||
}
|
||||
|
||||
# A label showing the current time
|
||||
label {
|
||||
text = cmd[update:30] echo ""$(date +"%I:%M %p")""
|
||||
font_size = 48
|
||||
color = rgb(235,219,178)
|
||||
position = 0, 250
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
# A label showing the current date
|
||||
label {
|
||||
text = cmd[update:30] echo ""$(date +'%A, %-d %B %Y')""
|
||||
color = rgb(235,219,178)
|
||||
position = 0, 150
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
# The background of the lock screen, behind the box
|
||||
background {
|
||||
color = rgba(0,0,0,0.9)
|
||||
}
|
||||
# The current user's face
|
||||
image {
|
||||
path = ~/.face
|
||||
border_color = rgba(50,48,47,0.8)
|
||||
size = 150
|
||||
position = 0, 0
|
||||
}
|
||||
# Name of the current user
|
||||
label {
|
||||
text = $USER
|
||||
color = rgba(235,219,178,0.5)
|
||||
font_size = 14
|
||||
position = 0, -100
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
Reference in New Issue
Block a user