aboutsummaryrefslogtreecommitdiff
path: root/laptop
diff options
context:
space:
mode:
Diffstat (limited to 'laptop')
-rw-r--r--laptop/.config/hypr/hyprland.conf489
-rwxr-xr-xlaptop/.config/hypr/scripts/equalize-windows.sh87
-rw-r--r--laptop/.wezterm.lua2
3 files changed, 308 insertions, 270 deletions
diff --git a/laptop/.config/hypr/hyprland.conf b/laptop/.config/hypr/hyprland.conf
index 25a6869..1c72934 100644
--- a/laptop/.config/hypr/hyprland.conf
+++ b/laptop/.config/hypr/hyprland.conf
@@ -1,323 +1,274 @@
#################
### VARIABLES ###
#################
-# See https://wiki.hypr.land/Configuring/Keywords/
-$scriptsDir = $HOME/.config/hypr/scripts
-$logFile = $HOME/.hypr.log
+# Files and locations
+$SCRIPTS_DIR = $HOME/.config/hypr/scripts
+$LOG_FILE = $HOME/.hypr.log
+
+# Used programs
+$BROWSER = brave
+$DISCORD = discord
+$TERMINAL = wezterm
+$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 = flameshot
-$browser = brave
-$terminal = wezterm
-$fileManager = thunar
-$menu = wofi
-
-################
-### MONITORS ###
-################
-# See https://wiki.hypr.land/Configuring/Monitors/
-
-monitor=eDP-1,highres,auto,1
-monitor=,preferred,auto,1,mirror,eDP-1
-
-#################
-### AUTOSTART ###
-#################
-
-# Autostart necessary processes (like notifications daemons, status bars, etc.)
-# Or execute your favorite apps at launch like this:
-
-exec-once = echo -e "---------------------------------------------------------------------------" >> $logFile
-exec-once = echo -e "NEW SESSION: $HYPRLAND_INSTANCE_SIGNATURE" >> $logFile
-exec-once = echo -e "---------------------------------------------------------------------------" >> $logFile
+#####################
+### ENV VARIABLES ###
+#####################
-exec-once = systemctl --user start hyprpolkitagent
-exec-once = waybar
-exec-once = [workspace 1 silent] $browser
-exec-once = [workspace 2 silent] discord
-exec-once = [workspace 3 silent] $terminal
-exec-once = flameshot
-exec-once = $scriptsDir/randomize-wallpaper.sh
-exec-once = hyprpaper
-exec-once = hypridle
-exec-once = $scriptsDir/battery-notifier.sh
-exec-once = udiskie
-exec-once = swayosd-server
-
-# Lock after autologin in sddm, to use lockscreen as login
-exec-once = hyprlock
-
-#############################
-### ENVIRONMENT VARIABLES ###
-#############################
-
-# See https://wiki.hypr.land/Configuring/Environment-variables/
-
-# nvidia shit
+# 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
-env = MAX_ZOOM,3
-
-
-###################
-### PERMISSIONS ###
-###################
-# See https://wiki.hypr.land/Configuring/Permissions/
-# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
-# for security reasons
-
-# ecosystem {
-# enforce_permissions = 1
-# }
+# Misc
+env = MAX_ZOOM,3
-# permission = /usr/(bin|local/bin)/grim, screencopy, allow
-# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
-# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
+################
+### MONITORS ###
+################
+$MAIN_MONITOR=eDP-1
-#####################
-### LOOK AND FEEL ###
-#####################
+monitor=$MAIN_MONITOR,highres,auto,1
+monitor=,preferred,auto,1,mirror,$MAIN_MONITOR
-# Wallpapaers
+#################
+### AUTOSTART ###
+#################
-# Refer to https://wiki.hypr.land/Configuring/Variables/
+# 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 ###
+##################
-# https://wiki.hypr.land/Configuring/Variables/#general
general {
- gaps_in = 3
- gaps_out = 5
+ gaps_in = 1
+ gaps_out = 1
- border_size = 2
-
- # https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
col.active_border = rgb(df00ff) rgb(ff10f0) 45deg
col.inactive_border = rgba(595959aa)
- # Set to true enable resizing windows by clicking and dragging on borders and gaps
- resize_on_border = false
-
- # Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
- allow_tearing = false
-
- layout = dwindle
+ no_focus_fallback = true
}
-# https://wiki.hypr.land/Configuring/Variables/#decoration
decoration {
- rounding = 5
- rounding_power = 3
-
- # Change transparency of focused and unfocused windows
- active_opacity = 1.0
- inactive_opacity = 1.0
-
- shadow {
- enabled = true
- range = 4
- render_power = 3
- color = rgba(1a1a1aee)
- }
-
- # https://wiki.hypr.land/Configuring/Variables/#blur
- blur {
- enabled = true
- size = 3
- passes = 1
-
- vibrancy = 0.1696
- }
+ dim_inactive = true
+ dim_strength = .1
}
-# https://wiki.hypr.land/Configuring/Variables/#animations
animations {
- enabled = yes, please :)
-
- # Default curves, see https://wiki.hypr.land/Configuring/Animations/#curves
- # NAME, X0, Y0, X1, Y1
- bezier = easeOutQuint, 0.23, 1, 0.32, 1
+ 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
-
- # Default animations, see https://wiki.hypr.land/Configuring/Animations/
- # NAME, ONOFF, SPEED, CURVE, [STYLE]
- animation = global, 1, 10, default
- animation = border, 1, 5.39, easeOutQuint
- animation = windows, 1, 4.79, easeOutQuint
- animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
- animation = windowsOut, 1, 1.49, linear, popin 87%
- animation = fadeIn, 1, 1.73, almostLinear
- animation = fadeOut, 1, 1.46, almostLinear
- animation = fade, 1, 3.03, quick
- animation = layers, 1, 3.81, easeOutQuint
- animation = layersIn, 1, 4, easeOutQuint, fade
- animation = layersOut, 1, 1.5, linear, fade
- animation = fadeLayersIn, 1, 1.79, almostLinear
- animation = fadeLayersOut, 1, 1.39, almostLinear
- animation = workspaces, 1, 1.94, almostLinear, fade
- animation = workspacesIn, 1, 1.21, almostLinear, fade
- animation = workspacesOut, 1, 1.94, almostLinear, fade
- animation = zoomFactor, 1, 7, quick
+ 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
}
-# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
-# "Smart gaps" / "No gaps when only"
-# uncomment all if you wish to use that.
-# workspace = w[tv1], gapsout:0, gapsin:0
-# workspace = f[1], gapsout:0, gapsin:0
-# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
-# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
-# windowrule = bordersize 0, floating:0, onworkspace:f[1]
-# windowrule = rounding 0, floating:0, onworkspace:f[1]
-
-# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
-dwindle {
- pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
- preserve_split = true # You probably want this
-}
+input {
+ kb_layout = pl
-# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
-master {
- new_status = master
-}
+ numlock_by_default = true
-# https://wiki.hypr.land/Configuring/Variables/#misc
-misc {
- force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers
- disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
- middle_click_paste = false
-}
+ repeat_rate = 40
+ repeat_delay = 400
+ follow_mouse = 2
+}
-#############
-### INPUT ###
-#############
+misc {
+ disable_hyprland_logo = true
-# https://wiki.hypr.land/Configuring/Variables/#input
-input {
- kb_layout = pl
- kb_variant =
- kb_model =
- kb_options =
- kb_rules =
+ focus_on_activate = false
- follow_mouse = 1
+ middle_click_paste = false
+}
- sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
+cursor {
+ zoom_rigid = true
- touchpad {
- natural_scroll = false
- }
+ hide_on_key_press = true
}
-# See https://wiki.hypr.land/Configuring/Gestures
-gesture = 3, horizontal, workspace
+ecosystem:no_donation_nag = true
+
+dwindle {
+ pseudotile = true
-# Example per-device config
-# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
-device {
- name = epic-mouse-v1
- sensitivity = -0.5
+ force_split = 2
+ preserve_split = true
}
+#############
+### BINDS ###
+#############
-###################
-### KEYBINDINGS ###
-###################
-
-# See https://wiki.hypr.land/Configuring/Keywords/
-$mainMod = SUPER # Sets "Windows" key as main modifier
-
-# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
-bind = $mainMod, Q, killactive,
-bind = $mainMod, P, pseudo, # dwindle
-bind = $mainMod, J, togglesplit, # dwindle
-bind = $mainMod, V, togglefloating,
-
-bind = $mainMod, T, exec, $terminal
-bind = $mainMod, F, exec, $fileManager
-bind = ALT, SPACE, exec, pkill $menu || $menu
-bind = $mainMod, B, exec, $browser
-bind = $mainMod, D, exec, discord
-bind = $mainMod, I, exec, intellij-idea-ultimate-edition
-bind = $mainMod SHIFT, S, exec, flameshot gui
-bind = , Print, exec, flameshot gui --region 1920x1080+0+0
-bind = ALT, Print, exec, $scriptsDir/capture-window.sh
-bind = $mainMod SHIFT, P, exec, hyprpicker -a
-bind = $mainMod, L, exec, hyprlock
-bind = $mainMod, N, exec, dunstctl close-all
-bind = $mainMod SHIFT, M, exec, $scriptsDir/zoom.sh
-
-# 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
-
-# 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
-
-# Move/resize windows with mainMod + LMB/RMB and dragging
-bindm = $mainMod, mouse:272, movewindow
-bindm = $mainMod, mouse:273, resizewindow
-
-# Laptop multimedia keys for volume and LCD brightness
-bindel = ,XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise
-bindel = ,XF86AudioLowerVolume, exec, swayosd-client --output-volume lower
-bindel = ,XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
-bindel = ,XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle
-bindel = ,XF86MonBrightnessUp, exec, brightnessctl set 5%+; $scriptsDir/current-brightness.sh | xargs swayosd-client --brightness
-bindel = ,XF86MonBrightnessDown, exec, brightnessctl set 5%-; $scriptsDir/current-brightness.sh | xargs swayosd-client --brightness
-
-# Requires playerctl
-bindl = , XF86AudioNext, exec, swayosd-client --playerctl next
-bindl = , XF86AudioPause, exec, swayosd-client --playerctl play-pause
-bindl = , XF86AudioPlay, exec, swayosd-client --playerctl play-pause
-bindl = , XF86AudioPrev, exec, swayosd-client --playerctl previous
+# General
+bind = SUPER, Q, killactive,
+bind = SUPER, V, 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, B, exec, $BROWSER
+bind = SUPER, D, exec, $DISCORD
+bind = SUPER, I, exec, intellij-idea-ultimate-edition
+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 gui # Select region
+bind = , Print, exec, $SCREENSHOT gui --region 1920x1080+0+0 # Entire screen
+bind = ALT, Print, exec, $SCRIPTS_DIR/capture-window.sh # Current window
+
+# 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, 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 ###
##############################
-# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
-# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
+# Force discord to stay at 2nd workspace
+windowrule = workspace 2 silent, class:^($DISCORD)$
-# Example windowrule
-# windowrule = float,class:^(kitty)$,title:^(kitty)$
-windowrulev2 = workspace 2 silent, class:^(discord)$
+# Make flameshot not temporarily resize windows
+windowrule = float, class:^($SCREENSHOT)$
-# Ignore maximize requests from apps. You'll probably like this.
+# Ignore maximize requests from apps
windowrule = suppressevent maximize, class:.*
-
-# Fix some dragging issues with XWayland
-windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
diff --git a/laptop/.config/hypr/scripts/equalize-windows.sh b/laptop/.config/hypr/scripts/equalize-windows.sh
new file mode 100755
index 0000000..cd43729
--- /dev/null
+++ b/laptop/.config/hypr/scripts/equalize-windows.sh
@@ -0,0 +1,87 @@
+#!/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/.wezterm.lua b/laptop/.wezterm.lua
index fd79d73..b780496 100644
--- a/laptop/.wezterm.lua
+++ b/laptop/.wezterm.lua
@@ -41,7 +41,7 @@ wezterm.on(
-- Window
-cfg.window_background_opacity = 0.9
+cfg.window_background_opacity = 0.95
cfg.window_frame = {
-- Would love to set alpha of both of these to 0.9, but it incorrectly applies
-- to the area above the tabs themselves, so it's 1 for now