Compare commits

..

2 Commits

Author SHA1 Message Date
randomuser
7a5220d5d8 merge mlg changes 2024-02-04 07:50:31 -06:00
randomuser
2f135dbb95 add support for x230(t), also vscodium 2024-02-04 07:48:42 -06:00
6 changed files with 63 additions and 2 deletions

View File

@ -23,6 +23,8 @@
isync
khal
todoman
lisgd
vscodium
];
hardware.bluetooth = {

View File

@ -16,6 +16,7 @@
, curl
, ytfzf
, xrandr
, svkbd
}:
stdenv.mkDerivation rec {
@ -25,7 +26,7 @@ stdenv.mkDerivation rec {
src = ./utils;
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 = ''
ls
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
for i in $(ls $src/sh); do
cp $src/sh/$i $out/bin
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
cp c/status/main $out/bin/statusbar

View File

@ -17,6 +17,7 @@ keyboard () {
pkill xcape
xcape -e 'Super_L=Escape'
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
}

8
builds/utils/sh/musexplore Executable file
View File

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

46
builds/utils/sh/tabletmenu Executable file
View File

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

View File

@ -46,3 +46,6 @@ super + {_,shift + } {1-9,0}
# change a node to tiling, floating, or fullscreen
super + {t,f,s}
bspc node -t {tiled,floating,fullscreen}
XF86RotateWindows
tabletmenu