summaryrefslogtreecommitdiff
path: root/.config/hypr/hyprland.conf
diff options
context:
space:
mode:
Diffstat (limited to '.config/hypr/hyprland.conf')
-rw-r--r--.config/hypr/hyprland.conf44
1 files changed, 34 insertions, 10 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index 70f0539..8d20dbf 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -26,6 +26,8 @@ monitor=HDMI-A-1,1920x1080@144,0x0,1.00,transform,0,mirror,eDP-1
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
+# exec-once = $terminal
+# exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox
exec-once = waybar & dunst & wpaperd & suspend.sh & nextcloud & nm-applet & blueman-applet & notion-app & memospot
#exec-once = dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY
@@ -40,7 +42,7 @@ exec-once = xhost +SI:localuser:root
### ENVIRONMENT VARIABLES ###
#############################
-# See https://wiki.hyprland.org/Configuring/Environment-variables/
+# See https://wiki.hypr.land/Configuring/Environment-variables/
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
@@ -50,6 +52,21 @@ env = XDG_SESSION_TYPE,wayland
#env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
+###################
+### PERMISSIONS ###
+###################
+
+# See https://wiki.hypr.land/Configuring/Permissions/
+# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
+# for security reasons
+
+# ecosystem {
+# enforce_permissions = 1
+# }
+
+# permission = /usr/(bin|local/bin)/grim, screencopy, allow
+# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
+# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
#####################
### LOOK AND FEEL ###
#####################
@@ -184,13 +201,14 @@ input {
}
}
-# https://wiki.hyprland.org/Configuring/Variables/#gestures
+# See https://wiki.hypr.land/Configuring/Gestures
gestures {
- workspace_swipe = on
- workspace_swipe_fingers = 3
- workspace_swipe_distance = 500
- workspace_swipe_invert = true
- workspace_swipe_min_speed_to_force = 40
+ # workspace_swipe = on
+ # workspace_swipe_fingers = 3
+ # workspace_swipe_distance = 500
+ # workspace_swipe_invert = true
+ # workspace_swipe_min_speed_to_force = 40
+ gesture = 3, horizontal, workspace
}
binds {
workspace_back_and_forth = true
@@ -261,6 +279,7 @@ bind = $MOD ALT, M, exec, toggle-touchpad-hypr
bind = $MOD, Q, exec, brave
bind = $MOD CTRL, Q, exec, brave --incognito
bind = $MOD ALT, Q, exec, brave --tor
+bind = $MOD SHIFT, Z, exec, zen-browser
# Launch wa
bind = $MOD SHIFT, W, exec, whatsapp-nativefier --no-sandbox
#Launch emacs
@@ -307,7 +326,10 @@ bind = $MOD , L, exec, swaylock
bind = ,Print, exec, IMG=pic-full-"$(date +%y-%m-%d--%H-%M-%S)".png && grim - | wl-copy && wl-paste > "$GRIM_DEFAULT_DIR/""$IMG" && dunstify "Screenshot of the whole screen taken" "$IMG" -t 1000 # screenshot of whole screen
bind = $MOD SHIFT,Print, exec, IMG=pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png && grim -g "$(slurp)" - | wl-copy && wl-paste > "$GRIM_DEFAULT_DIR/""$IMG" && dunstify "Screenshot of the region taken" "$IMG" -t 1000 # screenshot of a region
bind = CTRL,Print, exec, IMG=pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png && grim -g "$(slurp)" - | wl-copy && wl-paste > "$GRIM_DEFAULT_DIR/""$IMG" && dunstify "Screenshot of the region taken" "$IMG" -t 1000 # screenshot of a region
-bind = ALT ,Print, exec, flameshot gui
+bind = ALT,Print, exec, flameshot gui
+bind = ,F10, exec, IMG=pic-full-"$(date +%y-%m-%d--%H-%M-%S)".png && grim - | wl-copy && wl-paste > "$GRIM_DEFAULT_DIR/""$IMG" && dunstify "Screenshot of the whole screen taken" "$IMG" -t 1000 # screenshot of whole screen
+bind = ,F11, exec, IMG=pic-sel-"$(date +%y-%m-%d--%H-%M-%S)".png && grim -g "$(slurp)" - | wl-copy && wl-paste > "$GRIM_DEFAULT_DIR/""$IMG" && dunstify "Screenshot of the region taken" "$IMG" -t 1000 # screenshot of a region
+bind = ,F12, exec, flameshot gui
#otherkeyb
bind = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && [[ "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep MUTE)" ]] && dunstify "Mute" "Volume set to 0%" -i volume-xmark -t 1000 -r 1234
@@ -327,6 +349,8 @@ bind = , XF86AudioPlay, exec, playerctl -p spotify play-pause
bind = , XF86AudioPrev, exec, playerctl -p spotify previous
bind = , XF86AudioNext, exec, playerctl -p spotify next
+#bluetooth applet
+bind = $MOD, F9, exec, blueman-manager
#master-stack layout
bind = $MOD, Return,layoutmsg, swapwithmaster
@@ -376,8 +400,8 @@ bind = ALT SHIFT, tab, workspace, e-1
bind = $MOD, mouse_down, workspace, e+1
bind = $MOD, mouse_up, workspace, e-1
# Scroll through existing workspaces with MOD + mouse sidebuttons
-bind = $MOD, mouse:276, workspace, e+1
-bind = $MOD, mouse:275, workspace, e-1
+bind = , mouse:276, workspace, e+1
+bind = , mouse:275, workspace, e-1
# Move/resize windows with MOD + LMB/RMB and dragging
bindm = $MOD, mouse:272, movewindow