personal dotfiles: my Hyprland config
-rw-r--r--.config/hypr/hyprland.conf44
-rw-r--r--.config/swaync/config.json4
-rw-r--r--.config/sys64/menu/config.conf17
-rwxr-xr-x.local/bin/switch.sh8
4 files changed, 50 insertions, 23 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index 26ae7d3..ea559cc 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -2,16 +2,28 @@
monitor=,preferred,auto,auto
monitor=DSI-1,preferred,auto,2.66666
+misc:disable_hyprland_qtutils_check = true
+
+
+render {
+ explicit_sync = 0
+ explicit_sync_kms = 0
+ direct_scanout = false
+}
+# gnome 47 vulkan segfaults
+env = GSK_RENDERER,ngl
+
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = swaybg -i ~/Pictures/background.jpg -m center
-exec-once = waybar
-exec-once = mako
-# config mako notifications with switch
+exec-once = sleep 2 && waybar
+exec-once = swaync
+# config ~~mako~~ swaync notifications with switch
exec-once = switch.sh
+exec-once = sysshell
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
@@ -27,7 +39,8 @@ $fileManager = dev.tchx84.Portfolio
$dmenu = bemenu --scrollbar autohide -s -n -w -c -l12 -M 40 -H 20 #--cb 22222288 --cf bbbbbb --tb 005577 --tf eeeeee --fb 22222288 --ff bbbbbb --nb 22222288 --af bbbbbb --ab 22222288 --nf bbbbbb --hb 005577 --hf eeeeee --scb 005577 --scf eeeeee --fbb eeeeee --fbf 22222288
#$menu = rofi -show drun
#$menu = exec $(j4-dmenu-desktop --no-generic --dmenu="$dmenu" --term="$terminal" --no-exec |sed 's/ -e/ --/g')
-$menu = nwggrid
+# $menu = nwggrid -s 70
+$menu = pkill -10 sysshell
$keyboard = wvkbd-mobintl
$keyboard_args = -l simple,specialpad -H 160 -O --bg 22222288 | swipeB
# starting the keyboard is bad because of a wvkbd bug where it burns CPU?
@@ -86,11 +99,6 @@ decoration {
size = 3
passes = 1
}
-
- drop_shadow = yes
- shadow_range = 4
- shadow_render_power = 3
- col.shadow = rgba(1a1a1aee)
}
animations {
@@ -116,7 +124,6 @@ dwindle {
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
- new_is_master = true
}
gestures {
@@ -136,13 +143,15 @@ misc {
force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
}
-# Example windowrule v1
-# windowrule = float, ^(kitty)$
-# Example windowrule v2
-# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
-# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
-# windowrulev2 = nomaximizerequest, class:.* # You'll probably like this.
+# Swaync Blur
+layerrule = blur, swaync-control-center
+layerrule = blur, swaync-notification-window
+
+layerrule = ignorezero, swaync-control-center
+layerrule = ignorezero, swaync-notification-window
+layerrule = ignorealpha 0.5, swaync-control-center
+layerrule = ignorealpha 0.5, swaync-notification-window
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
@@ -202,7 +211,8 @@ bindm = $mainMod, mouse:273, resizewindow
bindi = , XF86AudioRaiseVolume, exec, $menu
# need a lock screen to avoid triggering this when screen is off.
#bindi = , XF86AudioRaiseVolume, exec, hyprctl dispatch submap menu; $menu; hyprctl dispatch submap reset
-bindi = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f wvkbd-mobintl & pkill -SIGRTMIN -f suggpicker
+bindi = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f suggpicker
+bindi = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f wvkbd-mobintl
# if someone killed the keyboard, restart it
bindi =, XF86AudioLowerVolume, execr, pgrep $keyboard || $keyboard $keyboard_args
diff --git a/.config/swaync/config.json b/.config/swaync/config.json
index df0bddf..5bebb40 100644
--- a/.config/swaync/config.json
+++ b/.config/swaync/config.json
@@ -27,11 +27,11 @@
},
"scripts": {
"new-im": {
- "exec": "sh -c '[ ! -f /home/user/.config/sxmo/.novibrate ] && sxmo_vibrate 400 2500; [ ! -f ~/.config/sxmo/.noring ] && mpv --volume=50 --really-quiet /usr/share/sounds/freedesktop/stereo/message-new-instant.oga'",
+ "exec": "sh -c '[ ! -f /home/user/.config/sxmo/.novibrate ] && sxmo_vibrate 400 2500; [ ! -f ~/.config/sxmo/.noring ] && mpv --volume=50 --really-quiet /usr/share/sounds/freedesktop/stereo/message-new-instant.oga || exit 0'",
"sound-name": "message-new-instant"
},
"incoming-call": {
- "exec": "sh -c '[ ! -f /home/user/.config/sxmo/.novibrate ] && sxmo_vibrate 400 2500; [ ! -f ~/.config/sxmo/.noring ] && mpv --volume=50 --really-quiet --loop=2 /usr/share/sounds/freedesktop/stereo/phone-incoming-call.oga'",
+ "exec": "sh -c '[ ! -f /home/user/.config/sxmo/.novibrate ] && sxmo_vibrate 400 2500; [ ! -f ~/.config/sxmo/.noring ] && mpv --volume=50 --really-quiet --loop=2 /usr/share/sounds/freedesktop/stereo/phone-incoming-call.oga' || exit 0",
"sound-name": "phone-incoming-call"
}
}
diff --git a/.config/sys64/menu/config.conf b/.config/sys64/menu/config.conf
new file mode 100644
index 0000000..adfa6b3
--- /dev/null
+++ b/.config/sys64/menu/config.conf
@@ -0,0 +1,17 @@
+[main]
+start-hidden=true
+searchbar=true
+icon-size=64
+dock-icon-size=64
+app-margins=-10
+name-under-icon=true
+scroll-bars=false
+name-length=10
+items-per-row=4
+width=300
+height=600
+monitor=0
+layer-shell=true
+dock-items=
+anchors=top bottom left right
+animation-duration=250
diff --git a/.local/bin/switch.sh b/.local/bin/switch.sh
index 89b832a..545d1fb 100755
--- a/.local/bin/switch.sh
+++ b/.local/bin/switch.sh
@@ -3,20 +3,20 @@
#Misc script for oneplus 6 until sway supports this device
noise() {
rm -f "$XDG_CONFIG_HOME"/sxmo/.noring
- notify-send -t 1000 -a switch noise
+ notify-send -e -t 1000 -a switch noise
}
rumble() {
rm -f "$XDG_CONFIG_HOME"/sxmo/.novibrate
touch "$XDG_CONFIG_HOME"/sxmo/.noring
sxmo_vibrate 50 15000
- notify-send -t 1000 -a switch rumble
+ notify-send -e -t 1000 -a switch rumble
}
silent() {
touch "$XDG_CONFIG_HOME"/sxmo/.noring
touch "$XDG_CONFIG_HOME"/sxmo/.novibrate
- notify-send -t 1000 -a switch silent
+ notify-send -e -t 1000 -a switch silent
}
-evtest /dev/input/event1 |stdbuf -o L grep -i -o 'Value *\d' | while read -r line; do
+evtest /dev/input/by-path/platform-alert-slider-event |stdbuf -o L grep -i -o 'Value *\d' | while read -r line; do
if echo "$line" | grep -q '0'; then
noise
elif echo "$line" | grep -q '1'; then