all repos

dotfiles @ 8511aa4

my dotfiles
9 files changed, 57 insertions(+), 12 deletions(-)
Update openbox config
Author: Smirnov Alexandr ss2316544@gmail.com
Committed at: 2021-02-26 09:52:43 +0200
Parent: 2a67211
M config/bspwm/sxhkd

@@ -16,6 +16,10 @@ .applications/simplenote.appimage, \

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}
M config/nvim/init.vim

@@ -66,17 +66,15 @@ " Spell checker

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
A 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 +```
M 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 &
M config/openbox/menu.xml

@@ -66,7 +66,7 @@ </action>

</item> <item label="Joplin"> <action name="Execute"> - <command>~/.applications/todoist.appimage</command> + <command>~/.applications/joplin.appimage</command> </action> </item> <item label="Todoist">

@@ -85,10 +85,6 @@ <menu id="apps-fileman-menu" label="File Managers">

<item label="Ranger"> <action name="Execute"> <command>kitty -e ranger</command> - <startupnotify> - <enabled>yes</enabled> - <wmclass>Ranger</wmclass> - </startupnotify> </action> </item> <item label="Thunar">

@@ -133,14 +129,27 @@ </item>

</menu> <menu id="root-menu" label="Openbox"> + <item label="Terminal"> + <action name="Execute"> + <command>kitty</command> + </action> + </item> + <item label="Browser"> + <action name="Execute"> + <command>google-chrome-stable</command> + </action> + </item> + <item label="Rofi"> + <action name="Execute"> + <command>rofi -show drun -theme ntenV2</command> + </action> + </item> + <separator label="Categories" /> <menu id="apps-net-menu"/> <menu id="apps-editors-menu"/> <menu id="apps-term-menu"/> <menu id="apps-office-menu"/> <menu id="apps-fileman-menu"/> - <item label="Rofi"> - <action name="Execute"><command>rofi -show drun -theme ntenV2</command></action> - </item> <separator label="System" /> <menu id="system-menu" /> <menu id="power-menu" />
A config/openbox/nten.tar.gz

Not showing binary file.

A config/openbox/screen.png

Not showing binary file.

A 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
A 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%"