most actuator thingies

This commit is contained in:
h 2023-10-06 01:15:38 -04:00
parent fac4150715
commit dbaad82b20
19 changed files with 280 additions and 14 deletions

View File

@ -1,6 +1,2 @@
# dots
currently oceanic next -
![oceanicnext](images/oceanicnext.png)

View File

@ -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"

View File

@ -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"

28
actuator/uzui/set_win_mode Executable file
View File

@ -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

18
actuator/uzui/tablet.toml Normal file
View File

@ -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"

View File

@ -1,9 +1 @@
scroll with trackpad in firefox
smooth scrolling in firefox
mouse movement with keyboard
actuator/
scripts/actuator
scripts/landscape
scripts/portrait
tex/beamerthemedispboard.sty

View File

@ -12,6 +12,10 @@ fi
bspc wm -O DP-0 HDMI-0
echo "landscape" > "${XDG_CACHE_HOME}"/window_mode
WINDOW_MODE=$(cat "${XDG_CACHE_HOME}"/window_mode)
pkill actuator
actuator "${XDG_CONFIG_HOME}/actuator/$(cat /etc/hostname)/${WINDOW_MODE}.toml" &
# change window settings
bspc config border_width 2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 MiB

View File

@ -21,6 +21,8 @@
- ~/.config/texmf/tex/latex
- ~/.config/texmf/tex/latex/theme
- ~/.config/gtk-3.0/
- ~/.local/share/onboard
- ~/.local/share/onboard/themes
- link:
~/.config/zsh/.zshrc: zsh/zshrc
@ -50,6 +52,8 @@
~/.zshenv: zshenv
~/.npmrc: npmrc
~/.local/share/applications: applications
~/.local/share/onboard/dconf-settings.ini: onboard/dconf-settings.ini
~/.local/share/onboard/themes/Theme.theme: onboard/Theme.theme
~/.config/wallpapers: wallpapers
~/.config/radare2/radare2rc: r2rizin/radare2rc
~/.config/rizin/rizinrc: r2rizin/rizinrc

32
onboard/Theme.theme Normal file
View File

@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!--
Copyright © 2011, 2013 marmuta <marmvta@gmail.com>
This file is part of Onboard.
Onboard is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Onboard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<theme name="Theme" format="1.3">
<color_scheme>Colors</color_scheme>
<key_style>gradient</key_style>
<roundrect_radius>30.0</roundrect_radius>
<key_size>92.0</key_size>
<key_fill_gradient>8.0</key_fill_gradient>
<key_stroke_gradient>0.0</key_stroke_gradient>
<key_gradient_direction>-3.0</key_gradient_direction>
<key_label_font></key_label_font>
<key_label_overrides/>
</theme>

View File

@ -0,0 +1,50 @@
[/]
current-settings-page=1
layout='/usr/share/onboard/layouts/Compact.onboard'
schema-version='2.3'
show-status-icon=false
snippets=@as []
system-theme-associations={'HighContrast': 'HighContrast', 'HighContrastInverse': 'HighContrastInverse', 'LowContrast': 'LowContrast', 'ContrastHighInverse': 'HighContrastInverse', 'Default': '', 'Adwaita': '/home/emh/.local/share/onboard/themes/Theme.theme'}
theme='/home/emh/.local/share/onboard/themes/Theme.theme'
use-system-defaults=false
[icon-palette]
window-handles=''
[keyboard]
show-click-buttons=false
[theme-settings]
background-gradient=0.0
color-scheme='/home/emh/.local/share/onboard/themes/Colors.colors'
key-fill-gradient=8.0
key-gradient-direction=-3.0
key-shadow-size=0.0
key-shadow-strength=0.0
key-size=92.0
key-stroke-gradient=0.0
key-style='gradient'
roundrect-radius=30.0
[window]
background-transparency=20.0
docking-enabled=true
docking-shrink-workarea=false
enable-inactive-transparency=true
force-to-top=true
transparency=10.0
window-handles=''
[window/landscape]
dock-height=350
height=350
width=1920
x=0
y=1080
[window/portrait]
dock-height=400
height=400
width=1080
x=0
y=1920

View File

