mirror of
https://github.com/eliasrenman/dotfiles.git
synced 2026-03-16 20:46:08 +01:00
chore: moved to support stow
This commit is contained in:
70
.config/hypr/hyprland.conf
Normal file
70
.config/hypr/hyprland.conf
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
#
|
||||
# Executes
|
||||
#
|
||||
exec-once = wlsunset
|
||||
exec-once = hyprpaper
|
||||
exec-once = waybar
|
||||
exec-once = avizo-service
|
||||
#
|
||||
# Monitor
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
#
|
||||
monitor=,preferred,auto,auto
|
||||
monitor=,addreserved,5,15,15,15
|
||||
monitor=desc:Lenovo Group Limited LEN T32p-20 VNA8W4PX,preferred,auto,1.2
|
||||
|
||||
# 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/keymap.conf
|
||||
source = ~/.config/hypr/rice.conf
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
#
|
||||
# Input
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
#
|
||||
input {
|
||||
kb_layout = se
|
||||
kb_variant = mac
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
clickfinger_behavior = yes
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
# new_is_master = true
|
||||
}
|
||||
|
||||
gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = true
|
||||
workspace_swipe_invert = false
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||
#device:epic-mouse-v1 {
|
||||
# sensitivity = -0.5
|
||||
#}
|
||||
|
||||
# Example windowrule v1
|
||||
# windowrule = float, ^(alacritty)$
|
||||
# Example windowrule v2
|
||||
# windowrulev2 = float,class:^(alacritty)$,title:^(alacritty)$
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
||||
|
||||
5
.config/hypr/hyprpaper.conf
Normal file
5
.config/hypr/hyprpaper.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
preload = ~/.config/wallpapers/forest-view.jpg
|
||||
preload = ~/.config/wallpapers/forest-view.jpg
|
||||
|
||||
wallpaper = eDP-1,~/.config/wallpapers/forest-view.jpg
|
||||
wallpaper = ,~/.config/wallpapers/forest-view.jpg
|
||||
91
.config/hypr/keymap.conf
Normal file
91
.config/hypr/keymap.conf
Normal file
@@ -0,0 +1,91 @@
|
||||
#
|
||||
# Keybindings
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, T, exec, alacritty
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, M, exit,
|
||||
bind = $mainMod, F, exec, thunar
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, SPACE, exec, wofi --show drun --normal-window
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod, L, exec, swaylock
|
||||
|
||||
# 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 SHIFT, right, workspace, e+1
|
||||
bind = $mainMod SHIFT, left, workspace, e-1
|
||||
# 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
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
#
|
||||
# Tabber
|
||||
#
|
||||
bind= $mainMod, tab, changegroupactive
|
||||
#
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
# Resize window with mainMod + CTRL + up, down, left, right
|
||||
bind = $mainMod CTRL, right, resizeactive, 25 0
|
||||
bind = $mainMod CTRL, left, resizeactive, -25 0
|
||||
bind = $mainMod CTRL, up, resizeactive, 0 -25
|
||||
bind = $mainMod CTRL, down, resizeactive, 0 25
|
||||
#
|
||||
# Media keys
|
||||
#
|
||||
binde=, XF86AudioRaiseVolume, exec, volumectl -u up
|
||||
binde=, XF86AudioLowerVolume, exec, volumectl -u down
|
||||
binde=, XF86AudioMute, exec, volumectl toogle-mute
|
||||
bind=, XF86AudioPlay, exec, playerctl play-pause
|
||||
bind=, XF86AudioPause, exec, playerctl play-pause
|
||||
bind=, XF86AudioNext, exec, playerctl next
|
||||
bind=, XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
#
|
||||
# Hardware button mapping
|
||||
# For example powerbutton
|
||||
#
|
||||
bind=,XF86PowerOff, exec, wlogout
|
||||
# Laptop lid switch
|
||||
bindl=,switch:on:Lid Switch,exec, sh ./scripts/lock.sh
|
||||
bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 3000x2000@60,0x0,auto"
|
||||
bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable"
|
||||
# Screen brightness
|
||||
bind=,XF86MonBrightnessDown,exec,lightctl down
|
||||
bind=,XF86MonBrightnessUp,exec,lightctl up
|
||||
|
||||
# screenshot
|
||||
bind =, Print, exec, grim -g "$(slurp -d)" - | wl-copy
|
||||
bind = $mainMod, Print, exec, hyprpicker -a
|
||||
145
.config/hypr/rice.conf
Normal file
145
.config/hypr/rice.conf
Normal file
@@ -0,0 +1,145 @@
|
||||
|
||||
#
|
||||
# General settings
|
||||
#
|
||||
general {
|
||||
gaps_in=10
|
||||
gaps_out=0
|
||||
border_size=2
|
||||
col.inactive_border=rgba(f7768eff) rgba(bb9af7ff) 45deg
|
||||
col.active_border=rgba(bb9af7ff) rgba(f7768eff) 45deg
|
||||
no_border_on_floating = false
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
|
||||
# unscale XWayland
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
|
||||
# toolkit-specific scale
|
||||
env = GDK_SCALE,2
|
||||
env = XCURSOR_SIZE,32
|
||||
|
||||
misc {
|
||||
disable_hyprland_logo = true
|
||||
disable_splash_rendering = true
|
||||
mouse_move_enables_dpms = true
|
||||
enable_swallow = true
|
||||
swallow_regex = ^(alacritty)$
|
||||
}
|
||||
|
||||
decoration {
|
||||
#
|
||||
# Round corners
|
||||
#
|
||||
rounding = 3
|
||||
|
||||
#
|
||||
# Opacity
|
||||
#
|
||||
active_opacity = 0.98
|
||||
inactive_opacity = 0.65
|
||||
#
|
||||
# Blur
|
||||
#
|
||||
#
|
||||
blur {
|
||||
enabled = true
|
||||
size = 2
|
||||
passes = 2
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Shadow
|
||||
#
|
||||
drop_shadow = true
|
||||
shadow_ignore_window = true
|
||||
shadow_offset = 2 2
|
||||
shadow_range = 8
|
||||
shadow_render_power = 10
|
||||
col.shadow = rgba(00000055)
|
||||
blurls = gtk-layer-shell
|
||||
blurls = lockscreen
|
||||
}
|
||||
|
||||
#
|
||||
# Animation
|
||||
#
|
||||
animations {
|
||||
enabled = true
|
||||
#
|
||||
# Bezier curve
|
||||
#
|
||||
bezier = overshot, 0.05, 0.5, 0.1, 1.05
|
||||
bezier = smoothOut, 0.36, 0, 0.66, -0.56
|
||||
bezier = smoothIn, 0.25, 0.8, 0.5, 0.5
|
||||
|
||||
animation = windows, 1, 5, overshot, slide
|
||||
animation = windowsOut, 1, 4, smoothOut, slide
|
||||
animation = windowsMove, 1, 4, default
|
||||
animation = border, 1, 10, default
|
||||
animation = fade, 1, 2, smoothIn
|
||||
animation = fadeDim, 1, 2, smoothIn
|
||||
animation = workspaces, 1, 6, default
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
# Layouts
|
||||
#
|
||||
dwindle {
|
||||
no_gaps_when_only = false
|
||||
pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # you probably want this
|
||||
}
|
||||
|
||||
#
|
||||
# Window rules
|
||||
#
|
||||
windowrule = float, file_progress
|
||||
windowrule = float, confirm
|
||||
windowrule = float, dialog
|
||||
windowrule = float, download
|
||||
windowrule = float, notification
|
||||
windowrule = float, error
|
||||
windowrule = float, splash
|
||||
windowrule = float, confirmreset
|
||||
windowrule = float, title:Open File
|
||||
windowrule = float, title:branchdialog
|
||||
windowrule = float, Lxappearance
|
||||
#windowrulev2 = rounding 0 override, class:(wofi)
|
||||
windowrule = float, class:(wofi)
|
||||
windowrule = float,viewnior
|
||||
# windowrule = float,feh
|
||||
windowrulev2 = tile, title:^(.*)(Godot)(.*)$
|
||||
# windowrule = float, file-roller
|
||||
windowrule = fullscreen, wlogout
|
||||
windowrule = float, title:wlogout
|
||||
windowrule = fullscreen, title:wlogout
|
||||
windowrule = idleinhibit focus, mpv
|
||||
windowrule = idleinhibit fullscreen, firefox
|
||||
windowrule = float, title:^(Media viewer)$
|
||||
windowrule = float, title:^(Volume Control)$
|
||||
windowrule = float, title:^(Picture-in-Picture)$
|
||||
windowrule = size 800 600, title:^(Volume Control)$
|
||||
windowrule = move 39% 420, title:^(Volume Control)$
|
||||
windowrule = tile, title:^(.*)Aseprite(.*)$
|
||||
|
||||
windowrulev2 = workspace 1, class:^(alacritty)$
|
||||
windowrulev2 = workspace 2, class:^(firefox)$
|
||||
windowrulev2 = workspace 3, class:^(discord)$
|
||||
windowrulev2 = workspace 3, title:^(Spotify)(.*)$
|
||||
windowrulev2 = workspace 3, class:^(Slack)$
|
||||
windowrulev2 = workspace special, class:^(thunar)$
|
||||
windowrulev2 = workspace special, class:^(YouTube Music)$
|
||||
|
||||
# Screen share settings
|
||||
windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = noblur,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = opacity 1 override,class:^(dev.warp.Warp)$
|
||||
11
.config/hypr/scripts/lock.sh
Normal file
11
.config/hypr/scripts/lock.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Split the string into an array at spaces
|
||||
read -ra words <<<"$(xrandr | grep " connected" | awk '{print $1}')"
|
||||
|
||||
# Count the length of the array
|
||||
length=${#words[@]}
|
||||
|
||||
if [ -z "$length" ]; then
|
||||
exec swaylock
|
||||
fi
|
||||
Reference in New Issue
Block a user