Compare commits

...

3 Commits

Author SHA1 Message Date
Sravan Balaji
270618456b Touchpad Gestures and Natural Scroll
- Add Table of Contents to README
- Enable natural scroll with touchpad
- Enable workspace swipe touchpad gesture
2025-04-26 21:19:45 -04:00
Sravan Balaji
844d50a1f5 Update keybindings to be similar to dwl / vim 2025-04-26 20:34:42 -04:00
Sravan Balaji
047004ab65 Monitor configuration and fix menu command 2025-04-26 19:20:44 -04:00
2 changed files with 78 additions and 43 deletions

View File

@@ -4,6 +4,38 @@
#+STARTUP: showeverything
* Table of Contents :TOC_3:noexport:
- [[#welcome][Welcome]]
- [[#hyprland][Hyprland]]
- [[#monitors][Monitors]]
- [[#programs][Programs]]
- [[#autostart][Autostart]]
- [[#environment-variables][Environment Variables]]
- [[#permissions][Permissions]]
- [[#look-and-feel][Look and Feel]]
- [[#general][General]]
- [[#decoration][Decoration]]
- [[#animations][Animations]]
- [[#dwindle-layout][Dwindle Layout]]
- [[#master-layout][Master Layout]]
- [[#miscellaneous][Miscellaneous]]
- [[#input][Input]]
- [[#keyboard-and-mouse][Keyboard and Mouse]]
- [[#gestures][Gestures]]
- [[#device][Device]]
- [[#keybindings][Keybindings]]
- [[#mod-key][Mod Key]]
- [[#launch-programs][Launch Programs]]
- [[#move-focus][Move Focus]]
- [[#switch-workspaces][Switch Workspaces]]
- [[#move-windows][Move Windows]]
- [[#special-workspace][Special Workspace]]
- [[#workspace-scroll][Workspace Scroll]]
- [[#move--resize-windows][Move / Resize Windows]]
- [[#laptop-multimedia-keys][Laptop Multimedia Keys]]
- [[#media-controls][Media Controls]]
- [[#windows-and-workspaces][Windows and Workspaces]]
- [[#window-rules][Window Rules]]
- [[#smart-gaps][Smart Gaps]]
* Welcome
@@ -25,7 +57,11 @@ Run the block below with ~C-c C-c~ to tangle code blocks to config file.
- [[https://wiki.hyprland.org/Configuring/Monitors][Hyprland Wiki - Configuring - Monitors]]
#+BEGIN_SRC conf :tangle hyprland.conf
monitor=,preferred,auto,auto
monitor = desc:LG Display 0x0625, disable
monitor = desc:LG Electronics LG ULTRAGEAR 305MXUN80518, 2560x1440@144, 0x0, 1
monitor = desc:LG Electronics LG ULTRAGEAR 112NTTQC0153, 2560x1440@165, 2560x0, 1
monitor = desc:LG Electronics LG ULTRAGEAR 111NTUWM4574, 2560x1440@165, 5120x0, 1
monitor = , preferred, auto, 1
#+END_SRC
** Programs
@@ -35,7 +71,7 @@ monitor=,preferred,auto,auto
#+BEGIN_SRC conf :tangle hyprland.conf
$terminal = foot
$fileManager = thunar
$menu = rofi --show drun
$menu = rofi -show combi
#+END_SRC
** Autostart
@@ -60,7 +96,7 @@ bind = SUPER, E, exec, uwsm app -- pcmanfm-qt.desktop
- [[https://wiki.hyprland.org/Configuring/Environment-variables/][Hyprland Wiki - Configuring - Environment Variables]]
=uwsm= users should avoid placing environment variables here. Instead, use =~/.config/uwsm/env= for theming, xcursor, nvidia and toolkit variables, and =~.config/uwsm/env-hyprland= for =HYPR*= and =AQ_*= variables. The format is =export KEY\=VAL=.
=uwsm= users should avoid placing environment variables here. Instead, use =~/.config/uwsm/env= for theming, xcursor, nvidia and toolkit variables, and =~.config/uwsm/env-hyprland= for =HYPR*= and =AQ_*= variables. The format is =export KEY=VAL=.
#+BEGIN_EXAMPLE conf
export XCURSOR_SIZE=24
@@ -113,6 +149,7 @@ general {
*** Decoration
- [[https://wiki.hyprland.org/Configuring/Variables/#decoration][Hyprland Wiki - Configuring - Variables - Decoration]]
- [[https://wiki.hyprland.org/Configuring/Variables/#blur][Hyprland Wiki - Configuring - Variables - Blur]]
#+BEGIN_SRC conf :tangle hyprland.conf
decoration {
@@ -130,7 +167,6 @@ decoration {
color = rgba(1a1a1aee)
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 3
@@ -147,9 +183,7 @@ decoration {
#+BEGIN_SRC conf :tangle hyprland.conf
animations {
enabled = yes, please :)
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
enabled = true
bezier = easeOutQuint,0.23,1,0.32,1
bezier = easeInOutCubic,0.65,0.05,0.36,1
@@ -182,7 +216,7 @@ animations {
#+BEGIN_SRC conf :tangle hyprland.conf
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
pseudotile = true # Master switch for pseudotiling. See keybinding section to enable
preserve_split = true # You probably want this
}
#+END_SRC
@@ -190,6 +224,7 @@ dwindle {
*** Master Layout
- [[https://wiki.hyprland.org/Configuring/Master-Layout/][Hyprland Wiki - Configuring - Master Layout]]
#+BEGIN_SRC conf :tangle hyprland.conf
master {
new_status = master
@@ -226,7 +261,7 @@ input {
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
natural_scroll = true
}
}
#+END_SRC
@@ -237,7 +272,7 @@ input {
#+BEGIN_SRC conf :tangle hyprland.conf
gestures {
workspace_swipe = false
workspace_swipe = true
}
#+END_SRC
@@ -259,7 +294,6 @@ device {
*** Mod Key
#+BEGIN_SRC conf :tangle hyprland.conf
$mainMod = SUPER # Sets "Windows" key as main modifier
#+END_SRC
@@ -267,25 +301,25 @@ $mainMod = SUPER # Sets "Windows" key as main modifier
*** Launch Programs
#+BEGIN_SRC conf :tangle hyprland.conf
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod SHIFT, Return, exec, $terminal
bind = $mainMod SHIFT, C, killactive,
bind = $mainMod SHIFT, Q, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, F, togglefloating,
bind = $mainMod, P, exec, $menu
bind = $mainMod, D, pseudo, # dwindle
bind = $mainMod, S, togglesplit, # dwindle
#+END_SRC
*** Move Focus
Move focus with mainMod + arrow keys
Move focus with mainMod + vim keys
#+BEGIN_SRC conf :tangle hyprland.conf
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d
#+END_SRC
*** Switch Workspaces

View File

@@ -1,8 +1,12 @@
monitor=,preferred,auto,auto
monitor = desc:LG Display 0x0625, disable
monitor = desc:LG Electronics LG ULTRAGEAR 305MXUN80518, 2560x1440@144, 0x0, 1
monitor = desc:LG Electronics LG ULTRAGEAR 112NTTQC0153, 2560x1440@165, 2560x0, 1
monitor = desc:LG Electronics LG ULTRAGEAR 111NTUWM4574, 2560x1440@165, 5120x0, 1
monitor = , preferred, auto, 1
$terminal = foot
$fileManager = thunar
$menu = rofi --show drun
$menu = rofi -show combi
general {
gaps_in = 5
@@ -38,7 +42,6 @@ decoration {
color = rgba(1a1a1aee)
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 3
@@ -49,9 +52,7 @@ decoration {
}
animations {
enabled = yes, please :)
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
enabled = true
bezier = easeOutQuint,0.23,1,0.32,1
bezier = easeInOutCubic,0.65,0.05,0.36,1
@@ -78,7 +79,7 @@ animations {
}
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
pseudotile = true # Master switch for pseudotiling. See keybinding section to enable
preserve_split = true # You probably want this
}
@@ -103,29 +104,29 @@ input {
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
natural_scroll = true
}
}
gestures {
workspace_swipe = false
workspace_swipe = true
}
$mainMod = SUPER # Sets "Windows" key as main modifier
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod SHIFT, Return, exec, $terminal
bind = $mainMod SHIFT, C, killactive,
bind = $mainMod SHIFT, Q, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, F, togglefloating,
bind = $mainMod, P, exec, $menu
bind = $mainMod, D, pseudo, # dwindle
bind = $mainMod, S, togglesplit, # dwindle
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2