@ -50,3 +50,8 @@ button {
button selected {
border-color: @foreground;
}
/* TODO:
* https://www.reddit.com/r/unixporn/comments/vte4sa/bspwm_eww_a_touchscreen_rice_wip/
* rofi for mobile
*/

BIN
scripts/actuator Executable file

Binary file not shown.

View File

@ -1,3 +1,10 @@
#!/bin/bash
# https://www.reddit.com/r/linux/comments/72mfv8/psa_for_firefox_users_set_moz_use_xinput21_to/
# smooth scrolling
# touchscreen scrolling
# https://askubuntu.com/questions/853910/how-to-enable-touchscreen-scrolling-in-firefox/994483#994483
HOME=$MOZILLA_HOME
/usr/bin/firefox "$@"
env MOZ_USE_XINPUT2=1 /usr/bin/firefox "$@"

3
scripts/rotate-screen Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
xrandr --output "$1" --rotate "$2"

View File

@ -24,7 +24,7 @@ super + shift + @space
# show power options
super + p
rofi -show-icons -modi p:rofi-power-menu -show p
rofi -modi p:rofi-power-menu -show p
# rofi
super + ctrl + @space

View File

@ -30,3 +30,5 @@ gtk3-custom = { file = "~/.config/gtk-3.0/colors.css" }
xournal-custom = { file = "~/.config/xournal_conf/default_jtheme.xopt" }
palette-custom = { file = "~/.config/xournalpp/palette.gpl" }
xournal-ugly-custom = { file = "~/.config/xournal_conf/ugly_fix" }
onboard-custom = { file = "~/.local/share/onboard/themes/Colors.colors", post = "cat ~/.local/share/onboard/dconf-settings.ini| dconf load /org/onboard/" }

View File

@ -0,0 +1,87 @@
<?xml version="1.0"?>
<!--
Copyright © 2011-2014 marmuta <marmvta@gmail.com>
This file is part of Onboard.
Onboard is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Onboard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<color_scheme name="Colors" format="2.1">
<window type="key-popup">
<color element="border" rgb="#{{base01-hex}}" opacity="1.0"/>
</window>
<layer> <color element="background" rgb="#{{base00-hex}}" opacity="1.0"/> </layer>
<layer> <color element="background" rgb="#{{base01-hex}}" opacity="0.9"/> </layer>
<layer> <color element="background" rgb="#{{base01-hex}}" opacity="0.9"/> </layer>
<key_group>
<color element="fill" rgb="#{{base02-hex}}"/>
<color element="stroke" rgb="#{{base05-hex}}"/>
<color element="label" rgb="#{{base05-hex}}"/>
icon0
<key_group>
<color element="fill" rgb="#{{base05-hex}}"/>
icon1, icon2
</key_group>
<!-- dark keys -->
<key_group>
<color element="fill" rgb="#{{base00-hex}}"/>
<color element="stroke" rgb="#{{base05-hex}}"/>
<color element="label" rgb="#{{base07-hex}}"/>
icon3,
RCTL, LCTL, RALT, LALT, LWIN, CAPS,
LFSH, RTSH, NMLK,
MENU, RWIN, BKSP, TAB, RTRN,
KPDL, KPEN, KPSU, KPDV, KPAD, KPMU,
LEFT, RGHT, UP, DOWN, INS, DELE, HOME, END, PGUP, PGDN,
F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
Prnt, Pause, ESC, Scroll,
secondaryclick, middleclick, doubleclick, dragclick, hoverclick,
hide, showclick, move, layer,
quit, inputline,
<!-- word suggestions -->
<key_group>
<color element="fill" rgb="#{{base02-hex}}"/>
prediction
<key_group>
<color element="fill" rgb="#{{base02-hex}}" opacity="0.8"/>
wordlist, pause-learning.wordlist, language.wordlist, hide.wordlist
</key_group>
</key_group>
</key_group>
<!-- snippets -->
<key_group>
<color element="fill" rgb="#{{base0C-hex}}"/>
<color element="stroke" rgb="#{{base0D-hex}}"/>
m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15
</key_group>
<!-- red preferences -->
<key_group>
<color element="fill" rgb="#{{base08-hex}}"/>
<color element="stroke" rgb="#{{base09-hex}}"/>
settings
</key_group>
</key_group>
</color_scheme>

BIN
wallpapers/Starry.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 KiB