summaryrefslogtreecommitdiff
path: root/hypr
diff options
context:
space:
mode:
Diffstat (limited to 'hypr')
-rwxr-xr-xhypr/hypridle.conf16
-rwxr-xr-xhypr/hyprland.conf220
-rwxr-xr-xhypr/hyprlock.conf50
-rwxr-xr-xhypr/hyprpaper.conf2
-rwxr-xr-xhypr/monitors.conf5
-rwxr-xr-xhypr/screenshotwayland.sh21
6 files changed, 314 insertions, 0 deletions
diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf
new file mode 100755
index 0000000..197f65f
--- /dev/null
+++ b/hypr/hypridle.conf
@@ -0,0 +1,16 @@
+general {
+ ignore_dbus_inhibit=false
+ lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
+ before_sleep_cmd = loginctl lock-session # lock before suspend.
+ after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
+}
+
+listener {
+ timeout=300
+ on-timeout=hyprlock
+}
+
+listener {
+ timeout=800
+ on-timeout=systemctl suspend
+}
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
new file mode 100755
index 0000000..1a68a9d
--- /dev/null
+++ b/hypr/hyprland.conf
@@ -0,0 +1,220 @@
+monitor=,preferred,auto,auto
+
+input {
+ kb_layout = us
+ kb_options = caps:escape
+}
+
+#################
+### AUTOSTART ###
+################
+
+exec-once = nm-applet &
+exec-once = systemctl --user start hyprpolkitagent
+exec-once = dunst &
+exec-once = mpd &
+exec-once = flameshot &
+exec-once = mpd-mpris &
+exec-once = mpd-notification &
+exec-once = waybar
+exec-once = hypridle
+exec-once = playerctl daemon &
+exec-once = xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
+exec-once = xinput set-prop 10 "libinput Natural Scrolling Enabled" 1
+exec-once = swww-daemon &
+exec-once = swww img /home/anand/dots/walls/wallpaper.png
+exec-once = copyq &
+exec-once = xrdb ~/.Xresources &
+
+#############################
+### ENVIRONMENT VARIABLES ###
+#############################
+
+env = XCURSOR_SIZE,24
+env = HYPRCURSOR_SIZE,24
+
+#####################
+### LOOK AND FEEL ###
+#####################
+
+general {
+ gaps_in = 2
+ gaps_out = 2
+ border_size = 1
+ col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
+ col.inactive_border = rgba(595959aa)
+ resize_on_border = false
+ allow_tearing = false
+ layout = master
+}
+
+dwindle {
+ force_split=2
+}
+
+decoration {
+ rounding = 10
+ active_opacity = 1.0
+ inactive_opacity = 0.8
+ blur {
+ enabled = false
+ }
+}
+
+animations {
+ enabled = true
+ animation = windows, 1, 3, default
+ animation = windowsOut, 1, 3, default, popin 80%
+ animation = border, 1, 3, default
+ animation = borderangle, 1, 3, default
+ animation = fade, 1, 3, default
+ animation = workspaces, 1, 3, default
+}
+
+master {
+ new_status = inherit
+}
+
+misc {
+ force_default_wallpaper = 0
+ disable_hyprland_logo = true
+}
+
+
+#############
+### INPUT ###
+#############
+
+input {
+ kb_layout = us
+ kb_variant =
+ kb_model =
+ # kb_options = caps:swapescape
+ follow_mouse = 0
+ sensitivity = -0.1
+ touchpad {
+ natural_scroll = true
+ middle_button_emulation = true
+ tap-and-drag = true
+ tap-to-click = true
+ drag_lock = true
+ disable_while_typing = true
+ }
+ # Turning this on fucks with the sensitivity, no clue why
+ # force_no_accel = true
+}
+
+gestures {
+ workspace_swipe_touch = true
+}
+
+device {
+ name = synps/2-synaptics-touchpad
+ sensitivity = 0
+}
+
+
+###################
+### KEYBINDINGS ###
+###################
+
+$mainMod = SUPER # Sets "Windows" key as main modifier
+$terminal = wezterm
+$fileManager = thunar
+$textEditor = $terminal nvim
+$menu = rofi -show drun
+$browser = firefox
+
+bind = $mainMod, Return, exec, $terminal
+bind = $mainMod, Q, killactive,
+bind = $mainMod, E, exec, $fileManager
+bind = $mainMod SHIFT, E, exit
+bind = $mainMod, A, exec, $textEditor
+bind = $mainMod, T, togglefloating,
+bind = $mainMod, SPACE, exec, $menu
+bind = $mainMod, B, exec, $browser
+bind = $mainMod, M, fullscreen, 1
+bind = $mainMod SHIFT, M, fullscreen, 0
+bind = $mainMod, P, exec, passmenu
+bind = $mainMod, period, exec, rofi -show emoji
+bind = $mainMod SHIFT, S, exec, .config/hypr/screenshotwayland.sh
+bind = $mainMod, V, exec, copyq toggle
+bind = $mainMod SHIFT, P, exec, playerctl play-pause
+
+bind = $mainMod SHIFT, left, movewindow, l
+bind = $mainMod SHIFT, right, movewindow, r
+bind = $mainMod SHIFT, up, movewindow, u
+bind = $mainMod SHIFT, down, movewindow, d
+
+bind = $mainMod SHIFT, H, movewindow, l
+bind = $mainMod SHIFT, L, movewindow, r
+bind = $mainMod SHIFT, K, movewindow, u
+bind = $mainMod SHIFT, J, movewindow, d
+
+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
+bind = $mainMod, 3, workspace, 3
+bind = $mainMod, 4, workspace, 4
+bind = $mainMod, 5, workspace, 5
+bind = $mainMod, 6, workspace, 6
+bind = $mainMod, 7, workspace, 7
+bind = $mainMod, 8, workspace, 8
+bind = $mainMod, 9, workspace, 9
+bind = $mainMod, 0, workspace, 10
+
+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
+
+# make window wider / narrower
+bind = SUPER CTRL, L, resizeactive, 20 0
+bind = SUPER CTRL, H, resizeactive, -20 0
+
+# make window taller / shorter
+bind = SUPER CTRL, K, resizeactive, 0 -20
+bind = SUPER CTRL, J, resizeactive, 0 20
+
+bindm = $mainMod, mouse:272, movewindow
+bindm = $mainMod, mouse:273, resizewindow
+
+# Laptop multimedia keys for volume and LCD brightness
+bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
+bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
+bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
+bindel = ,XF86MonBrightnessUp, exec, brillo -qA 5
+bindel = ,XF86MonBrightnessDown, exec, brillo -qU 5
+
+##############################
+### WINDOWS AND WORKSPACES ###
+##############################
+
+windowrulev2 = float,class:com.github.hluk.copyq
+
+cursor {
+ sync_gsettings_theme = false
+ enable_hyprcursor = true
+ zoom_factor = 1
+}
+
+xwayland {
+ force_zero_scaling = true
+ use_nearest_neighbor = true
+}
diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf
new file mode 100755
index 0000000..a10c629
--- /dev/null
+++ b/hypr/hyprlock.conf
@@ -0,0 +1,50 @@
+background {
+ monitor=
+ path= $HOME/dots/walls/lock.jpeg
+}
+
+label {
+ monitor =
+ text = <span foreground='##000000'>Hi there, $USER</span>
+ color = rgba(0.0, 0.0, 0.0, 1.0)
+ font_size = 25
+ font_family = Iosevka NFM
+
+ position = 0, 80
+ halign = center
+ valign = center
+}
+
+label {
+ monitor =
+ text = cmd[update:1000] echo "<span foreground='##000000'>$(date)</span>"
+ color = rgba(0.0, 0.0, 0.0, 1.0)
+ font_size = 25
+ font_family = Iosevka NFM
+ position = 0,120
+ halign = center
+ valign = center
+}
+
+input-field {
+ monitor=
+ size=20%,5%
+ outine-thickness=1
+ dots_size=0.1
+ dots_spacing=0.5
+ fade_on_empty=true
+ hide_input=false
+ fade_timeout=1000
+}
+
+
+label {
+ monitor =
+ text = cmd[update:1000] echo "<span foreground='##000000'>$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage;)</span>"
+ color = rgba(0.0, 0.0, 0.0, 1.0)
+ font_size = 25
+ font_family = Iosevka NFM
+ position = 0,-120
+ halign = center
+ valign = center
+}
diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf
new file mode 100755
index 0000000..a928b80
--- /dev/null
+++ b/hypr/hyprpaper.conf
@@ -0,0 +1,2 @@
+preload=/home/anand/Pictures/wallpapers/trueWallPaper.png
+wallpaper= ,/home/anand/Pictures/wallpapers/23_XZr6FXT.jpeg
diff --git a/hypr/monitors.conf b/hypr/monitors.conf
new file mode 100755
index 0000000..3701bc0
--- /dev/null
+++ b/hypr/monitors.conf
@@ -0,0 +1,5 @@
+# Generated by nwg-displays on 2025-09-25 at 18:45:22. Do not edit manually.
+
+monitor=eDP-1,1366x768@60.14,0x0,1.0
+monitor=eDP-1,disable
+monitor=DP-2,1920x1080@60.0,1935x768,1.0
diff --git a/hypr/screenshotwayland.sh b/hypr/screenshotwayland.sh
new file mode 100755
index 0000000..73e2c6e
--- /dev/null
+++ b/hypr/screenshotwayland.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+input_type=$(printf "region\nwindow" | rofi -dmenu)
+case "$input_type" in
+ "window")
+ hyprshot -m window --clipboard-only
+ ;;
+ *)
+ hyprshot -m region --clipboard-only
+ ;;
+esac
+
+choice=$(printf "save to clipboard\nsave to file" | rofi -dmenu)
+
+case "$choice" in
+ "save to file")
+ wl-paste > ~/Pictures/Screenshots/screenshot-$(date +%F_%H-%M-%S).png
+ ;;
+ *)
+ exit 0
+ ;;
+esac