From c984a8093c4857829026a0772aaa4a6af96ac5f0 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 9 Dec 2023 12:41:53 +0900 Subject: some small tweaks on rofi --- config/hypr/configs/Keybinds.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/hypr/configs/Keybinds.conf') diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 2c4a048c..523416bb 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -16,8 +16,8 @@ $volume = $scriptsDir/Volume.sh # see https://wiki.hyprland.org/Configuring/Binds/ for more # rofi launcher -bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser -bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser +bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi run,drun,filebrowser +bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi run,drun,filebrowser bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 bind = $mainMod SHIFT, R, exec, hyprctl reload -- cgit v1.2.3 From 13eb49132583dbbe948ac80f8d941d7b3c8d11f0 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 9 Dec 2023 13:59:48 +0900 Subject: added a solution for the Laptop monitor display to not wake up during hyprctl reload --- config/hypr/configs/Keybinds.conf | 5 +++-- config/hypr/configs/LaptopDisplay.conf | 1 + config/hypr/configs/Laptops.conf | 11 ++++++----- config/hypr/configs/Monitors.conf | 7 ++++++- config/hypr/hyprland.conf | 1 + 5 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 config/hypr/configs/LaptopDisplay.conf (limited to 'config/hypr/configs/Keybinds.conf') diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 523416bb..06e4f04e 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -16,8 +16,8 @@ $volume = $scriptsDir/Volume.sh # see https://wiki.hyprland.org/Configuring/Binds/ for more # rofi launcher -bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi run,drun,filebrowser -bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi run,drun,filebrowser +bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser +bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 bind = $mainMod SHIFT, R, exec, hyprctl reload @@ -159,6 +159,7 @@ bind = $mainMod, comma, workspace, e-1 bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow + # Screenshot keybindings NOTE: #bind = , Print, exec, $screenshot --now bind = $mainMod, Print, exec, $screenshot --now diff --git a/config/hypr/configs/LaptopDisplay.conf b/config/hypr/configs/LaptopDisplay.conf new file mode 100644 index 00000000..4aa82579 --- /dev/null +++ b/config/hypr/configs/LaptopDisplay.conf @@ -0,0 +1 @@ +monitor = eDP-1, preferred, auto, 1 diff --git a/config/hypr/configs/Laptops.conf b/config/hypr/configs/Laptops.conf index 0b274336..8d597b00 100644 --- a/config/hypr/configs/Laptops.conf +++ b/config/hypr/configs/Laptops.conf @@ -2,6 +2,7 @@ # Setting variables # This configs are mostly for laptops. This is addemdum to Keybinds.conf +$configs = $HOME/.config/hypr/configs $mainMod = SUPER $scriptsDir = $HOME/.config/hypr/scripts @@ -22,13 +23,13 @@ bind = , xf86MonBrightnessDown, exec, $backlight --dec #FN+F7 bind = , xf86MonBrightnessUp, exec, $backlight --inc #FN+F8 bind = , xf86TouchpadToggle, exec, $touchpad #FN+10 disable touchpad -# triggered when external monitor is connected and closing lid (For Laptop) -# bindl=,switch:Lid Switch, exec, $LidSwitch -# NOTE: (12-Nov-2023) This use to work before but seems below is ok now + # From WIKI This is to disable laptop monitor when lid is closed. # consult https://wiki.hyprland.org/hyprland-wiki/pages/Configuring/Binds/#switches -bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1" -bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" +# NOTE: Display for laptop are being generated into LaptopDisplay.conf +bindl = , switch:off:Lid Switch,exec,echo "monitor = eDP-1, preferred, auto, 1" > $configs/LaptopDisplay.conf +bindl = , switch:on:Lid Switch,exec,echo "monitor = eDP-1, disable" > $configs/LaptopDisplay.conf + # Screenshot keybindings for Asus G15 (no PrinSrc button) bind = $mainMod, F6, exec, $screenshot --now diff --git a/config/hypr/configs/Monitors.conf b/config/hypr/configs/Monitors.conf index b8ea829d..23c81782 100644 --- a/config/hypr/configs/Monitors.conf +++ b/config/hypr/configs/Monitors.conf @@ -11,7 +11,12 @@ xwayland { # Monitors monitor=,preferred,auto,1 -# my G15 Laptop +# NOTE: for laptop, suggest to edit as well Laptops.conf +# you will see there "bindl = , switch:off:Lid Switch....." +# edit monitor = eDP-1, preferred, auto, 1" to your preferred monitor display. +# Created this inorder for the monitor display to not wake up if not intended. +# See here: https://github.com/hyprwm/Hyprland/issues/4090 + #monitor = eDP-1, preferred, auto, 1 #monitor = eDP-1, 2560x1440@165, 0x0, 1 #own screen #monitor = DP-2, preferred, auto, 1 diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 65f0b83b..c09e6f75 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -5,6 +5,7 @@ source=$configs/ENVariables.conf source=$configs/Execs.conf source=$configs/Keybinds.conf source=$configs/Laptops.conf +source=$configs/LaptopDisplay.conf source=$configs/Monitors.conf source=$configs/WindowRules.conf source=$configs/Settings.conf -- cgit v1.2.3 From 70dbe4cda66f778d35133da90a8536011b7e7666 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 9 Dec 2023 14:23:07 +0900 Subject: added --- config/hypr/configs/Keybinds.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/hypr/configs/Keybinds.conf') diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 06e4f04e..7220a0b6 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -16,8 +16,8 @@ $volume = $scriptsDir/Volume.sh # see https://wiki.hyprland.org/Configuring/Binds/ for more # rofi launcher -bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser -bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser +bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi run,filebrowser,drun +bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi run,filebrowser,drun bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 bind = $mainMod SHIFT, R, exec, hyprctl reload -- cgit v1.2.3 From 1b1fe55c5c575e9b5e10bb20d691fcc4ef3927ea Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 10 Dec 2023 07:41:55 +0900 Subject: updated confs files --- config/hypr/configs/Keybinds.conf | 2 +- config/hypr/configs/LaptopDisplay.conf | 2 +- config/hypr/configs/Laptops.conf | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'config/hypr/configs/Keybinds.conf') diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 7220a0b6..3ce6f20c 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -66,7 +66,7 @@ bind = , xf86audioraisevolume, exec, $volume --inc #volume up bind = , xf86audiolowervolume, exec, $volume --dec #volume down bind = , xf86AudioMicMute, exec, $volume --toggle-mic #mute mic bind = , xf86audiomute, exec, $volume --toggle #FN+F1 -bind = , xf86Sleep, exec, $LockScreen #FN+F11 (sleep button) +bind = , xf86Sleep, exec, systemctl suspend #FN+F11 (sleep button) bind = , xf86Rfkill, exec, $AirplaneMode #Airplane mode FN+F12 # media controls using keyboards diff --git a/config/hypr/configs/LaptopDisplay.conf b/config/hypr/configs/LaptopDisplay.conf index c2626cb6..d50c9119 100644 --- a/config/hypr/configs/LaptopDisplay.conf +++ b/config/hypr/configs/LaptopDisplay.conf @@ -1,4 +1,4 @@ ## NOTE, THIS FILE IS BEING USED by disabling Laptop display monitor behaviour when closing lid. ## See notes on Laptops.conf -monitor = eDP-1, preferred, auto, 1 +#monitor = eDP-1, preferred, auto, 1 diff --git a/config/hypr/configs/Laptops.conf b/config/hypr/configs/Laptops.conf index a31e7551..24eef9af 100644 --- a/config/hypr/configs/Laptops.conf +++ b/config/hypr/configs/Laptops.conf @@ -34,11 +34,14 @@ bind = $mainMod ALT, F6, exec, $screenshot --in10 bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1" bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" + # Be very careful and read the notes when using this part # Before enabling this part, make sure to comment out (put # on both of the bindl = , switch.... above) # NOTE: Display for laptop are being generated into LaptopDisplay.conf -# NOTE: Make sure to OPEN your laptop display before shutting down your laptop or you will end up with a disabled Laptop display on your next startup +# CONS of doing this, is that there is no wallpaper. you need to set up your wallpaper again by (SUPER W) and set wallpaper. #bindl = , switch:off:Lid Switch,exec,echo "monitor = eDP-1, preferred, auto, 1" > $configs/LaptopDisplay.conf #bindl = , switch:on:Lid Switch,exec,echo "monitor = eDP-1, disable" > $configs/LaptopDisplay.conf +# for laptop-lid action (to erase the last entry) - Very important to uncomment this if you use above +# exec-once = echo "eDP-1, preferred, auto, 1" > $HOME/.config/hypr/configs/LaptopDisplay.conf -- cgit v1.2.3 From 8709271a3b0c84174571647e04ecc6ccc40414d0 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 10 Dec 2023 12:07:35 +0900 Subject: updated keybinds and updated laptop.conf --- config/hypr/configs/Keybinds.conf | 49 ++++++++++++++++++++------------------- config/hypr/configs/Laptops.conf | 28 +++++++++++++--------- 2 files changed, 42 insertions(+), 35 deletions(-) (limited to 'config/hypr/configs/Keybinds.conf') diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 3ce6f20c..f264cd7d 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -41,6 +41,7 @@ bind = CTRL ALT, W, exec, $scriptsDir/Wallpaper.sh bind = CTRL, W, exec, $scriptsDir/WaybarStyles.sh bind = $mainMod, W, exec, $scriptsDir/WallpaperSelect.sh bind = ALT, W, exec, $scriptsDir/WaybarLayout.sh +bind = ALT, K, exec, $scriptsDir/SwitchKeyboardLayout.sh bind = $mainMod CTRL, D, layoutmsg, removemaster bind = $mainMod, Escape, exec, hyprctl kill @@ -122,32 +123,32 @@ bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window and follow to workspace -bind = $mainMod CTRL, 1, movetoworkspace, 1 -bind = $mainMod CTRL, 2, movetoworkspace, 2 -bind = $mainMod CTRL, 3, movetoworkspace, 3 -bind = $mainMod CTRL, 4, movetoworkspace, 4 -bind = $mainMod CTRL, 5, movetoworkspace, 5 -bind = $mainMod CTRL, 6, movetoworkspace, 6 -bind = $mainMod CTRL, 7, movetoworkspace, 7 -bind = $mainMod CTRL, 8, movetoworkspace, 8 -bind = $mainMod CTRL, 9, movetoworkspace, 9 -bind = $mainMod CTRL, 0, movetoworkspace, 10 -bind = $mainMod CTRL, bracketleft, movetoworkspace, -1 -bind = $mainMod CTRL, bracketright, movetoworkspace, +1 +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 +bind = $mainMod SHIFT, bracketleft, movetoworkspace, -1 +bind = $mainMod SHIFT, bracketright, movetoworkspace, +1 # Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1 -bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2 -bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3 -bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4 -bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5 -bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6 -bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7 -bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8 -bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9 -bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10 -bind = $mainMod SHIFT, bracketleft, movetoworkspacesilent, -1 -bind = $mainMod SHIFT, bracketright, movetoworkspacesilent, +1 +bind = $mainMod CTRL, 1, movetoworkspacesilent, 1 +bind = $mainMod CTRL, 2, movetoworkspacesilent, 2 +bind = $mainMod CTRL, 3, movetoworkspacesilent, 3 +bind = $mainMod CTRL, 4, movetoworkspacesilent, 4 +bind = $mainMod CTRL, 5, movetoworkspacesilent, 5 +bind = $mainMod CTRL, 6, movetoworkspacesilent, 6 +bind = $mainMod CTRL, 7, movetoworkspacesilent, 7 +bind = $mainMod CTRL, 8, movetoworkspacesilent, 8 +bind = $mainMod CTRL, 9, movetoworkspacesilent, 9 +bind = $mainMod CTRL, 0, movetoworkspacesilent, 10 +bind = $mainMod CTRL, bracketleft, movetoworkspacesilent, -1 +bind = $mainMod CTRL, bracketright, movetoworkspacesilent, +1 # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 diff --git a/config/hypr/configs/Laptops.conf b/config/hypr/configs/Laptops.conf index 24eef9af..58cdccde 100644 --- a/config/hypr/configs/Laptops.conf +++ b/config/hypr/configs/Laptops.conf @@ -14,14 +14,14 @@ $LidSwitch = $scriptsDir/LidSwitch.sh $screenshot = $scriptsDir/ScreenShot.sh $touchpad = $scriptsDir/TouchPad.sh -bind = , xf86KbdBrightnessDown, exec, $kbacklight --dec #FN+F2 Keyboard brightness Down -bind = , xf86KbdBrightnessUp, exec, $kbacklight --inc #FN+F3 Keyboard brightnes up +bind = , xf86KbdBrightnessDown, exec, $kbacklight --dec #Keyboard brightness Down +bind = , xf86KbdBrightnessUp, exec, $kbacklight --inc #Keyboard brightness up bind = , xf86Launch1, exec, rog-control-center # ASUS Armory crate button bind = , xf86Launch3, exec, asusctl led-mode -n #FN+F4 Switch keyboard RGB profile bind = , xf86Launch4, exec, asusctl profile -n #FN+F5 change of fan profiles (Quite, Balance, Performance) -bind = , xf86MonBrightnessDown, exec, $backlight --dec #FN+F7 -bind = , xf86MonBrightnessUp, exec, $backlight --inc #FN+F8 -bind = , xf86TouchpadToggle, exec, $touchpad #FN+10 disable touchpad +bind = , xf86MonBrightnessDown, exec, $backlight --dec +bind = , xf86MonBrightnessUp, exec, $backlight --inc +bind = , xf86TouchpadToggle, exec, $touchpad #disable touchpad # Screenshot keybindings for Asus G15 (no PrinSrc button) bind = $mainMod, F6, exec, $screenshot --now @@ -29,19 +29,25 @@ bind = $mainMod SHIFT, F6, exec, $screenshot --area bind = $mainMod CTRL SHIFT, F6, exec, $screenshot --in5 bind = $mainMod ALT, F6, exec, $screenshot --in10 +# Below are useful when you are connecting your laptop in external display +# Suggest you edit below for your laptop display # From WIKI This is to disable laptop monitor when lid is closed. # consult https://wiki.hyprland.org/hyprland-wiki/pages/Configuring/Binds/#switches bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, auto, 1" bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" - -# Be very careful and read the notes when using this part -# Before enabling this part, make sure to comment out (put # on both of the bindl = , switch.... above) +############################################################################# +### WARNING! Using this method has some caveats!! USE THIS PART WITH SOME CAUTION! +# CONS of doing this, is that you need to set up your wallpaper (SUPER W) and choose wallpaper. +# CAVEATS! Sometimes the Main Laptop Monitor DOES NOT have display that it needs to re-connect your external monitor +# One work around is to ensure that before shutting down laptop, MAKE SURE your laptop lid is OPEN!! +# Make sure to comment (put # on the both the bindl = , switch ......) above # NOTE: Display for laptop are being generated into LaptopDisplay.conf -# CONS of doing this, is that there is no wallpaper. you need to set up your wallpaper again by (SUPER W) and set wallpaper. +# This part is to be use if you do not want your main laptop monitor to wake up during say wallpaper change etc #bindl = , switch:off:Lid Switch,exec,echo "monitor = eDP-1, preferred, auto, 1" > $configs/LaptopDisplay.conf #bindl = , switch:on:Lid Switch,exec,echo "monitor = eDP-1, disable" > $configs/LaptopDisplay.conf -# for laptop-lid action (to erase the last entry) - Very important to uncomment this if you use above -# exec-once = echo "eDP-1, preferred, auto, 1" > $HOME/.config/hypr/configs/LaptopDisplay.conf +# for laptop-lid action (to erase the last entry) +#exec-once = echo "eDP-1, preferred, auto, 1" > $HOME/.config/hypr/configs/LaptopDisplay.conf +############################################################################## -- cgit v1.2.3