BSPWM : hotkey, fish shell

This commit is contained in:
2023-04-28 17:15:04 +09:00
parent 42d571653c
commit 124e621ce8
3 changed files with 29 additions and 49 deletions

View File

@ -1,9 +1,6 @@
#!/bin/sh
#!/usr/bin/env bash
# wgtk stuff
#wpg -R wallpaper.png
#wpg -s wallpaper.png
#source "${HOME}/.cache/wal/colors.sh"
# Set environment
export BSPWM_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm"

View File

@ -4,7 +4,8 @@ end
set fish_greeting
oh-my-posh init fish --config ~/.poshthemes/craver.omp.json | source
set VETHER_IP $(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
export DISPLAY=$VETHER_IP:10.0
# emacs
alias emupgrade="~/.emacs.d/bin/doom upgrade"
@ -34,5 +35,14 @@ alias startsv="ssh odroid startsv"
alias stopsv="ssh odroid stopsv"
alias gpulls="pushd ~/.config/emacs && git pull && pushd ~/org && git pull && popd && popd"
# Changing "ls" to "exa"
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
alias la='exa -a --color=always --group-directories-first' # all files and dirs
alias ll='exa -l --color=always --group-directories-first' # long format
alias lt='exa -aT --color=always --group-directories-first' # tree listing
alias l.='exa -a | egrep "^\."'
figlet -w 100 "$hostname"
export PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py
starship init fish | source

View File

@ -22,10 +22,11 @@ super + shift + {1-5}
# kitty
##control+alt+g
## lutris
#control+alt+f
# thunar
#super+shift+c
# /home/kz87/.bscripts/wc.sh
super+t
thunar
# close & kill
super+shift+c
bspc node -c
#
##rofi things
##Launch apps
@ -97,7 +98,9 @@ super + shift + {1-5}
#
## Toggle picom
super+p
[[ `pgrep -c picom` -eq 0 ]] && picom -b --config $HOME/.xmonad/scripts/picom.conf || killall picom
[[ `pgrep -c picom` -eq 0 ]] && picom || killall picom
super+w
~/scripts/random_wallpaper.sh
##Keyboard layouts
#super+space
@ -161,42 +164,12 @@ super+p
# bspc node focused -z top 0 -15
#super+alt+j
# bspc node focused -z bottom 0 15
#super+{d,a}
# play -v 0.4 ~/Documents/Sounds/tile.wav& bspc node @/ -C {forward,backward}
#alt+{d,a}
# play -v 0.4 ~/Documents/Sounds/tile.wav& bspc node first_ancestor -R {90,270}
#super+e
# play -v 0.4 ~/Documents/Sounds/tile.wav& bspc node first_ancestor --balance
#
#control+shift+h
# bspc node focused -z right -15 0
#control+shift+l
# bspc node focused -z left 15 0
#control+shift+j
# bspc node focused -z top 0 15
#control+shift+k
# bspc node focused -z bottom 0 -15
#
super + {_,shift +} + {h,j,k,l}
bspc node -{f,s} {west,south,north,east}
super+space
if [ -z "$(bspc query -N -n focused.fullscreen)" ]; then \
bspc node focused -t fullscreen; \
else \
bspc node focused -t tiled; \
fi;
#super+KP_Add
# bspc config window_gap $(( 5 + `bspc config window_gap` ))
#super+KP_Subtract
# bspc config window_gap $(( -5 + `bspc config window_gap` ))
#
#control+alt+{k,j,h,l}
# bspc node --presel-dir ~{north,south,west,east}
#
#control+alt+a
# if [[ ! -z "$(bspc query -N -n focused.normal)" ]]; then \
# bspc node focused -l above; \
# elif [[ ! -z "$(bspc query -N -n focused.above)" ]]; then \
# bspc node focused -l below; \
# else \
# bspc node focused -l normal; \
# fi;
#
bspc node focused -t ~fullscreen
super+KP_Add
bspc config window_gap $(( 5 + `bspc config window_gap` ))
super+KP_Subtract
bspc config window_gap $(( -5 + `bspc config window_gap` ))