feat: more minor changes

This commit is contained in:
Flinner Yuu 2025-04-23 15:05:19 +03:00
parent 06ca707028
commit 4bf7bb8cfa
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
4 changed files with 50 additions and 5 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ __pycache__
/hypr/.face
/emacs.mine/.config/emacs.mine/eln-cache/
/emacs.mine/.config/emacs.mine/elpy/
/haskell/.ghc/ghci_history

4
bin/bin/poly.sh Executable file
View File

@ -0,0 +1,4 @@
for m in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$m ~/.config/polybar/launch.sh --hack &
done

View File

@ -0,0 +1,20 @@
#!/bin/bash
# TODO: Fix this!!
# chatgpted
# Get the current active window ID
current_window=$(hyprctl activewindow)
# Get the monitor of the current active window
current_monitor=$(hyprctl activewindow | grep -oP 'monitor: \K\d+')
# Get the last active window's ID on a different monitor
last_window=$(hyprctl monitors | grep -v $current_monitor | awk '{print $1}')
echo $last_window
# Switch focus to that window (if found)
if [ -n "$last_window" ]; then
hyprctl focuswindow $last_window
fi

View File

@ -44,7 +44,7 @@ $mainMonitor=DP-1
# See https://wiki.hyprland.org/Configuring/Monitors/
# MAIN:
monitor=$mainMonitor,highres,1920x395,1.25
monitor=$mainMonitor,highres,0x0,1.25
monitor = , highres, auto, 1
@ -69,6 +69,7 @@ $menu = rofi -show drun
exec-once = nm-applet & (sleep 3 && nextcloud --background ) & (sleep 3 && udiskie --tray ) &
exec-once = (sleep 3 && kdeconnect-indicator)
exec-once = (sleep 3 && blueberry)
exec-once = waybar & hyprpaper
exec-once = [workspace 1 silent] firefox
@ -269,6 +270,19 @@ device {
sensitivity = -0.5
}
device {
name = bastard-keyboards-scylla-splinky
kb_options =
}
device {
name = bastard-keyboards-scylla-splinky-system-control, bastard-keyboards-scylla-splinky-consumer-control
kb_options =
}
device {
name = bastard-keyboards-scylla-splinky-consumer-control
kb_options =
}
binds {
# FIX: make hjkl not exit fullscreen ;)
movefocus_cycles_fullscreen = 0
@ -292,15 +306,21 @@ bind = $mainMod SHIFT, Q, killactive,
# bind = $mainMod, M, exit,
# bind = $mainMod, E, exec, $fileManager
bind = $mainMod, E, exec, emacsclient -nc -alternate-editor="emacs"
bind = $mainMod, bracketright, exec, ~/bin/rofi_bin_launcher.py
bind = $mainMod, bracketleft, exec, rofi -show calc
bind = $mainMod, R, exec, $menu
bind = $mainMod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
# bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy
bind = SHIFT, Print, exec, env XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway QT_QPA_PLATFORM=wayland flameshot gui
bind = , Print, exec, grim -g "$(slurp -o -r -c '##FF0000FF')" -t ppm - | satty --early-exit --initial-tool rectangle --copy-command wl-copy --annotation-size-factor 2 --fullscreen --filename -
bind = , Print, exec, grim -g "$(slurp -o -r -c '##FF0000FF')" -t ppm - | satty --early-exit --initial-tool rectangle --copy-command wl-copy --annotation-size-factor 2 --fullscreen --save-after-copy --output-filename "/tmp/test-%Y-%m-%d_%H:%M:%S.png" --filename -
# Toggle Bar
bind = $mainMod, b, exec, killall -SIGUSR1 waybar
# Lock
bind = $mainMod, HOME, exec, hyprlock >> ~/hyprlock_logfile.txt
# Between workspaces
bind = $mainMod, Tab, workspace, previous
@ -454,8 +474,8 @@ windowrulev2 = suppressevent maximize, class:.*
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
# Fix ueberzugpp
windowrulev2 = noanim, class:^(ueberzugpp)
windowrulev2 = workspace 4 silent, class:^(VGA_SIM)
windowrulev2 = noanim, class:^(ueberzugpp_.*)
#windowrulev2 = float, class:^(ueberzugpp_.*)
# Fix Matlab
windowrulev2 = nofocus, class: ^(MATLAB [\w\d]* - academic use)$, title: ^(Command HistoryWindow)$
@ -489,7 +509,7 @@ windowrulev2 = move cursor -50% 25,title:(Prayers)
windowrulev2 = noanim, class:^(flameshot)$
windowrulev2 = fullscreenstate, class:(flameshot), title:(flameshot)
windowrulev2 = float, class:^(flameshot)$
windowrulev2 = move 0 -395, class:^(flameshot)$
windowrulev2 = move 0 0, class:^(flameshot)$
windowrulev2 = pin, class:^(flameshot)$
# set this to your leftmost monitor id, otherwise you have to move your cursor to the leftmost monitor
# before executing flameshot