diff options
| author | Mosder <xmosder12@gmail.com> | 2026-06-10 02:24:31 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-06-10 02:24:31 +0200 |
| commit | 1f2824b912b22a687fb0f1c56f82198128bef1ca (patch) | |
| tree | a22c4425c43fcd111c441531b21e275b1fd97f3f /laptop/.config/hypr | |
| parent | a7fab53f802c8bacfce66fb3455145835e231460 (diff) | |
added and updated a lot of configs + refactored it to be more accessible
Diffstat (limited to 'laptop/.config/hypr')
| -rw-r--r-- | laptop/.config/hypr/hypridle.conf | 17 | ||||
| -rw-r--r-- | laptop/.config/hypr/hyprland.conf | 282 | ||||
| -rw-r--r-- | laptop/.config/hypr/hyprlock.conf | 24 | ||||
| -rw-r--r-- | laptop/.config/hypr/hyprpaper.conf | 6 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/battery-notifier.sh | 36 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/capture-window.sh | 10 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/current-brightness.sh | 4 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/equalize-windows.sh | 87 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/randomize-wallpaper.sh | 11 | ||||
| -rwxr-xr-x | laptop/.config/hypr/scripts/zoom.sh | 9 |
10 files changed, 0 insertions, 486 deletions
diff --git a/laptop/.config/hypr/hypridle.conf b/laptop/.config/hypr/hypridle.conf deleted file mode 100644 index 1210312..0000000 --- a/laptop/.config/hypr/hypridle.conf +++ /dev/null @@ -1,17 +0,0 @@ -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. -} - -# after 5 min, lock -listener { - timeout = 300 - on-timeout = loginctl lock-session -} - -# after 30 min, suspend -listener { - timeout = 1800 - on-timeout = systemctl suspend -} diff --git a/laptop/.config/hypr/hyprland.conf b/laptop/.config/hypr/hyprland.conf deleted file mode 100644 index 0687450..0000000 --- a/laptop/.config/hypr/hyprland.conf +++ /dev/null @@ -1,282 +0,0 @@ -################# -### VARIABLES ### -################# - -# Files and locations -$SCRIPTS_DIR = $HOME/.config/hypr/scripts -$LOG_FILE = $HOME/.hypr.log - -# Used programs -$BROWSER = brave -$DISCORD = discord --enable-features=UseOzonePlatform --ozone-platform=wayland -$STEAM = steam -$TERMINAL = wezterm -$EDITOR = nvim -$FILE_MANAGER = thunar -$MENU = wofi -$LOCKSCREEN = hyprlock -$STATUS_BAR = waybar -$WALLPAPER_MANAGER = hyprpaper -$IDLE_MANAGER = hypridle -$AUTOMOUNT = udiskie -$OSD = swayosd -$NOTIFICATION_DAEMON = dunst -$COLOR_PICKER = hyprpicker -$SCREENSHOT = hyprshot - -##################### -### ENV VARIABLES ### -##################### - -# Nvidia -env = LIBVA_DRIVER_NAME,nvidia -env = __GLX_VENDOR_LIBRARY_NAME,nvidia - -# Gtk -env = GTK_THEME,catppuccin-mocha-mauve-standard+default - -# Cursor -env = XCURSOR_THEME,rose-pine-cursor -env = XCURSOR_SIZE,24 -env = HYPRCURSOR_THEME,rose-pine-hyprcursor -env = HYPRCURSOR_SIZE,24 - -# Misc -env = EDITOR,$EDITOR -env = MAX_ZOOM,3 - -################ -### MONITORS ### -################ - -$MAIN_MONITOR = eDP-1 - -monitor = $MAIN_MONITOR,highres,auto,1 -monitor = ,highres,auto,1,mirror,$MAIN_MONITOR - -################# -### AUTOSTART ### -################# - -# Utils -exec-once = systemctl --user start hyprpolkitagent -exec-once = $STATUS_BAR -exec-once = $SCREENSHOT -exec-once = $SCRIPTS_DIR/randomize-wallpaper.sh -exec-once = $WALLPAPER_MANAGER -exec-once = $IDLE_MANAGER -exec-once = $SCRIPTS_DIR/battery-notifier.sh -exec-once = $AUTOMOUNT -exec-once = $OSD-server - -# Programs -exec-once = [workspace 1 silent] $BROWSER -exec-once = [workspace 2 silent] $DISCORD -exec-once = [workspace 3 silent] $TERMINAL - -# Use lockscreen as login -exec-once = $LOCKSCREEN - -################## -### CATEGORIES ### -################## - -general { - gaps_in = 1 - gaps_out = 1 - - col.active_border = rgb(df00ff) rgb(ff10f0) 45deg - col.inactive_border = rgba(595959aa) - - no_focus_fallback = true -} - -decoration { - dim_inactive = true - dim_strength = .1 -} - -animations { - bezier = easeOutQuint, 0.23, 1, 0.32, 1 - bezier = easeInOutCubic, 0.65, 0.05, 0.36, 1 - bezier = linear, 0, 0, 1, 1 - bezier = almostLinear, 0.5, 0.5, 0.75, 1 - bezier = quick, 0.15, 0, 0.1, 1 - - animation = global, 1, 7.5, default - animation = border, 1, 4.04, easeOutQuint - animation = windows, 1, 3.59, easeOutQuint - animation = windowsIn, 1, 3.07, easeOutQuint, popin 87% - animation = windowsOut, 1, 1.11, linear, popin 87% - animation = fadeIn, 1, 1.29, almostLinear - animation = fadeOut, 1, 1.09, almostLinear - animation = fade, 1, 2.27, quick - animation = layers, 1, 2.85, easeOutQuint - animation = layersIn, 1, 3, easeOutQuint, fade - animation = layersOut, 1, 1.12, linear, fade - animation = fadeLayersIn, 1, 1.34, almostLinear - animation = fadeLayersOut, 1, 1.04, almostLinear - animation = workspaces, 1, 1.45, almostLinear, fade - animation = workspacesIn, 1, 0.9, almostLinear, fade - animation = workspacesOut, 1, 1.45, almostLinear, fade - animation = zoomFactor, 1, 5.25, quick -} - -input { - kb_layout = pl - - numlock_by_default = true - - repeat_rate = 40 - repeat_delay = 400 - - follow_mouse = 2 -} - -misc { - disable_hyprland_logo = true - - focus_on_activate = false - - middle_click_paste = false -} - -cursor { - zoom_rigid = true - - hide_on_key_press = true -} - -ecosystem:no_donation_nag = true - -dwindle { - force_split = 2 - preserve_split = true -} - -############# -### BINDS ### -############# - -# General -bind = SUPER, Q, killactive, -bind = SUPER, V, layoutmsg, togglesplit -bind = SUPER, N, exec, dunstctl close-all -bind = SUPER, slash, exec, $LOCKSCREEN -bind = ALT, SPACE, exec, pkill $MENU || $MENU - -# Launch programs -bind = SUPER, T, exec, $TERMINAL -bind = SUPER, F, exec, $FILE_MANAGER -bind = SUPER, C, exec, $TERMINAL start -- $EDITOR -bind = SUPER, B, exec, $BROWSER -bind = SUPER, D, exec, $DISCORD -bind = SUPER, S, exec, $STEAM -bind = SUPER SHIFT, P, exec, $COLOR_PICKER -a -bind = SUPER SHIFT, M, exec, $SCRIPTS_DIR/zoom.sh - -# Take screenshots -bind = SUPER SHIFT, S, exec, $SCREENSHOT -m region --clipboard-only # Select region - -# Passthru keybinds to VMs -bind = SUPER,P,submap,passthru -submap = passthru -bind = SUPER,P,submap,reset -submap = reset - -# Move focus -bind = ALT, Tab, cyclenext -bind = SUPER, left, movefocus, l -bind = SUPER, down, movefocus, d -bind = SUPER, up, movefocus, u -bind = SUPER, right, movefocus, r -bind = SUPER, H, movefocus, l -bind = SUPER, J, movefocus, d -bind = SUPER, K, movefocus, u -bind = SUPER, L, movefocus, r - -# Swap windows -bind = SUPER SHIFT, left, swapwindow, l -bind = SUPER SHIFT, down, swapwindow, d -bind = SUPER SHIFT, up, swapwindow, u -bind = SUPER SHIFT, right, swapwindow, r -bind = SUPER SHIFT, H, swapwindow, l -bind = SUPER SHIFT, J, swapwindow, d -bind = SUPER SHIFT, K, swapwindow, u -bind = SUPER SHIFT, L, swapwindow, r - -# Equalize windows -bind = SUPER ALT, H, exec, $SCRIPTS_DIR/equalize-windows.sh l -bind = SUPER ALT, V, exec, $SCRIPTS_DIR/equalize-windows.sh u - -# Resize windows manually -bind = SUPER, R, exec, notify-send "Entered resize submap" -bind = SUPER, R, submap, resize -submap = resize -binde = , left, resizeactive, -10 0 -binde = , down, resizeactive, 0 10 -binde = , up, resizeactive, 0 -10 -binde = , right, resizeactive, 10 0 -binde = , H, resizeactive, -10 0 -binde = , J, resizeactive, 0 10 -binde = , K, resizeactive, 0 -10 -binde = , L, resizeactive, 10 0 -bind = , Escape, submap, reset -bind = , Return, submap, reset -bind = CTRL_L, C, submap, reset -bind = SUPER, R, submap, reset -submap = reset - -# Switch workspaces -bind = SUPER, 1, workspace, 1 -bind = SUPER, 2, workspace, 2 -bind = SUPER, 3, workspace, 3 -bind = SUPER, 4, workspace, 4 -bind = SUPER, 5, workspace, 5 -bind = SUPER, 6, workspace, 6 -bind = SUPER, 7, workspace, 7 -bind = SUPER, 8, workspace, 8 -bind = SUPER, 9, workspace, 9 -bind = SUPER, 0, workspace, 10 - -# Move active window to a workspace -bind = SUPER SHIFT, 1, movetoworkspace, 1 -bind = SUPER SHIFT, 2, movetoworkspace, 2 -bind = SUPER SHIFT, 3, movetoworkspace, 3 -bind = SUPER SHIFT, 4, movetoworkspace, 4 -bind = SUPER SHIFT, 5, movetoworkspace, 5 -bind = SUPER SHIFT, 6, movetoworkspace, 6 -bind = SUPER SHIFT, 7, movetoworkspace, 7 -bind = SUPER SHIFT, 8, movetoworkspace, 8 -bind = SUPER SHIFT, 9, movetoworkspace, 9 -bind = SUPER SHIFT, 0, movetoworkspace, 10 - -# Volume controls -bindel = ,XF86AudioRaiseVolume, exec, $OSD-client --output-volume raise -bindel = ,XF86AudioLowerVolume, exec, $OSD-client --output-volume lower -bindel = ,XF86AudioMute, exec, $OSD-client --output-volume mute-toggle -bindel = ,XF86AudioMicMute, exec, $OSD-client --input-volume mute-toggle - -# Brightness controls -bindel = ,XF86MonBrightnessUp, exec, brightnessctl set 5%+; $SCRIPTS_DIR/current-brightness.sh | xargs $OSD-client --brightness -bindel = ,XF86MonBrightnessDown, exec, brightnessctl set 5%-; $SCRIPTS_DIR/current-brightness.sh | xargs $OSD-client --brightness - -# Player controls -bindl = ,XF86AudioNext, exec, $OSD-client --playerctl next -bindl = ,XF86AudioPause, exec, $OSD-client --playerctl play-pause -bindl = ,XF86AudioPlay, exec, $OSD-client --playerctl play-pause -bindl = ,XF86AudioPrev, exec, $OSD-client --playerctl previous - -############################## -### WINDOWS AND WORKSPACES ### -############################## - -# Force discord to stay at 2nd workspace -windowrule = workspace 2 silent, match:class ^(discord)$ - -# Make flameshot not temporarily resize windows -windowrule = float on, match:class ^($SCREENSHOT)$ - -# Ignore maximize requests from apps -windowrule = suppress_event maximize, match:class .* - diff --git a/laptop/.config/hypr/hyprlock.conf b/laptop/.config/hypr/hyprlock.conf deleted file mode 100644 index df0f06c..0000000 --- a/laptop/.config/hypr/hyprlock.conf +++ /dev/null @@ -1,24 +0,0 @@ -general { - hide_cursor = true - ignore_empty_input = true -} - -animations { - animation = fade, 1, 3, linear -} - -background { - path = ~/wallpapers/.current -} - -input-field { - size = 10%, 3% - outline_thickness = 2 - dots_size = 0.35 - dots_spacing = 0.2 - outer_color = rgb(df00ff) - inner_color = rgb(232627) - font_color = rgb(f5f5f5) - rounding = 13 - placeholder_text = -} diff --git a/laptop/.config/hypr/hyprpaper.conf b/laptop/.config/hypr/hyprpaper.conf deleted file mode 100644 index 122fb2b..0000000 --- a/laptop/.config/hypr/hyprpaper.conf +++ /dev/null @@ -1,6 +0,0 @@ -wallpaper { - monitor = - path = $HOME/wallpapers/.current -} -splash = false - diff --git a/laptop/.config/hypr/scripts/battery-notifier.sh b/laptop/.config/hypr/scripts/battery-notifier.sh deleted file mode 100755 index d586879..0000000 --- a/laptop/.config/hypr/scripts/battery-notifier.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -while true; do - # get battery status - acpi_info=$(acpi) - stat=$(echo $acpi_info | awk -F" " '{print $3}') - stat=${stat::-1} - perc=$(echo $acpi_info | awk -F" " '{print $4}') - perc=${perc::-2} - - # check if battery is discharging - if [[ $stat == Discharging ]]; then - # send notification if low power - if [[ $perc -le 15 ]]; then - notify-send -a Battery BATTERY\ CRITICAL\ -h int:value:$perc -u critical - elif [[ $perc -le 30 ]]; then - notify-send -a Battery Battery\ low\ -h int:value:$perc - fi - fi - - # calculate time until next check using interpolating polynomial - # of points (battery %, time [s] until next check): - # (100, 600) - # (50, 120) - # (30, 60) - # (15, 30) - # (0, 0) - x1=$(echo "scale=10; 188/85*$perc" | bc) - x2=$(echo "scale=10; -603/29750*$perc*$perc" | bc) - x3=$(echo "scale=10; 113/297500*$perc*$perc*$perc" | bc) - x4=$(echo "scale=10; 3/1487500*$perc*$perc*$perc*$perc" | bc) - sleep_time=$(echo $x1+$x2+$x3+$x4 | bc | awk -F"." '{print $1}') - - # sleep for calculated time - sleep $sleep_time -done diff --git a/laptop/.config/hypr/scripts/capture-window.sh b/laptop/.config/hypr/scripts/capture-window.sh deleted file mode 100755 index 2299cb0..0000000 --- a/laptop/.config/hypr/scripts/capture-window.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# get size and offset of active window -size=$(hyprctl activewindow | grep size: | awk -F" " '{print $2}') -size=${size/,/x} -offset=$(hyprctl activewindow | grep at: | awk -F" " '{print $2}') -offset=${offset/,/+} - -# open gui with selected region -flameshot gui --region $size+$offset diff --git a/laptop/.config/hypr/scripts/current-brightness.sh b/laptop/.config/hypr/scripts/current-brightness.sh deleted file mode 100755 index 4856e59..0000000 --- a/laptop/.config/hypr/scripts/current-brightness.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -s=$(brightnessctl | grep % | awk -F" " '{print $4}') -echo ${s:1:-2} diff --git a/laptop/.config/hypr/scripts/equalize-windows.sh b/laptop/.config/hypr/scripts/equalize-windows.sh deleted file mode 100755 index cd43729..0000000 --- a/laptop/.config/hypr/scripts/equalize-windows.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/bash - -ITERS=3 - -# get address of the window to return to -address=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') - -# define move directions -dir1=$1 -dir2=r -if [[ $dir1 == u ]]; then - dir2=d -fi - -# move max to the left/top -prev_window="" -window=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') -while [[ $window != $prev_window ]]; do - hyprctl dispatch movefocus $dir1 - prev_window=$window - window=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') -done - -# get start location -at=$(hyprctl activewindow | awk -F" " 'NR==4 {print $2}') -if [[ $dir1 == l ]]; then - start_location=$(echo $at | awk -F"," '{print $1}') -else - start_location=$(echo $at | awk -F"," '{print $2}') -fi - -# count windows in the line -window_count=0 -prev_window="" -while [[ $window != $prev_window ]]; do - hyprctl dispatch movefocus $dir2 - prev_window=$window - window=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') - window_count=$(($window_count+1)) -done - -# get end location -at=$(hyprctl activewindow | awk -F" " 'NR==4 {print $2}') -size=$(hyprctl activewindow | awk -F" " 'NR==5 {print $2}') -if [[ $dir1 == l ]]; then - at=$(echo $at | awk -F"," '{print $1}') - size=$(echo $size | awk -F"," '{print $1}') -else - at=$(echo $at | awk -F"," '{print $2}') - size=$(echo $size | awk -F"," '{print $2}') -fi -end_location=$(($at+$size)) - -# calculate full size and size per window -full_size=$(($end_location - $start_location)) -size_per_window=$(($full_size / $window_count)) - -# set sizes -i=0 -while [[ $i -lt $ITERS ]]; do - i=$(($i+1)) - window=0 - while [[ $window -lt $window_count ]]; do - window=$(($window+1)) - size=$(hyprctl activewindow | awk -F" " 'NR==5 {print $2}') - if [[ $dir1 == l ]]; then - #other_side=$(echo $size | awk -F"," '{print $2}') - #hyprctl dispatch resizeactive exact $size_per_window $other_side - size=$(echo $size | awk -F"," '{print $1}') - diff=$(($size_per_window - $size)) - hyprctl dispatch resizeactive $diff 0 - else - #other_side=$(echo $size | awk -F"," '{print $1}') - #hyprctl dispatch resizeactive exact $other_side $size_per_window - size=$(echo $size | awk -F"," '{print $2}') - diff=$(($size_per_window - $size)) - hyprctl dispatch resizeactive 0 $diff - fi - hyprctl dispatch movefocus $dir1 - done - temp=$dir1 - dir1=$dir2 - dir2=$temp -done - -# return to starting window -hyprctl dispatch focuswindow address:0x$address diff --git a/laptop/.config/hypr/scripts/randomize-wallpaper.sh b/laptop/.config/hypr/scripts/randomize-wallpaper.sh deleted file mode 100755 index 116763b..0000000 --- a/laptop/.config/hypr/scripts/randomize-wallpaper.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/bash - -WALLPAPER_DIR="$HOME/wallpapers" - -# Get a random wallpaper -WALLPAPER=$(find $WALLPAPER_DIR -type f | shuf -n 1) - -# Create a symlink to the new random wallpaper -SYMLINK=$WALLPAPER_DIR/.current -rm $SYMLINK -ln -s $WALLPAPER $SYMLINK diff --git a/laptop/.config/hypr/scripts/zoom.sh b/laptop/.config/hypr/scripts/zoom.sh deleted file mode 100755 index 433f899..0000000 --- a/laptop/.config/hypr/scripts/zoom.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -ZOOM=$(hyprctl getoption cursor:zoom_factor | grep float | awk -F" " '{print $2}') -ZOOM=$(echo "scale=0; ($ZOOM+1)/1" | bc) -if [[ $ZOOM -gt $MAX_ZOOM ]]; then - ZOOM=1 -fi - -hyprctl -q keyword cursor:zoom_factor $ZOOM |
