diff --git a/README.md b/README.md index e8ef21f..a7ab61f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,2 @@ # dots - -currently oceanic next - - -![oceanicnext](images/oceanicnext.png) diff --git a/actuator/uzui/landscape.toml b/actuator/uzui/landscape.toml new file mode 100644 index 0000000..d8b11c1 --- /dev/null +++ b/actuator/uzui/landscape.toml @@ -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" diff --git a/actuator/uzui/portrait.toml b/actuator/uzui/portrait.toml new file mode 100644 index 0000000..149d750 --- /dev/null +++ b/actuator/uzui/portrait.toml @@ -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" diff --git a/actuator/uzui/set_win_mode b/actuator/uzui/set_win_mode new file mode 100755 index 0000000..493954e --- /dev/null +++ b/actuator/uzui/set_win_mode @@ -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 diff --git a/actuator/uzui/tablet.toml b/actuator/uzui/tablet.toml new file mode 100644 index 0000000..670b9a6 --- /dev/null +++ b/actuator/uzui/tablet.toml @@ -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" diff --git a/broken_stuff.md b/broken_stuff.md index 12f6ae1..8902047 100644 --- a/broken_stuff.md +++ b/broken_stuff.md @@ -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 diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 70ae03e..55c03f0 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -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 diff --git a/images/oceanicnext.png b/images/oceanicnext.png deleted file mode 100644 index 92e669c..0000000 Binary files a/images/oceanicnext.png and /dev/null differ diff --git a/install.conf.yaml b/install.conf.yaml index 01a095d..adab530 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -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 diff --git a/onboard/Theme.theme b/onboard/Theme.theme new file mode 100644 index 0000000..d44dfd2 --- /dev/null +++ b/onboard/Theme.theme @@ -0,0 +1,32 @@ + + + + + + Colors + gradient + 30.0 + 92.0 + 8.0 + 0.0 + -3.0 + + + diff --git a/onboard/dconf-settings.ini b/onboard/dconf-settings.ini new file mode 100644 index 0000000..2176e57 --- /dev/null +++ b/onboard/dconf-settings.ini @@ -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 diff --git a/rofi/config.rasi b/rofi/config.rasi index bf1735a..fcc9215 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -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 + */ diff --git a/scripts/actuator b/scripts/actuator new file mode 100755 index 0000000..9fdfc59 Binary files /dev/null and b/scripts/actuator differ diff --git a/scripts/firefox b/scripts/firefox index 98ef8f6..30f6115 100755 --- a/scripts/firefox +++ b/scripts/firefox @@ -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 "$@" diff --git a/scripts/rotate-screen b/scripts/rotate-screen new file mode 100755 index 0000000..7ec39c8 --- /dev/null +++ b/scripts/rotate-screen @@ -0,0 +1,3 @@ +#!/bin/bash + +xrandr --output "$1" --rotate "$2" diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index b681ca1..65d2232 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -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 diff --git a/themectl/config.toml b/themectl/config.toml index f68fd8a..6502b3d 100644 --- a/themectl/config.toml +++ b/themectl/config.toml @@ -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/" } diff --git a/themectl/templates/onboard-custom.mustache b/themectl/templates/onboard-custom.mustache new file mode 100644 index 0000000..b14c9bb --- /dev/null +++ b/themectl/templates/onboard-custom.mustache @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + icon0 + + + + icon1, icon2 + + + + + + + + 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, + + + + + prediction + + + wordlist, pause-learning.wordlist, language.wordlist, hide.wordlist + + + + + + + + + m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15 + + + + + + + settings + + + + + + diff --git a/wallpapers/Starry.jpg b/wallpapers/Starry.jpg new file mode 100644 index 0000000..b936ad7 Binary files /dev/null and b/wallpapers/Starry.jpg differ