updates for hypr

This commit is contained in:
Tyler Starr 2023-12-15 16:29:46 -08:00
parent 145ec8447b
commit a0b3f17702
4 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,9 @@ alias nu="cd ~/.local/share/chezmoi/provision && \
# sway
alias s='sway'
# hyprland
alias h='Hyprland'
# tmuxp
alias t='linux-tmuxp-launcher'

View File

@ -1,5 +1,6 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
monitor=HDMI-A-1,2560x1440@144,1920x0,1
monitor=DP-3,11920x1080@60,0x0,1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mod = SUPER

View File

@ -13,6 +13,7 @@ bindl = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
bind = $mod, x, submap, utility
submap = utility
bind = , q, exit,
bind = , g, exec, ~/.config/hypr/scripts/gamemode.sh $e
binde = , h, resizeactive, -50 0
binde = , j, resizeactive, 0 50
binde = , k, resizeactive, 0 -50

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
status=$(gamemoded -s)
if [ "$status" == "gamemode is inactive" ]; then
gamemoded -r &
killall swayidle
else
killall gamemoded
~/.config/hypr/scripts/idle.sh
fi