add support for x230(t), also vscodium
This commit is contained in:
parent
2624ed9e60
commit
2f135dbb95
|
@ -23,6 +23,8 @@
|
||||||
isync
|
isync
|
||||||
khal
|
khal
|
||||||
todoman
|
todoman
|
||||||
|
lisgd
|
||||||
|
vscodium
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
, curl
|
, curl
|
||||||
, ytfzf
|
, ytfzf
|
||||||
, xrandr
|
, xrandr
|
||||||
|
, svkbd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||||
src = ./utils;
|
src = ./utils;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper pkg-config libxcb ];
|
nativeBuildInputs = [ makeWrapper pkg-config libxcb ];
|
||||||
buildInputs = [ libxcb bash feh xrandr jq curl fzy ytfzf ffmpeg sshuttle ];
|
buildInputs = [ libxcb bash feh xrandr jq curl fzy ytfzf ffmpeg sshuttle svkbd ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
ls
|
ls
|
||||||
|
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||||
for i in $(ls $src/sh); do
|
for i in $(ls $src/sh); do
|
||||||
cp $src/sh/$i $out/bin
|
cp $src/sh/$i $out/bin
|
||||||
ln -sf $out/bin/tmenu_run $out/bin/regenerate
|
ln -sf $out/bin/tmenu_run $out/bin/regenerate
|
||||||
wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl fzy ytfzf ffmpeg sshuttle ]}
|
wrapProgram $out/bin/$i --prefix PATH : ${lib.makeBinPath [ sxhkd bash feh xrandr jq figlet curl fzy ytfzf ffmpeg sshuttle svkbd ]}
|
||||||
done
|
done
|
||||||
|
|
||||||
cp c/status/main $out/bin/statusbar
|
cp c/status/main $out/bin/statusbar
|
||||||
|
|
|
@ -4,4 +4,5 @@ setxkbmap -option caps:super
|
||||||
killall xcape
|
killall xcape
|
||||||
xcape -e 'Super_L=Escape'
|
xcape -e 'Super_L=Escape'
|
||||||
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
|
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
|
||||||
|
xset -r 161 # tablet rotate key doesn't need repeat
|
||||||
xset r rate 200 40
|
xset r rate 200 40
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
svkbd-mobile-intl &
|
||||||
|
choice=$(ls ~/doc/music/works | tmenu)
|
||||||
|
kill %1
|
||||||
|
if [ -n "$choice" ]; then
|
||||||
|
find "$HOME/doc/music/works/$choice/" -type f | sxiv -i
|
||||||
|
fi
|
|
@ -0,0 +1,46 @@
|
||||||
|
svkbd-mobile-intl &
|
||||||
|
|
||||||
|
choice=$(
|
||||||
|
printf "
|
||||||
|
vert-mode
|
||||||
|
hori-mode
|
||||||
|
keyb
|
||||||
|
nokeyb
|
||||||
|
musexplore
|
||||||
|
brave
|
||||||
|
chromium
|
||||||
|
close-wind
|
||||||
|
" | tmenu
|
||||||
|
)
|
||||||
|
|
||||||
|
pkill svkbd
|
||||||
|
|
||||||
|
case "$choice" in
|
||||||
|
"vert-mode")
|
||||||
|
xrandr --output LVDS-1 --rotate left
|
||||||
|
xinput set-prop "Wacom ISDv4 E6 Finger" 178 0 -1 1 1 0 0 0 0 1
|
||||||
|
sleep 4
|
||||||
|
;;
|
||||||
|
"hori-mode")
|
||||||
|
xrandr --output LVDS-1 --rotate normal
|
||||||
|
xinput set-prop "Wacom ISDv4 E6 Finger" 178 1 0 0 0 1 0 0 0 1
|
||||||
|
;;
|
||||||
|
"nokeyb")
|
||||||
|
pkill svkbd
|
||||||
|
;;
|
||||||
|
"keyb")
|
||||||
|
svkbd-mobile-intl & disown
|
||||||
|
;;
|
||||||
|
"musexplore")
|
||||||
|
musexplore
|
||||||
|
;;
|
||||||
|
"brave")
|
||||||
|
brave
|
||||||
|
;;
|
||||||
|
"chromium")
|
||||||
|
chromium
|
||||||
|
;;
|
||||||
|
"close-wind")
|
||||||
|
bspc node -c
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -46,3 +46,6 @@ super + {_,shift + } {1-9,0}
|
||||||
# change a node to tiling, floating, or fullscreen
|
# change a node to tiling, floating, or fullscreen
|
||||||
super + {t,f,s}
|
super + {t,f,s}
|
||||||
bspc node -t {tiled,floating,fullscreen}
|
bspc node -t {tiled,floating,fullscreen}
|
||||||
|
|
||||||
|
XF86RotateWindows
|
||||||
|
tabletmenu
|
||||||
|
|
Loading…
Reference in New Issue