feat!: switch to NixOS
This commit is contained in:
parent
b91f59cf91
commit
e8ec42676b
41 changed files with 81 additions and 365 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
||||||
cef_user_data/
|
cef_user_data/
|
||||||
|
gtk-3.0/bookmarks
|
||||||
|
Kvantum/**/
|
||||||
chromium/
|
chromium/
|
||||||
Electron/
|
Electron/
|
||||||
GIMP/
|
GIMP/
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Kvantum, qt5ct and my environment are for theming QT apps the same way I do with GTK apps with nwg-look
|
Kvantum, qt5ct and my environment are for theming QT apps the same way I do with GTK apps with lxappearance (i have to run it with the X11 backend)
|
||||||
|
|
||||||
I use lisgd and some scripts to make my own tablet mode since my laptop's switch is not yet in the kernel
|
I use some scripts to make my own tablet mode since my laptop's switch is not yet in the kernel
|
||||||
|
|
1
TODO.md
1
TODO.md
|
@ -1 +0,0 @@
|
||||||
find credits for wofi
|
|
|
@ -1,4 +0,0 @@
|
||||||
--ozone-platform-hint=auto
|
|
||||||
--enable-webrtc-pipewire-capturer
|
|
||||||
--enable-features=UseOzonePlatform
|
|
||||||
--ozone-platform=wayland
|
|
|
@ -1,11 +0,0 @@
|
||||||
#
|
|
||||||
# This file is parsed by pam_env module
|
|
||||||
#
|
|
||||||
# Syntax: simple "KEY=VAL" pairs on separate lines
|
|
||||||
#
|
|
||||||
EDITOR=nano
|
|
||||||
#GTK_THEME=Adwaita:dark
|
|
||||||
#GTK_THEME=Lavanda-Dark
|
|
||||||
QT_QPA_PLATFORMTHEME=qt5ct
|
|
||||||
QT_STYLE_OVERRIDE=kvantum
|
|
||||||
QT_FONT_DPI=125
|
|
|
@ -115,7 +115,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.iconbox .icon {
|
.iconbox .icon {
|
||||||
font-family: Iosevka Nerd Font;
|
font-family: MesloLGS NF;
|
||||||
padding: 7px 14px 7px 14px;
|
padding: 7px 14px 7px 14px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
background-color: $bg;
|
background-color: $bg;
|
||||||
color: $fg;
|
color: $fg;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
font-family: Iosevka Nerd Font;
|
font-family: MesloLGS NF;
|
||||||
|
/*font-family: Iosevka Nerd Font;*/
|
||||||
font-size: 70px;
|
font-size: 70px;
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
border: 5px solid $contrastbg;
|
border: 5px solid $contrastbg;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# @requires: brightnessctl
|
# @requires: brightnessctl
|
||||||
|
|
||||||
|
@ -46,5 +46,5 @@ if [[ $1 == "icon" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $1 == "set" ]]; then
|
if [[ $1 == "set" ]]; then
|
||||||
light -S $2
|
brightnessctl set $2%
|
||||||
fi
|
fi
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Store the output of the command in an array, keeping only lines with '*'
|
# Store the output of the command in an array, keeping only lines with '*'
|
||||||
readarray -t array <<< "$(eww windows | grep '^\*')"
|
readarray -t array <<< "$(eww windows | grep '^\*')"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
WINDOW="$1"
|
WINDOW="$1"
|
||||||
(
|
(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# thanks to kizu
|
# thanks to kizu
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
symbol() {
|
symbol() {
|
||||||
[ $(cat /sys/class/net/w*/operstate) = down ] && echo 睊 && exit
|
[ $(cat /sys/class/net/w*/operstate) = down ] && echo 睊 && exit
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
state () {
|
state () {
|
||||||
if [[ $(hyprctl layers | grep swaync-control-center) == "" ]]; then
|
if [[ $(hyprctl layers | grep swaync-control-center) == "" ]]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
WINDOW="$1"
|
WINDOW="$1"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# @requires: pactl
|
# @requires: pactl
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:stacking "overlay"
|
:stacking "overlay"
|
||||||
:exclusive "ignore"
|
:exclusive "ignore"
|
||||||
:geometry (geometry :x "78px"
|
:geometry (geometry :x "66px"
|
||||||
:y "8px"
|
:y "9px"
|
||||||
:width "0px"
|
:width "0px"
|
||||||
:height "0px"
|
:height "0px"
|
||||||
:anchor "top left"
|
:anchor "top left"
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:stacking "overlay"
|
:stacking "overlay"
|
||||||
:exclusive "ignore"
|
:exclusive "ignore"
|
||||||
:geometry (geometry :x "60px"
|
:geometry (geometry :x "50px"
|
||||||
:y "10px"
|
:y "10px"
|
||||||
:width "0px"
|
:width "0px"
|
||||||
:height "0px"
|
:height "0px"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-theme-name=Lavanda-Dark
|
gtk-theme-name=Lavanda-Dark
|
||||||
gtk-icon-theme-name=Flatery-Dark
|
gtk-icon-theme-name=Adwaita
|
||||||
gtk-font-name=Cantarell 11
|
gtk-font-name=Cantarell 11
|
||||||
gtk-cursor-theme-name=Adwaita
|
gtk-cursor-theme-name=Adwaita
|
||||||
gtk-cursor-theme-size=24
|
gtk-cursor-theme-size=24
|
||||||
|
@ -12,6 +12,6 @@ gtk-enable-event-sounds=1
|
||||||
gtk-enable-input-feedback-sounds=0
|
gtk-enable-input-feedback-sounds=0
|
||||||
gtk-xft-antialias=1
|
gtk-xft-antialias=1
|
||||||
gtk-xft-hinting=1
|
gtk-xft-hinting=1
|
||||||
gtk-xft-hintstyle=hintslight
|
gtk-xft-hintstyle=hintmedium
|
||||||
gtk-xft-rgba=rgb
|
gtk-xft-rgba=rgb
|
||||||
gtk-application-prefer-dark-theme=0
|
gtk-application-prefer-dark-theme=0
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
[main]
|
[main]
|
||||||
modules=powerbar-module.so;playerctl-module.so;userinfo-module.so
|
modules=/nix/var/nix/profiles/system/sw/lib/gtklock/powerbar-module.so;/nix/var/nix/profiles/system/sw/lib/gtklock/playerctl-module.so
|
||||||
|
|
||||||
|
#;/nix/var/nix/profiles/system/sw/lib/gtklock/userinfo-module.so
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
grim /tmp/image.png
|
grim /tmp/image.png
|
||||||
convert /tmp/image.png -channel RGBA -blur 0x8 /tmp/image.png
|
convert /tmp/image.png -channel RGBA -blur 0x8 /tmp/image.png
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
$HOME/.config/hypr/scripts/tablet/laptop-mode.sh &
|
$HOME/.config/hypr/scripts/tablet/laptop-mode.sh &
|
||||||
$HOME/.config/gtklock/scripts/blur.sh
|
$HOME/.config/gtklock/scripts/blur.sh
|
||||||
gtklock
|
gtklock
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
# Plugins
|
# Plugins
|
||||||
|
plugin = /nix/store/60x0zlg3fbq7nzz8249fxsb89pn541z8-hyprland-touch-gestures-0.3.0/lib/libtouch-gestures.so
|
||||||
|
|
||||||
|
plugin {
|
||||||
|
touch_gestures {
|
||||||
|
# default sensitivity is probably too low on tablet screens,
|
||||||
|
# I recommend turning it up to 4.0
|
||||||
|
sensitivity = 20.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=eDP-1,1920x1200@60,0x0,1
|
monitor=eDP-1,1920x1200@60,0x0,1
|
||||||
|
@ -12,16 +21,15 @@ $scripts = "$HOME/.config/hypr/scripts"
|
||||||
exec-once = bash -c "sleep 3; nm-applet"
|
exec-once = bash -c "sleep 3; nm-applet"
|
||||||
exec-once = bash -c "sleep 4; blueman-applet"
|
exec-once = bash -c "sleep 4; blueman-applet"
|
||||||
exec-once = bash -c "sleep 5; nextcloud --background"
|
exec-once = bash -c "sleep 5; nextcloud --background"
|
||||||
exec-once = bash -c "sleep 6; /opt/tutanota-desktop/tutanota-desktop -a"
|
exec-once = bash -c "sleep 6; tutanota-desktop -a"
|
||||||
exec-once = bash -c "sleep 7; galaxybudsclient /StartMinimized"
|
exec-once = bash -c "sleep 7; GalaxyBudsClient /StartMinimized"
|
||||||
|
|
||||||
#exec-once = $HOME/.local/share/hyprload/hyprload.sh
|
|
||||||
exec-once = eww daemon
|
exec-once = eww daemon
|
||||||
exec-once = eww open tablet-toggle
|
exec-once = eww open tablet-toggle
|
||||||
exec-once = eww open notif-panel
|
exec-once = eww open notif-panel
|
||||||
#exec-once = sudo input-emulator start touch --x-max 1920 --y-max 1200 --slots 4
|
#exec-once = sudo input-emulator start touch --x-max 1920 --y-max 1200 --slots 4
|
||||||
#exec = $HOME/.config/lisgd/config
|
#exec = $HOME/.config/lisgd/config
|
||||||
exec-once = libinput-gestures-setup start
|
exec-once = killall libinput-debug-events | libinput-gestures
|
||||||
|
|
||||||
exec-once = dbus-update-activation-environment --all
|
exec-once = dbus-update-activation-environment --all
|
||||||
exec-once = gnome-keyring-daemon --start --components=secrets
|
exec-once = gnome-keyring-daemon --start --components=secrets
|
||||||
|
@ -32,7 +40,7 @@ exec-once = $scripts/lose-focus.sh
|
||||||
|
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
exec-once = swaync
|
exec-once = swaync
|
||||||
exec-once = /usr/lib/polkit-kde-authentication-agent-1
|
exec-once = /nix/store/4cssj191kj5y7n738r2a90m0vplm83gr-polkit-kde-agent-1-5.27.5/libexec/polkit-kde-authentication-agent-1
|
||||||
|
|
||||||
exec-once = wl-paste --watch cliphist store
|
exec-once = wl-paste --watch cliphist store
|
||||||
|
|
||||||
|
@ -119,13 +127,13 @@ master {
|
||||||
new_is_master = true
|
new_is_master = true
|
||||||
}
|
}
|
||||||
|
|
||||||
#gestures {
|
gestures {
|
||||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||||
#workspace_swipe = yes
|
workspace_swipe = yes
|
||||||
#workspace_swipe_fingers = 3
|
workspace_swipe_fingers = 3
|
||||||
#workspace_swipe_cancel_ratio = 0.15
|
workspace_swipe_cancel_ratio = 0.15
|
||||||
#workspace_swipe_forever = yes
|
#workspace_swipe_forever = yes
|
||||||
#}
|
}
|
||||||
|
|
||||||
# Example windowrule v1
|
# Example windowrule v1
|
||||||
# windowrule = float, ^(kitty)$
|
# windowrule = float, ^(kitty)$
|
||||||
|
@ -146,13 +154,16 @@ windowrule = float,title:^(Open File)$
|
||||||
windowrule = pin,^(nm-tray)$
|
windowrule = pin,^(nm-tray)$
|
||||||
#windowrule = move cursor 0 -35,^(nm-tray)$
|
#windowrule = move cursor 0 -35,^(nm-tray)$
|
||||||
|
|
||||||
windowrule = float,^(blueman-manager)$
|
windowrule = float,^(.blueman-manager-wrapped)$
|
||||||
windowrule = move cursor 0 0,^(blueman-manager)$
|
windowrule = move cursor 0 0,^(.blueman-manager-wrapped)$
|
||||||
windowrule = size 400 581,^(blueman-manager)$
|
windowrule = size 400 581,^(.blueman-manager-wrapped)$
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
|
# Touchscreen stuff
|
||||||
|
#bind =, swipe:3:l, exec, $scripts/gestures.sh next
|
||||||
|
#bind =, swipe:3:r, exec, $scripts/gestures.sh prev
|
||||||
|
|
||||||
bind = $mainMod, V, exec, cliphist list | ~/.config/rofi/dmenu.sh | cliphist decode | wl-copy
|
bind = $mainMod, V, exec, cliphist list | ~/.config/rofi/dmenu.sh | cliphist decode | wl-copy
|
||||||
|
|
||||||
|
@ -219,3 +230,5 @@ bindr = CAPS, Caps_Lock, exec, swayosd --caps-lock
|
||||||
# Brightness control
|
# Brightness control
|
||||||
binde =, XF86MonBrightnessUp, exec, swayosd --brightness raise
|
binde =, XF86MonBrightnessUp, exec, swayosd --brightness raise
|
||||||
binde =, XF86MonBrightnessDown, exec, swayosd --brightness lower
|
binde =, XF86MonBrightnessDown, exec, swayosd --brightness lower
|
||||||
|
#binde =, XF86MonBrightnessUp, exec, brightnessctl set 5%+
|
||||||
|
#binde =, XF86MonBrightnessDown, exec, brightnessctl set 5%-
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
SIDE="$1"
|
|
||||||
TOUCH="$2"
|
|
||||||
workspaces=($(hyprctl workspaces -j | jq '.[] | .id'))
|
|
||||||
current_workspace=$(hyprctl monitors -j | jq '.[0].activeWorkspace.id')
|
|
||||||
|
|
||||||
echo $current_workspace
|
|
||||||
if [[ ${workspaces[-1]} == ${workspaces[0]} ]]; then
|
|
||||||
if [[ $current_workspace == "1" ]]; then
|
|
||||||
hyprctl dispatch workspace 2
|
|
||||||
|
|
||||||
elif [[ $SIDE == "prev" ]]; then
|
|
||||||
hyprctl dispatch workspace $[${workspaces[0]} - 1]
|
|
||||||
|
|
||||||
elif [[ $SIDE == "next" ]]; then
|
|
||||||
hyprctl dispatch workspace $[${workspaces[0]} + 1]
|
|
||||||
fi
|
|
||||||
|
|
||||||
elif [[ $SIDE == "prev" ]]; then
|
|
||||||
if [[ $current_workspace == "1" ]]; then
|
|
||||||
hyprctl dispatch workspace ${workspaces[-1]}
|
|
||||||
else
|
|
||||||
hyprctl dispatch workspace $[$current_workspace - 1]
|
|
||||||
fi
|
|
||||||
|
|
||||||
elif [[ $SIDE == "next" ]]; then
|
|
||||||
hyprctl dispatch workspace $[$current_workspace + 1]
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $TOUCH == "touch" ]]; then
|
|
||||||
sleep 0.2
|
|
||||||
sudo input-emulator touch tap 1280 720
|
|
||||||
fi
|
|
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
while killall -0 blueman-manager > /dev/null 2>&1
|
while killall -0 .blueman-manage > /dev/null 2>&1
|
||||||
do
|
do
|
||||||
if [[ $(bluetoothctl show | grep Powered | grep yes) ]]; then
|
if [[ $(bluetoothctl show | grep Powered | grep yes) ]]; then
|
||||||
if [[ $(hyprctl activewindow | grep blueman-manager) == "" && $(hyprctl clients | grep blueman-manager) != "" ]]; then
|
if [[ $(hyprctl activewindow | grep blueman-manager) == "" && $(hyprctl clients | grep blueman-manager) != "" ]]; then
|
||||||
killall blueman-manager
|
killall .blueman-manage
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
execute() {
|
|
||||||
echo "Rotating"
|
|
||||||
/home/matt/.config/lisgd/config &
|
|
||||||
lisgd_pid=$! # Save the PID of the lisgd process
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup() {
|
|
||||||
echo "Cleaning up..."
|
|
||||||
kill $lisgd_pid # Terminate the lisgd process
|
|
||||||
wait $lisgd_pid # Wait for the process to exit
|
|
||||||
}
|
|
||||||
|
|
||||||
# Register the cleanup function to be called on script exit
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
# Loop to listen to the command
|
|
||||||
while IFS='$\n' read -r line; do
|
|
||||||
rotation="$(echo $line | sed -En "s/^.*orientation changed: (.*)/\1/p")"
|
|
||||||
[[ ! -z $rotation ]] && execute
|
|
||||||
done < <(stdbuf -oL monitor-sensor)
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
eww update toggle-state=false
|
eww update toggle-state=false
|
||||||
/usr/bin/setsysmode laptop
|
/usr/bin/setsysmode laptop
|
||||||
|
|
||||||
|
@ -7,6 +7,4 @@ gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
|
||||||
brightnessctl -d tpacpi::kbd_backlight s 2
|
brightnessctl -d tpacpi::kbd_backlight s 2
|
||||||
|
|
||||||
killall iio-hyprland
|
killall iio-hyprland
|
||||||
#swaymsg output eDP-1 transform 0
|
killall evtest
|
||||||
$HOME/.config/lisgd/config
|
|
||||||
killall autorotate.sh
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]
|
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
eww update toggle-state=true
|
eww update toggle-state=true
|
||||||
setsysmode tablet
|
setsysmode tablet
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@ brightnessctl -d tpacpi::kbd_backlight s 0
|
||||||
|
|
||||||
iio-hyprland &
|
iio-hyprland &
|
||||||
|
|
||||||
$HOME/.config/hypr/scripts/tablet/autorotate.sh &
|
evtest --grab "/dev/input/by-path/platform-i8042-serio-0-event-kbd" &
|
||||||
killall autorotate.sh
|
evtest --grab "/dev/input/by-path/platform-i8042-serio-1-event-mouse" &
|
||||||
$HOME/.config/hypr/scripts/tablet/autorotate.sh &
|
evtest --grab "/dev/input/by-path/platform-AMDI0010:02-event-mouse" &
|
||||||
|
evtest --grab "/dev/input/by-path/platform-thinkpad_acpi-event" &
|
||||||
|
evtest --grab "/dev/video-bus" &
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) == true ]]; then
|
if [[ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) == true ]]; then
|
||||||
$HOME/.config/sway/scripts/tablet/laptop-mode.sh
|
$HOME/.config/sway/scripts/tablet/laptop-mode.sh
|
||||||
|
|
|
@ -1,202 +0,0 @@
|
||||||
# Configuration file for libinput-gestures.
|
|
||||||
# Mark Blakeney, Sep 2015
|
|
||||||
#
|
|
||||||
# The default configuration file exists at /etc/libinput-gestures.conf
|
|
||||||
# but a user can create a personal custom configuration file at
|
|
||||||
# ~/.config/libinput-gestures.conf.
|
|
||||||
#
|
|
||||||
# Lines starting with '#' and blank lines are ignored. Currently
|
|
||||||
# "gesture" and "device" configuration keywords are supported as
|
|
||||||
# described below. The keyword can optionally be appended with a ":" (to
|
|
||||||
# maintain compatibility with original format configuration files).
|
|
||||||
#
|
|
||||||
# Each gesture line has 3 [or 4] arguments separated by whitespace:
|
|
||||||
#
|
|
||||||
# action motion [finger_count] command
|
|
||||||
#
|
|
||||||
# where action and motion is either:
|
|
||||||
# swipe up
|
|
||||||
# swipe down
|
|
||||||
# swipe left
|
|
||||||
# swipe right
|
|
||||||
# swipe left_up
|
|
||||||
# swipe left_down
|
|
||||||
# swipe right_up
|
|
||||||
# swipe right_down
|
|
||||||
# pinch in
|
|
||||||
# pinch out
|
|
||||||
# pinch clockwise
|
|
||||||
# pinch anticlockwise
|
|
||||||
# hold on (hold gesture available since libinput 1.19)
|
|
||||||
#
|
|
||||||
# command is the remainder of the line and is any valid shell command +
|
|
||||||
# arguments. NOTE that the command is run directly and is not parsed by
|
|
||||||
# your shell. If you want shell parsing and substitutions etc then use a
|
|
||||||
# script as described in the CONFIGURATION section of the main README.
|
|
||||||
#
|
|
||||||
# finger_count is a single numeric digit and is optional (and is
|
|
||||||
# typically 3 or 4). If specified then the command is executed when
|
|
||||||
# exactly that number of fingers is used in the gesture. If not
|
|
||||||
# specified then the command is executed when that gesture is executed
|
|
||||||
# with any number of fingers. Gesture lines specified with finger_count
|
|
||||||
# have priority over the same gesture specified without any
|
|
||||||
# finger_count.
|
|
||||||
#
|
|
||||||
# Typically command will be _internal, or xdotool. See "man xdotool" for
|
|
||||||
# the many things you can action with that tool. Note that unfortunately
|
|
||||||
# xdotool does not work with native Wayland clients.
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# SWIPE GESTURES:
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# Note the default is an "internal" command that uses wmctrl to switch
|
|
||||||
# workspaces and, unlike xdotool, works on both Xorg and Wayland (via
|
|
||||||
# XWayland). It also can be configured for vertical and horizontal
|
|
||||||
# switching over tabular workspaces, as per the example below. You can
|
|
||||||
# also add "-w" to the internal command to allow wrapping workspaces.
|
|
||||||
# Ensure you install wmctrl if you use _internal.
|
|
||||||
|
|
||||||
# Move to next workspace (works for GNOME/KDE/etc on Wayland and Xorg)
|
|
||||||
#gesture swipe up _internal ws_up
|
|
||||||
gesture swipe left 3 /home/matt/.config/hypr/scripts/gestures.sh next
|
|
||||||
gesture swipe right 3 /home/matt/.config/hypr/scripts/gestures.sh prev
|
|
||||||
|
|
||||||
# NOTE ABOUT FINGER COUNT:
|
|
||||||
# The above command will configure this command for all fingers (i.e. 3
|
|
||||||
# for 4) but to configure it for 3 fingers only, change it to:
|
|
||||||
# gesture swipe up 3 _internal ws_up
|
|
||||||
# Then you can configure something else for 4 fingers or leave 4 fingers
|
|
||||||
# unconfigured. You can configure an explicit finger count like this for
|
|
||||||
# all example commands in this configuration file.
|
|
||||||
#
|
|
||||||
# gesture swipe up xdotool key super+Page_Down
|
|
||||||
|
|
||||||
# Move to prev workspace (works for GNOME/KDE/etc on Wayland and Xorg)
|
|
||||||
#gesture swipe down _internal ws_down
|
|
||||||
# gesture swipe down xdotool key super+Page_Up
|
|
||||||
|
|
||||||
# Browser go forward (works only for Xorg, and Xwayland clients)
|
|
||||||
#gesture swipe left xdotool key alt+Right
|
|
||||||
|
|
||||||
# Browser go back (works only for Xorg, and Xwayland clients)
|
|
||||||
#gesture swipe right xdotool key alt+Left
|
|
||||||
|
|
||||||
# Open new browser tag ("hold on" available since libinput 1.19)
|
|
||||||
# gesture hold on 4 xdotool key control+t
|
|
||||||
|
|
||||||
# NOTE: If you don't use "natural" scrolling direction for your touchpad
|
|
||||||
# then you may want to swap the above default left/right and up/down
|
|
||||||
# configurations.
|
|
||||||
|
|
||||||
# Optional extended swipe gestures, e.g. for browser tab navigation:
|
|
||||||
#
|
|
||||||
# Jump to next open browser tab
|
|
||||||
# gesture swipe right_up xdotool key control+Tab
|
|
||||||
#
|
|
||||||
# Jump to previous open browser tab
|
|
||||||
# gesture swipe left_up xdotool key control+shift+Tab
|
|
||||||
#
|
|
||||||
# Close current browser tab
|
|
||||||
# gesture swipe left_down xdotool key control+w
|
|
||||||
#
|
|
||||||
# Reopen and jump to last closed browser tab
|
|
||||||
# gesture swipe right_down xdotool key control+shift+t
|
|
||||||
|
|
||||||
# Example of 8 static workspaces, e.g. using KDE virtual-desktops,
|
|
||||||
# arranged in 2 rows of 4 columns across using swipe up/down/left/right
|
|
||||||
# to navigate in fixed planes. You can also add the "-w/--wrap" option
|
|
||||||
# to allow wrapping in any direction. You must configure your virtual
|
|
||||||
# desktops with the same column dimension.
|
|
||||||
# gesture swipe up _internal --cols 4 ws_up
|
|
||||||
# gesture swipe down _internal --cols 4 ws_down
|
|
||||||
# gesture swipe left _internal --cols 4 ws_left
|
|
||||||
# gesture swipe right _internal --cols 4 ws_right
|
|
||||||
#
|
|
||||||
# Example of 16 static workspaces, e.g. using KDE virtual-desktops,
|
|
||||||
# arranged in 4 rows of 4 columns across using swipe up/down/left/right
|
|
||||||
# to navigate in fixed planes, and also using swipe
|
|
||||||
# left_up/left_down/right_up/right_down to navigate diagonally. You can
|
|
||||||
# also add the "-w/--wrap" option to allow wrapping in any direction
|
|
||||||
# and/or diagonally. You must configure your virtual desktops with the
|
|
||||||
# same column dimension.
|
|
||||||
# gesture swipe up _internal --cols 4 ws_up
|
|
||||||
# gesture swipe down _internal --cols 4 ws_down
|
|
||||||
# gesture swipe left _internal --cols 4 ws_left
|
|
||||||
# gesture swipe right _internal --cols 4 ws_right
|
|
||||||
# gesture swipe left_up _internal --cols 4 ws_left_up
|
|
||||||
# gesture swipe left_down _internal --cols 4 ws_left_down
|
|
||||||
# gesture swipe right_up _internal --cols 4 ws_right_up
|
|
||||||
# gesture swipe right_down _internal --cols 4 ws_right_down
|
|
||||||
|
|
||||||
# Example virtual desktop switching for Ubuntu Unity/Compiz. The
|
|
||||||
# _internal command does not work for Compiz but you can explicitly
|
|
||||||
# configure the swipe commands to work for a Compiz virtual 2
|
|
||||||
# dimensional desktop as follows:
|
|
||||||
# gesture swipe up xdotool key ctrl+alt+Up
|
|
||||||
# gesture swipe down xdotool key ctrl+alt+Down
|
|
||||||
# gesture swipe left xdotool key ctrl+alt+Left
|
|
||||||
# gesture swipe right xdotool key ctrl+alt+Right
|
|
||||||
|
|
||||||
# Example to change audio volume (this works on both Wayland and Xorg):
|
|
||||||
# Note each swipe only steps volume once.
|
|
||||||
# swipe up 4 amixer set Master "8%+"
|
|
||||||
# swipe down 4 amixer set Master "8%-"
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# PINCH GESTURES:
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# GNOME SHELL open/close overview (works for GNOME on Xorg only)
|
|
||||||
#gesture pinch in xdotool key super+s
|
|
||||||
#gesture pinch out xdotool key super+s
|
|
||||||
|
|
||||||
# KDE Plasma open/close overview
|
|
||||||
# gesture pinch in xdotool key ctrl+F9
|
|
||||||
# gesture pinch out xdotool key ctrl+F9
|
|
||||||
|
|
||||||
# GNOME SHELL open/close overview (works for GNOME on Wayland and Xorg)
|
|
||||||
# Note since GNOME 3.24 on Wayland this is implemented natively so no
|
|
||||||
# real point configuring for Wayland.
|
|
||||||
# gesture pinch in dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
|
|
||||||
# gesture pinch out dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
|
|
||||||
|
|
||||||
# Optional extended pinch gestures:
|
|
||||||
# gesture pinch clockwise <whatever command>
|
|
||||||
# gesture pinch anticlockwise <whatever command>
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# This application normally determines your touchpad device
|
|
||||||
# automatically. Some users may have multiple touchpads but by default
|
|
||||||
# we use only the first one found. However, you can choose to specify
|
|
||||||
# the explicit device name to use. Run "libinput list-devices" to work
|
|
||||||
# out the name of your device (from the "Device:" field). Then add a
|
|
||||||
# device line specifying that name, e.g:
|
|
||||||
#
|
|
||||||
# device DLL0665:01 06CB:76AD Touchpad
|
|
||||||
#
|
|
||||||
# If the device name starts with a '/' then it is instead considered as
|
|
||||||
# the explicit device path although since device paths can change
|
|
||||||
# through reboots this is best to be a symlink. E.g. instead of specifying
|
|
||||||
# /dev/input/event12, you should use the corresponding full path link
|
|
||||||
# under /dev/input/by-path/ or /dev/input/by-id/.
|
|
||||||
#
|
|
||||||
# You can choose to use ALL touchpad devices by setting the device name
|
|
||||||
# to "all". E.g. Do this if you have multiple touchpads which you want
|
|
||||||
# to use in parallel. This reduces performance slightly so only set this
|
|
||||||
# if you have to.
|
|
||||||
#
|
|
||||||
# device all
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# You can set a minimum travel distance threshold before swipe gestures
|
|
||||||
# are actioned using the swipe_threshold configuration command.
|
|
||||||
# Specify this value in dots. The default is 0.
|
|
||||||
# E.g. set it to 100 dots with "swipe_threshold 100".
|
|
||||||
# swipe_threshold 0
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# You can set a timeout on gestures from start to end. The default is
|
|
||||||
# the value commented below. It can be any value in float secs >= 0.
|
|
||||||
# 0 = no timeout. E.g. set it to 2 secs with "timeout 2".
|
|
||||||
# timeout 1.5
|
|
|
@ -1,3 +0,0 @@
|
||||||
I use my [fork](https://git.nelim.org/matt1432/lisgd-sway) of [lisgd](https://git.sr.ht/~mil/lisgd) to freeze touchscreen inputs while using 3 or more fingers so gestures can be done without zooming your firefox tabs or messing up your work (only works on sway).
|
|
||||||
|
|
||||||
I had to also make a [fork](https://git.nelim.org/matt1432/input-emulator-sway) of [input-emulator](https://github.com/tio/input-emulator) to make the touch_tap do 3 simultaneous taps, because disabling the touchscreen while doing gestures would not register when the fingers stop touching. therefore, simulating another tap of 3 fingers makes sway recognize the release.
|
|
20
lisgd/config
20
lisgd/config
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
## https://www.reddit.com/r/swaywm/comments/ocec7k/comment/i93s0ma/
|
|
||||||
## https://git.sr.ht/~mil/lisgd/tree/0.3.7/item/config.def.h
|
|
||||||
|
|
||||||
function gestures {
|
|
||||||
lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \
|
|
||||||
-g "1,UD,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false'" \
|
|
||||||
-g "1,DU,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true'" \
|
|
||||||
-g "3,RL,N,*,R,$HOME/.config/hypr/scripts/gestures.sh next" \
|
|
||||||
-g "3,LR,N,*,R,$HOME/.config/hypr/scripts/gestures.sh prev"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if pgrep lisgd ; then
|
|
||||||
killall lisgd
|
|
||||||
gestures
|
|
||||||
else
|
|
||||||
gestures
|
|
||||||
fi
|
|
|
@ -8,7 +8,7 @@
|
||||||
"friendly-snippets": { "branch": "main", "commit": "7006e69b60a559837ff6cdb7fe610af4f6ca823c" },
|
"friendly-snippets": { "branch": "main", "commit": "7006e69b60a559837ff6cdb7fe610af4f6ca823c" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "f868d82a36f7f7f5e110eb0a9659993984f59875" },
|
"gitsigns.nvim": { "branch": "main", "commit": "f868d82a36f7f7f5e110eb0a9659993984f59875" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "7075d7861f7a6bbf0de0298c83f8a13195e6ec01" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "7075d7861f7a6bbf0de0298c83f8a13195e6ec01" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "ebdd0499551765e6a7aba220cc8ae4e0cdb6be69" },
|
"lazy.nvim": { "branch": "main", "commit": "6b2311a46a3808e366bb251270f4cc04afb421ed" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" },
|
"lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "f0ce33f4794a2364eb08d09d09380e8b04ec5e6a" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "f0ce33f4794a2364eb08d09d09380e8b04ec5e6a" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "7d7efc738e08fc5bee822857db45cb6103f0b0c1" },
|
"mason.nvim": { "branch": "main", "commit": "7d7efc738e08fc5bee822857db45cb6103f0b0c1" },
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"export-settings-ini": true,
|
|
||||||
"export-gtkrc-20": true,
|
|
||||||
"export-index-theme": true,
|
|
||||||
"export-xsettingsd": true
|
|
||||||
}
|
|
|
@ -1,13 +1,13 @@
|
||||||
[Appearance]
|
[Appearance]
|
||||||
color_scheme_path=/usr/share/qt5ct/colors/airy.conf
|
color_scheme_path=/nix/store/9f0l6r0891z45x6ixkfgnqwrrdyap65c-qt5ct-1.5/share/qt5ct/colors/airy.conf
|
||||||
custom_palette=false
|
custom_palette=false
|
||||||
icon_theme=Flatery-Dark
|
icon_theme=Adwaita
|
||||||
standard_dialogs=default
|
standard_dialogs=default
|
||||||
style=Fusion
|
style=Fusion
|
||||||
|
|
||||||
[Fonts]
|
[Fonts]
|
||||||
fixed="Sans Serif,9,-1,5,50,0,0,0,0,0"
|
fixed=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
|
||||||
general="Sans Serif,9,-1,5,50,0,0,0,0,0"
|
general=@Variant(\0\0\0@\0\0\0\x14\0S\0\x61\0n\0s\0 \0S\0\x65\0r\0i\0\x66@\"\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
|
||||||
|
|
||||||
[Interface]
|
[Interface]
|
||||||
activate_item_on_single_click=1
|
activate_item_on_single_click=1
|
||||||
|
@ -25,7 +25,7 @@ underline_shortcut=1
|
||||||
wheel_scroll_lines=3
|
wheel_scroll_lines=3
|
||||||
|
|
||||||
[SettingsWindow]
|
[SettingsWindow]
|
||||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xae\0\0\x4\x63\0\0\0\0\0\0\0\0\0\0\x2\xe1\0\0\x3[\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xae\0\0\x4\x63)
|
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\aq\0\0\x4p\0\0\0\0\0\0\0\0\0\0\x2\xe1\0\0\x3[\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\aq\0\0\x4p)
|
||||||
|
|
||||||
[Troubleshooting]
|
[Troubleshooting]
|
||||||
force_raster_widgets=1
|
force_raster_widgets=1
|
||||||
|
|
|
@ -19,7 +19,7 @@ configuration {
|
||||||
@import "~/.config/rofi/colors/dracula.rasi"
|
@import "~/.config/rofi/colors/dracula.rasi"
|
||||||
|
|
||||||
* {
|
* {
|
||||||
font: "Product Sans 12";
|
font: "MesloLGS NF 12";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****----- Main Window -----*****/
|
/*****----- Main Window -----*****/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
rofi -dmenu \
|
rofi -dmenu \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
rofi \
|
rofi \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ $(eww state | grep calendar_month) ]]; then
|
if [[ $(eww state | grep calendar_month) ]]; then
|
||||||
$HOME/.config/eww/scripts/close.sh date && eww close closer
|
$HOME/.config/eww/scripts/close.sh date && eww close closer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
TOGGLE=$HOME/.config/waybar/scripts/.heart
|
TOGGLE=$HOME/.config/waybar/scripts/.heart
|
||||||
|
|
||||||
if [ ! -e $TOGGLE ]; then
|
if [ ! -e $TOGGLE ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ $(eww state | grep br_icon) ]]; then
|
if [[ $(eww state | grep br_icon) ]]; then
|
||||||
$HOME/.config/eww/scripts/close.sh actions && eww close closer
|
$HOME/.config/eww/scripts/close.sh actions && eww close closer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
TOGGLE=$HOME/.config/waybar/scripts/.heart
|
TOGGLE=$HOME/.config/waybar/scripts/.heart
|
||||||
|
|
||||||
if [ ! -e $TOGGLE ]; then
|
if [ ! -e $TOGGLE ]; then
|
||||||
|
|
Loading…
Reference in a new issue