mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Addd snippets for vim, update i3 hotkeys
This commit is contained in:
parent
f7c0cef79f
commit
25b4e80c8d
10 changed files with 195 additions and 47 deletions
|
|
@ -1,8 +1,10 @@
|
|||
#!/bin/sh
|
||||
declare options=("i3
|
||||
declare options=("exit
|
||||
i3
|
||||
qtile
|
||||
berry
|
||||
openbox
|
||||
dwm
|
||||
alacritty
|
||||
kitty
|
||||
picom
|
||||
|
|
@ -18,6 +20,7 @@ rofi")
|
|||
|
||||
choice=$(echo -e "${options[@]}"|dmenu -p "Config edit" $@)
|
||||
case "$choice" in
|
||||
exit) exit 0 ;;
|
||||
i3)
|
||||
case "$(echo -e "config\npolybar"|dmenu -p "I3wm" $@)" in
|
||||
config) choice="$HOME/.config/i3/config" ;;
|
||||
|
|
@ -38,13 +41,20 @@ case "$choice" in
|
|||
esac
|
||||
;;
|
||||
openbox)
|
||||
case "$(echo -p "config\nautostart\nmenu\ntint2|dmenu -p "OpenBox" $@")" in
|
||||
case "$(echo -e "config\nautostart\nmenu\ntint2"|dmenu -p "OpenBox" $@)" in
|
||||
config) choice="$HOME/.config/openbox/rc.xml" ;;
|
||||
autostart) choice="$HOME/.config/openbox/autostart" ;;
|
||||
menu) choice="$HOME/.config/openbox/menu.xml" ;;
|
||||
tint2) choice="$HOME/.config/tint2/tint2rc" ;;
|
||||
esac
|
||||
;;
|
||||
dwm)
|
||||
case "$(echo -e "config\nautostart\nbar"|dmenu -p "DWM" $@)" in
|
||||
config) choice="$HOME/.config/dwm/config.def.h " ;;
|
||||
autostart) choice="$HOME/.config/dwm/autostart.sh" ;;
|
||||
bar) choice="$HOME/.script/dwmbar.sh" ;;
|
||||
esac
|
||||
;;
|
||||
alacritty) choice="$hoME/.config/alacritty.yml" ;;
|
||||
kitty) choice="$HOME/.config/kitty/kitty.conf" ;;
|
||||
picom) choice="$HOME/.config/picom.conf" ;;
|
||||
|
|
@ -56,19 +66,19 @@ case "$choice" in
|
|||
esac
|
||||
;;
|
||||
emacs)
|
||||
case "$(echo -e "config.el\ncustom.el\ninit.el\npackages.el"|dmenu -p "Doom emacs" $@)" in
|
||||
config.el) choice="$HOME/.doom.d/config.el" ;;
|
||||
init.el) choice="$HOME/.doom.d/init.el" ;;
|
||||
custom.el) choice="$HOME/.doom.d/custom.el" ;;
|
||||
packages.el) choice="$HOME/.doom.d/packages.el" ;;
|
||||
case "$(echo -e "config\ncustom\ninit\npackages"|dmenu -p "Doom emacs" $@)" in
|
||||
config) choice="$HOME/.doom.d/config.el" ;;
|
||||
init) choice="$HOME/.doom.d/init.el" ;;
|
||||
custom) choice="$HOME/.doom.d/custom.el" ;;
|
||||
packages) choice="$HOME/.doom.d/packages.el" ;;
|
||||
esac
|
||||
;;
|
||||
nvim) choice="$HOME/.config/nvim/init.vim" ;;
|
||||
tmux) choice="$HOME/.tmux.conf" ;;
|
||||
dunst) choice="$HOME/.config/dunst/dunstrc" ;;
|
||||
zsh) choice="$HOME/.zshrc" ;;
|
||||
castero) choice="$HOME/.config/castero/castero.conf" ;;
|
||||
redshift) choice="$HOME/.config/redshift.conf" ;;
|
||||
nvim) choice="$HOME/.config/nvim/init.vim" ;;
|
||||
tmux) choice="$HOME/.tmux.conf" ;;
|
||||
dunst) choice="$HOME/.config/dunst/dunstrc" ;;
|
||||
zsh) choice="$HOME/.zshrc" ;;
|
||||
castero) choice="$HOME/.config/castero/castero.conf" ;;
|
||||
redshift) choice="$HOME/.config/redshift.conf" ;;
|
||||
rofi)
|
||||
case "$(echo -e "config\nnten-dmenu"|dmenu -p "Rofi" $@)" in
|
||||
config) choice="$HOME/.config/rofi/config" ;;
|
||||
|
|
|
|||
9
script/polybar-toggle
Executable file
9
script/polybar-toggle
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
if [ $(pgrep polybar) ]
|
||||
then
|
||||
polybar i3bar >/dev/null
|
||||
#~/.config/polybar/launch.sh
|
||||
else
|
||||
killall -q polybar
|
||||
pkill polybar
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue