From a0b3f17702f70fc023c4379e0323f4d1029ff51b Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Fri, 15 Dec 2023 16:29:46 -0800 Subject: [PATCH] updates for hypr --- home/dot_aliases | 3 +++ home/dot_config/hypr/hyprland.conf | 3 ++- home/dot_config/hypr/keybinds.conf | 1 + home/dot_config/hypr/scripts/executable_gamemode.sh | 10 ++++++++++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 home/dot_config/hypr/scripts/executable_gamemode.sh diff --git a/home/dot_aliases b/home/dot_aliases index 10ac6e2e..58bcb925 100644 --- a/home/dot_aliases +++ b/home/dot_aliases @@ -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' diff --git a/home/dot_config/hypr/hyprland.conf b/home/dot_config/hypr/hyprland.conf index d452747f..d1036e53 100644 --- a/home/dot_config/hypr/hyprland.conf +++ b/home/dot_config/hypr/hyprland.conf @@ -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 diff --git a/home/dot_config/hypr/keybinds.conf b/home/dot_config/hypr/keybinds.conf index 32f0eafa..caa1c0fc 100644 --- a/home/dot_config/hypr/keybinds.conf +++ b/home/dot_config/hypr/keybinds.conf @@ -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 diff --git a/home/dot_config/hypr/scripts/executable_gamemode.sh b/home/dot_config/hypr/scripts/executable_gamemode.sh new file mode 100644 index 00000000..12241cb9 --- /dev/null +++ b/home/dot_config/hypr/scripts/executable_gamemode.sh @@ -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