update: slightly WIP update with cool features
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Wallpaper
|
||||
env = WALLPAPER,$HOME/Pictures/Wallpapers/Arcane/Jinx/jinx-fog.png
|
||||
# env = WALLPAPER,$HOME/Pictures/Wallpapers/Arcane/Jinx/jinx-fog.png
|
||||
env = WALLPAPER,$HOME/Pictures/Wallpapers/Scapes/Deserts/desert-night.jpg
|
||||
|
||||
# Lockscreen wallpaper
|
||||
env = LOCK_WALLPAPER,$HOME/Pictures/Wallpapers/Arcane/Scenes/arcane-airship.png
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# System
|
||||
# Initialize dbus
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
# Set workspace 100 for the scroll-left support
|
||||
exec-once = bash -c "sleep 1 && for monitor in $(hyprctl monitors -j | jq -r '.[].name'); do hyprctl dispatch workspace 100 && hyprctl dispatch focusworkspaceoncurrentmonitor 100; done"
|
||||
# Set workspaces to hundreds for the scroll-to-left support
|
||||
# exec-once = bash -c "sleep 1 && for monitor in $(hyprctl monitors -j | jq -r '.[].name'); do hyprctl dispatch workspace 100 && hyprctl dispatch focusworkspaceoncurrentmonitor 100; done"
|
||||
exec-once = ~/.config/hypr/scripts/set-workspaces.sh
|
||||
# Initialize sleep
|
||||
exec-once = uwsm app -- systemd-inhibit --who="Hyprland config" --why="wlogout keybind" --what=handle-power-key --mode=block sleep infinity
|
||||
|
||||
@@ -26,6 +27,6 @@ exec-once = uwsm app -- waybar
|
||||
|
||||
# Extra
|
||||
# Color correction
|
||||
exec-once = uwsm app -- ~/.config/hypr/scripts/color-correction.sh
|
||||
exec-once = ~/.config/hypr/scripts/color-correction.sh
|
||||
# Apply GTK themes
|
||||
exec-once = nwg-look -a
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
$mainMod = SUPER
|
||||
|
||||
# change layout that supports no shift retapping
|
||||
bindl = ALT, Shift_L, exec, hyprctl switchxkblayout main next
|
||||
bindln = Shift_L, ALT_L, exec, hyprctl switchxkblayout main next
|
||||
bindln = ALT_L, Shift_L, exec, hyprctl switchxkblayout main next
|
||||
|
||||
|
||||
# Toggle performance mode
|
||||
@@ -30,12 +31,19 @@ bind = $mainMod, Q, exec, kitty
|
||||
bind = $mainMod, E, exec, thunar
|
||||
bind = $mainMod, R, exec, rofi -show drun -terminal kitty -no-history -matching prefix -drun-match-fields name -no-tokenize
|
||||
bind = $mainMod SHIFT, R, exec, ~/.config/rofi/network-manager/run-manager.sh
|
||||
bind = $mainMod, C, exec, hyprpicker -a
|
||||
bind = $mainMod, S, exec, hyprpicker -a
|
||||
bind = $mainMod, C, exec, dunstctl close-all
|
||||
|
||||
|
||||
# copy binds
|
||||
# clipboard binds
|
||||
bind = $mainMod, V, exec, rofi -modi clipboard:/$HOME/.config/rofi/clipboard/cliphist-rofi-img.sh -show clipboard -show-icon -config ~/.config/rofi/clipboard-config.rasi
|
||||
bind = $mainMod SHIFT, S, exec, IMG=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png && grim -g "$(slurp)" $IMG && wl-copy < $IMG
|
||||
|
||||
|
||||
# screenshot binds
|
||||
# no screen freeze
|
||||
# bind = $mainMod SHIFT, S, exec, IMG=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png && grim -g "$(slurp)" $IMG && wl-copy < $IMG
|
||||
# screen freeze
|
||||
bind = $mainMod SHIFT, S, exec, hyprpicker -r -z & sleep 0.2; IMG=~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png && grim -g "$(slurp)" $IMG && wl-copy < $IMG; kill $!
|
||||
bind = , PRINT, exec, grim - | wl-copy
|
||||
|
||||
|
||||
@@ -115,6 +123,10 @@ binde = $mainMod CTRL, j, resizeactive, 0 30
|
||||
binde = $mainMod CTRL, k, resizeactive, 0 -30
|
||||
|
||||
|
||||
# Focus on initial workspace (TODO: different for monitors)
|
||||
bind = $mainMod, 0, focusworkspaceoncurrentmonitor, 100
|
||||
|
||||
|
||||
# Switch workspaces
|
||||
binde = $mainMod, A, exec, .config/hypr/scripts/workspace-handler.sh change previous
|
||||
binde = $mainMod, D, exec, .config/hypr/scripts/workspace-handler.sh change next
|
||||
@@ -129,5 +141,5 @@ binde = $mainMod CTRL SHIFT, A, movetoworkspace, r-1
|
||||
binde = $mainMod CTRL SHIFT, D, movetoworkspace, r+1
|
||||
|
||||
|
||||
# Swap worlspaces between monitors
|
||||
# Swap workspaces between monitors
|
||||
bind = $mainMod, TAB, swapactiveworkspaces, 1 0
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Apps
|
||||
env = EDITOR,nvim
|
||||
env = TERMINAL,kitty
|
||||
|
||||
|
||||
# GTK theme
|
||||
env = GTK_THEME,Colloid-Transparent-Dracula
|
||||
|
||||
@@ -21,6 +26,7 @@ env = MOZ_ENABLE_WAYLAND,1
|
||||
|
||||
# chrome --enable-features=TouchpadOverscrollHistoryNavigation
|
||||
|
||||
|
||||
# Scaling
|
||||
env = GDK_SCALE,1
|
||||
xwayland {
|
||||
|
||||
@@ -6,3 +6,4 @@ monitor = eDP-1, prefered, auto, 1
|
||||
# custom
|
||||
monitor = desc:Communications Supply Corporation (A division of WESCO) P120ZDG-BF4, 2160x1440@60, auto, 1.33333334
|
||||
monitor = desc:AU Optronics 0x243D, 1920x1080@60, 0x0, 1, bitdepth, 10
|
||||
monitor = desc:Samsung Electric Company Q85A 0x01000E00, 2560x1440@59.95, auto, 1
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# Splashes
|
||||
ecosystem {
|
||||
no_update_news = true
|
||||
no_donation_nag = true
|
||||
}
|
||||
|
||||
# render
|
||||
render {
|
||||
direct_scanout = 2 # maybe change it to 0 (default)
|
||||
}
|
||||
|
||||
# Misc
|
||||
misc {
|
||||
disable_hyprland_logo = true
|
||||
disable_splash_rendering = true
|
||||
mouse_move_enables_dpms = true
|
||||
key_press_enables_dpms = true
|
||||
initial_workspace_tracking = 2
|
||||
session_lock_xray = false
|
||||
}
|
||||
@@ -1,16 +1,3 @@
|
||||
# Splashes
|
||||
ecosystem {
|
||||
no_update_news = true
|
||||
no_donation_nag = true
|
||||
}
|
||||
|
||||
misc {
|
||||
disable_hyprland_logo = true
|
||||
disable_splash_rendering = true
|
||||
key_press_enables_dpms = true
|
||||
}
|
||||
|
||||
|
||||
# General config
|
||||
general {
|
||||
gaps_in = 3
|
||||
@@ -22,13 +9,15 @@ general {
|
||||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile = yes
|
||||
# pseudotile = yes
|
||||
preserve_split = yes
|
||||
# smart_split = no
|
||||
}
|
||||
|
||||
cursor {
|
||||
inactive_timeout = 2
|
||||
hide_on_key_press = true
|
||||
hide_on_touch = true
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -5,4 +5,4 @@ msgId="3378455"
|
||||
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
|
||||
|
||||
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume-down.svg -a "changevolume" -u low -r "$msgId" \
|
||||
-h int:value:"$volume" "Громкость: $volume%"
|
||||
-h int:value:"$volume" "Громкость: $volume"
|
||||
|
||||
@@ -8,4 +8,4 @@ msgId="3378455"
|
||||
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
|
||||
|
||||
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume.svg -a "changevolume" -u low -r "$msgId" \
|
||||
-h int:value:"$volume" "Громкость: $volume%"
|
||||
-h int:value:"$volume" "Громкость: $volume"
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Get current monitor
|
||||
current_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name')
|
||||
|
||||
# Fallback
|
||||
if [ -z "$current_monitor" ]; then
|
||||
current_monitor=$(hyprctl monitors -j | jq -r '.[0].name')
|
||||
fi
|
||||
|
||||
# Set workspaces
|
||||
count=1
|
||||
while IFS= read -r mon; do
|
||||
ws=$((count * 100))
|
||||
hyprctl --batch "dispatch focusmonitor $mon; dispatch workspace $ws"
|
||||
count=$((count + 1))
|
||||
done < <(hyprctl monitors -j | jq -r '.[].name')
|
||||
|
||||
# Return focus
|
||||
hyprctl dispatch focusmonitor "$current_monitor"
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
msgId="3378455"
|
||||
|
||||
if pgrep -f "systemd-inhibit --what=handle-lid-switch" > /dev/null; then
|
||||
pkill -f "systemd-inhibit --what=handle-lid-switch"
|
||||
# notify-send -u low -r "$msgId" "Lid Sleep" "Do Not Sleep on lid close DISABLED"
|
||||
else
|
||||
systemd-inhibit --what=handle-lid-switch --who="Lid Toggle Script" --why="User toggled lid sleep off" --mode=block sleep infinity &
|
||||
# notify-send -u low -r "$msgId" "Lid Sleep" "Do Not Sleep on lid close ENABLED"
|
||||
fi
|
||||
pkill -RTMIN+10 waybar
|
||||
Reference in New Issue
Block a user