make the phone xorg experience better
This commit is contained in:
parent
542d05f0df
commit
4c16d744a4
|
@ -0,0 +1,18 @@
|
|||
# essentially the same thing as sxhkdrc, but super is replaced with ctrl + b and all shortcuts are chorded
|
||||
ctrl + b; c
|
||||
st
|
||||
|
||||
ctrl + b; q
|
||||
bspc node -c
|
||||
|
||||
ctrl + b; {_,shift + } {1-9,0}
|
||||
bspc {desktop -f,node -d} '{1-9,10}'
|
||||
|
||||
ctrl + b; {_,ctrl +,shift + }{h,j,k,l}
|
||||
bspc node -{f,p,s} {west,south,north,east}
|
||||
|
||||
ctrl + b; d
|
||||
tmenu_run
|
||||
|
||||
ctrl + b; m
|
||||
mode phonemouse
|
|
@ -0,0 +1,43 @@
|
|||
# exit mouse mode
|
||||
w
|
||||
mode phone
|
||||
|
||||
# move left
|
||||
{ctrl +,shift +,_} h
|
||||
xdotool mousemove_relative -- {-5,-50,-20} 0
|
||||
|
||||
# move down
|
||||
{ctrl +,shift +,_} j
|
||||
xdotool mousemove_relative -- 0 {5,50,20}
|
||||
|
||||
# move up
|
||||
{ctrl +,shift +,_} k
|
||||
xdotool mousemove_relative -- 0 {-5,-50,-20}
|
||||
|
||||
# move right
|
||||
{ctrl +,shift +,_} l
|
||||
xdotool mousemove_relative -- {5,50,20} 0
|
||||
|
||||
# left, middle, right click
|
||||
{ctrl +,_} {a,s,d}
|
||||
xdotool {mousedown,click} {1,2,3}
|
||||
|
||||
# let go of clicked button
|
||||
q
|
||||
xdotool mouseup 1; xdotool mouseup 2; xdotool mouseup 3
|
||||
|
||||
# move the mouse to the top of the window
|
||||
g ; g
|
||||
mousehelper top
|
||||
|
||||
# ditto for bottom
|
||||
G
|
||||
mousehelper bottom
|
||||
|
||||
# ditto for left
|
||||
0
|
||||
mousehelper left
|
||||
|
||||
# ditto for right
|
||||
dollar
|
||||
mousehelper right
|
|
@ -1,7 +1,7 @@
|
|||
termux: termux-pkgs termux-dots utils-sh st
|
||||
|
||||
st:
|
||||
cd ../../../builds/st/ && CC=clang make && cp st ~/.local/bin/st
|
||||
cd ../../../builds/st/ && CFLAGS="-DIS_PHONE" CC=clang make && cp st ~/.local/bin/st
|
||||
|
||||
utils-sh:
|
||||
cp ../../../builds/utils/* ~/.local/bin
|
||||
|
@ -9,6 +9,7 @@ utils-sh:
|
|||
termux-pkgs:
|
||||
pkg install \
|
||||
neovim \
|
||||
xdotool \
|
||||
git \
|
||||
tig \
|
||||
tigervnc \
|
||||
|
|
|
@ -3,7 +3,12 @@
|
|||
/*
|
||||
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
||||
*/
|
||||
#ifdef IS_PHONE
|
||||
static char *font = "Monospace:pixelsize=34:antialias=true:autohint=true";
|
||||
#else
|
||||
static char *font = "Fantasque Sans Mono:pixelsize=14:antialias=true:autohint=true";
|
||||
#endif
|
||||
|
||||
static int borderpx = 2;
|
||||
|
||||
/*
|
||||
|
|
|
@ -186,6 +186,12 @@ case "$(hostname)" in
|
|||
dunst & disown
|
||||
phone pair & disown
|
||||
;;
|
||||
"localhost") # phone in termux
|
||||
pkill sxhkd
|
||||
sxhkd -c ~/.config/sxhkd/phone & disown
|
||||
|
||||
xrandr --output VNC-0 --mode 1920x1080
|
||||
bspc monitor VNC-0 -d 1 2 3 4 5 6 7 8 9
|
||||
esac
|
||||
|
||||
# initial post-wm setup
|
||||
|
|
Loading…
Reference in New Issue