Bind keys to often used stuff

This commit is contained in:
Alexander Bantyev 2020-05-25 15:44:06 +03:00
parent afdd73779d
commit 05c0f5272f
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
5 changed files with 8 additions and 16 deletions

View File

@ -12,10 +12,6 @@
else else
echo -n `date -d "$DATE" +'%H:%M %a'` echo -n `date -d "$DATE" +'%H:%M %a'`
fi fi
if [[ $BLOCK_BUTTON == "1" ]]
then
${config.defaultApplications.term.cmd} --hold -e "${gcalcli}/bin/gcalcli agenda"
fi
if [[ $((`date -d "$DATE" +%s`-`date +%s`)) -lt 1800 ]] if [[ $((`date -d "$DATE" +%s`-`date +%s`)) -lt 1800 ]]
then then
code=33 code=33

View File

@ -1,6 +1,5 @@
{ bash, networkmanager, iconfont, config, modemmanager, ... }: '' { bash, networkmanager, iconfont, config, modemmanager, ... }: ''
#!${bash}/bin/bash #!${bash}/bin/bash
[[ $BLOCK_BUTTON -eq 1 ]] && ${config.defaultApplications.term.cmd} -e ${networkmanager}/bin/nmtui-connect
CONNECTIONS=$(${networkmanager}/bin/nmcli con show --active | tail +2 | tr -s ' ' | rev | cut -d' ' -f3 | rev) CONNECTIONS=$(${networkmanager}/bin/nmcli con show --active | tail +2 | tr -s ' ' | rev | cut -d' ' -f3 | rev)
text="" text=""
for connection in $CONNECTIONS for connection in $CONNECTIONS

View File

@ -1,7 +1,6 @@
{ pamixer, lxqt, iconfont, ... }: '' { pamixer, lxqt, iconfont, ... }: ''
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
2) ${pamixer}/bin/pamixer -t;; 2) ${pamixer}/bin/pamixer -t;;
3) ${lxqt.pavucontrol-qt}/bin/pavucontrol-qt & ;;
4) ${pamixer}/bin/pamixer -i 5;; 4) ${pamixer}/bin/pamixer -i 5;;
5) ${pamixer}/bin/pamixer -d 5;; 5) ${pamixer}/bin/pamixer -d 5;;
esac esac

View File

@ -2,9 +2,4 @@
#!${bash}/bin/bash #!${bash}/bin/bash
WTTR=$(curl wttr.in/?format=1) WTTR=$(curl wttr.in/?format=1)
echo "<span font=\"Roboto Mono 11\">$WTTR</span>" echo "<span font=\"Roboto Mono 11\">$WTTR</span>"
if [[ $BLOCK_BUTTON == 1 ]]
then
${config.defaultApplications.term.cmd} --hold -e "${curl}/bin/curl wttr.in"
fi
'' ''

View File

@ -112,7 +112,7 @@ in {
"${modifier}+q" = "kill"; "${modifier}+q" = "kill";
"${modifier}+Return" = "exec ${apps.term.cmd}"; "${modifier}+Return" = "exec ${apps.term.cmd}";
"${modifier}+e" = "exec ${apps.editor.cmd}"; "${modifier}+e" = "exec ${apps.editor.cmd}";
"${modifier}+l" = "layout toggle all"; "${modifier}+o" = "layout toggle all";
"${modifier}+Left" = "focus child; focus left; ${moveMouse}"; "${modifier}+Left" = "focus child; focus left; ${moveMouse}";
"${modifier}+Right" = "focus child; focus right; ${moveMouse}"; "${modifier}+Right" = "focus child; focus right; ${moveMouse}";
@ -144,9 +144,13 @@ in {
"${modifier}+r" = "mode resize"; "${modifier}+r" = "mode resize";
"${modifier}+Shift+f" = "floating toggle"; "${modifier}+Shift+f" = "floating toggle";
"${modifier}+j" = "focus mode_toggle";
"${modifier}+Escape" = "exec ${apps.monitor.cmd}"; "${modifier}+Escape" = "exec ${apps.monitor.cmd}";
"${modifier}+j" = "exec ${pkgs.playerctl}/bin/playerctl previous";
"${modifier}+k" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
"${modifier}+l" = "exec ${pkgs.playerctl}/bin/playerctl next";
"${modifier}+i" = "exec ${pkgs.lxqt.pavucontrol-qt}/bin/pavucontrol-qt";
"${modifier}+Print" = script "screenshot" "${modifier}+Print" = script "screenshot"
"${pkgs.grim}/bin/grim Pictures/$(date +'%Y-%m-%d+%H:%M:%S').png"; "${pkgs.grim}/bin/grim Pictures/$(date +'%Y-%m-%d+%H:%M:%S').png";
@ -161,7 +165,6 @@ in {
${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.wl-clipboard}/bin/wl-copy''; ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.wl-clipboard}/bin/wl-copy'';
"${modifier}+x" = "move workspace to output right"; "${modifier}+x" = "move workspace to output right";
"${modifier}+k" = "exec '${pkgs.xorg.xkill}/bin/xkill'";
"${modifier}+F5" = "reload"; "${modifier}+F5" = "reload";
"${modifier}+Shift+F5" = "exit"; "${modifier}+Shift+F5" = "exit";
"${modifier}+Shift+h" = "layout splith"; "${modifier}+Shift+h" = "layout splith";
@ -174,10 +177,10 @@ in {
"${modifier}+F12" = "output * dpms on"; "${modifier}+F12" = "output * dpms on";
"${modifier}+End" = "exec ${lock}"; "${modifier}+End" = "exec ${lock}";
"${modifier}+p" = "sticky toggle"; "${modifier}+p" = "sticky toggle";
"${modifier}+i" = "${modifier}+z" =
script "0x0" ''wl-paste | curl -F"file=@-" https://0x0.st | wl-copy''; script "0x0" ''wl-paste | curl -F"file=@-" https://0x0.st | wl-copy'';
"${modifier}+b" = "focus mode_toggle"; "${modifier}+b" = "focus mode_toggle";
"${modifier}+z" = script "lambda-launcher" "${modifier}+Space" = script "lambda-launcher"
"${pkgs.lambda-launcher}/bin/lambda-launcher"; "${pkgs.lambda-launcher}/bin/lambda-launcher";
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause"; "XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next"; "XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";