Compare commits
2 Commits
a261bccd0a
...
7a5220d5d8
Author | SHA1 | Date | |
---|---|---|---|
|
7a5220d5d8 | ||
|
2f135dbb95 |
@ -23,6 +23,8 @@
|
||||
isync
|
||||
khal
|
||||
todoman
|
||||
lisgd
|
||||
vscodium
|
||||
];
|
||||
|
||||
hardware.bluetooth = {
|
||||
|
@ -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
|
||||
|
@ -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
8
builds/utils/sh/musexplore
Executable 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
46
builds/utils/sh/tabletmenu
Executable 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user