most actuator thingies
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
device = "/dev/input/event13"
|
||||
edge_tolerance = 200
|
||||
min_distance = 20
|
||||
height = 2178
|
||||
width = 3894
|
||||
|
||||
[actions]
|
||||
4_from_top = "$XDG_CONFIG_HOME/actuator/uzui/set_win_mode portrait"
|
||||
4_up = "$XDG_CONFIG_HOME/actuator/uzui/set_win_mode tablet"
|
||||
|
||||
1_from_bottom = "onboard --theme=Theme &"
|
||||
1_down = "pkill onboard"
|
||||
|
||||
1_left = "bspc desktop -f next.local"
|
||||
1_right = "bspc desktop -f prev.local"
|
||||
|
||||
2_down = "rofi -modi drun -show"
|
||||
2_left = "rofi -modi p:rofi-power-menu -show"
|
||||
2_up = "rofi -modi filebrowser -show"
|
||||
@@ -0,0 +1,19 @@
|
||||
device = "/dev/input/event13"
|
||||
edge_tolerance = 200
|
||||
min_distance = 20
|
||||
height = 3894
|
||||
width = 2178
|
||||
|
||||
[actions]
|
||||
4_from_left = "$XDG_CONFIG_HOME/actuator/uzui/set_win_mode landscape"
|
||||
|
||||
1_from_right = "onboard --theme=Theme &"
|
||||
1_right = "pkill onboard"
|
||||
|
||||
1_down = "bspc desktop -f next.local"
|
||||
1_up = "bspc desktop -f prev.local"
|
||||
|
||||
|
||||
2_left = "rofi -modi drun -show"
|
||||
2_up = "rofi -modi p:rofi-power-menu -show"
|
||||
2_right = "rofi -modi filebrowser -show"
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
WINDOW_MODE=$(cat "${XDG_CACHE_HOME}/window_mode")
|
||||
|
||||
if [ "$1" == "portrait" ] && [ "${WINDOW_MODE}" != "portrait" ]; then
|
||||
echo "portrait" > "${XDG_CACHE_HOME}"/window_mode
|
||||
rotate-screen eDP-1 left;
|
||||
xinput set-prop 9 --type=float "Coordinate Transformation Matrix" 0 -1 0 1 0 0 0 0 1
|
||||
xinput set-prop 10 --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
|
||||
pkill actuator;
|
||||
actuator "${XDG_CONFIG_HOME}/actuator/uzui/portrait.toml" &
|
||||
|
||||
elif [ "$1" == "landscape" ] && [ "${WINDOW_MODE}" != "landscape" ]; then
|
||||
echo "landscape" > "${XDG_CACHE_HOME}"/window_mode
|
||||
rotate-screen eDP-1 normal;
|
||||
xinput set-prop 9 --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
|
||||
xinput set-prop 10 --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
|
||||
pkill actuator;
|
||||
actuator "${XDG_CONFIG_HOME}/actuator/uzui/landscape.toml" &
|
||||
|
||||
elif [ "$1" == "tablet" ] && [ "${WINDOW_MODE}" != "tablet" ]; then
|
||||
echo "tablet" > "${XDG_CACHE_HOME}"/window_mode
|
||||
rotate-screen eDP-1 inverted;
|
||||
xinput set-prop 9 --type=float "Coordinate Transformation Matrix" -1 0 0 0 -1 0 0 0 1
|
||||
xinput set-prop 10 --type=float "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
|
||||
pkill actuator;
|
||||
actuator "${XDG_CONFIG_HOME}/actuator/uzui/tablet.toml" &
|
||||
fi
|
||||
@@ -0,0 +1,18 @@
|
||||
device = "/dev/input/event13"
|
||||
edge_tolerance = 200
|
||||
min_distance = 20
|
||||
height = 2178
|
||||
width = 3894
|
||||
|
||||
[actions]
|
||||
4_from_bottom = "$XDG_CONFIG_HOME/actuator/uzui/set_win_mode landscape"
|
||||
|
||||
1_from_top = "onboard --theme=Theme &"
|
||||
1_up = "pkill onboard"
|
||||
|
||||
1_right = "bspc desktop -f next.local"
|
||||
1_left = "bspc desktop -f prev.local"
|
||||
|
||||
2_up = "rofi -modi drun -show"
|
||||
2_right = "rofi -modi p:rofi-power-menu -show"
|
||||
2_down = "rofi -modi filebrowser -show"
|
||||
Reference in New Issue
Block a user