diff --git a/config/bspwm/sxhkd b/config/bspwm/sxhkd index ba2f3db..95b7ca2 100644 --- a/config/bspwm/sxhkd +++ b/config/bspwm/sxhkd @@ -16,6 +16,10 @@ super + shift + {w, f, e, c, v, s, z, q} betterlockscreen --off 180 -t "Computer is locked" -l, \ xkill } +super + {_,shift} Print + {scrot -s, \ + scrot } + super + {equal, minus, shift+minus} amixer sset Master {2%+,2%-,toggle} diff --git a/config/nvim/init.vim b/config/nvim/init.vim index b489c26..9cba0d4 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -66,18 +66,16 @@ set hidden set nospell spelllang=en_us " Space/tab indicator -set list listchars=tab:>·,trail:~,extends:>,precedes:<,space:· +set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:· " Disable sound set visualbell t_vb= - "== Settings for specific files autocmd BufWritePre *.py normal m`:%s/\s\+$//e `` autocmd FileType python,go,json setlocal expandtab shiftwidth=4 tabstop=4 autocmd FileType html,css,javascript,javascriptreact,yaml setlocal expandtab shiftwidth=2 tabstop=2 - "== Aliases command! W :w command! Q :q diff --git a/config/openbox/README.md b/config/openbox/README.md new file mode 100644 index 0000000..df7ce89 --- /dev/null +++ b/config/openbox/README.md @@ -0,0 +1,15 @@ +# Openbox + +![](screen.png) +--------------- + +### Install +```bash +sudo pacman -S openbox tint2 +``` + +### Install theme +```bash +mkdir ~/.theme +tar -zxf nten.tar.gz -C ~/.themes +``` diff --git a/config/openbox/autostart b/config/openbox/autostart index 02c8927..66fdf95 100755 --- a/config/openbox/autostart +++ b/config/openbox/autostart @@ -1,7 +1,6 @@ #!/bin/sh setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & feh --randomize --bg-scale ~/Pictures/wallp & -volumeicon & lxsession & picom -b & tint2 & diff --git a/config/openbox/menu.xml b/config/openbox/menu.xml index 322d1ad..b33ce8e 100644 --- a/config/openbox/menu.xml +++ b/config/openbox/menu.xml @@ -66,7 +66,7 @@ - ~/.applications/todoist.appimage + ~/.applications/joplin.appimage @@ -85,10 +85,6 @@ kitty -e ranger - - yes - Ranger - @@ -133,14 +129,27 @@ + + + kitty + + + + + google-chrome-stable + + + + + rofi -show drun -theme ntenV2 + + + - - rofi -show drun -theme ntenV2 - diff --git a/config/openbox/nten.tar.gz b/config/openbox/nten.tar.gz new file mode 100644 index 0000000..28fc355 Binary files /dev/null and b/config/openbox/nten.tar.gz differ diff --git a/config/openbox/screen.png b/config/openbox/screen.png new file mode 100644 index 0000000..5d97c73 Binary files /dev/null and b/config/openbox/screen.png differ diff --git a/script/volume b/script/volume new file mode 100755 index 0000000..653360e --- /dev/null +++ b/script/volume @@ -0,0 +1,17 @@ +#!/bin/sh +CHK_MUTE() { amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off; } +VOLUME="$(amixer -D pulse get Master | grep '%' | head -n 1 | awk -F'[' '{print $2}' | awk -F'%' '{print $1}';)" + +case $1 in + percent) + if CHK_MUTE &> /dev/null + then + echo "" + else + echo " $VOLUME%" + fi + ;; + up) amixer sset Master 2%+ ;; + down) amixer sset Master 2%- ;; + mute) amixer sset Master toggle ;; +esac diff --git a/script/wifi-signal b/script/wifi-signal new file mode 100755 index 0000000..6129d50 --- /dev/null +++ b/script/wifi-signal @@ -0,0 +1,3 @@ +#!/bin/sh +SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')" +echo " $SIGNAL%"