mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update openbox config
This commit is contained in:
parent
2a67211908
commit
8511aa4130
9 changed files with 57 additions and 12 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
15
config/openbox/README.md
Normal file
15
config/openbox/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Openbox
|
||||
|
||||

|
||||
---------------
|
||||
|
||||
### Install
|
||||
```bash
|
||||
sudo pacman -S openbox tint2
|
||||
```
|
||||
|
||||
### Install theme
|
||||
```bash
|
||||
mkdir ~/.theme
|
||||
tar -zxf nten.tar.gz -C ~/.themes
|
||||
```
|
||||
|
|
@ -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 &
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
</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 @@
|
|||
<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 @@
|
|||
</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" />
|
||||
|
|
|
|||
BIN
config/openbox/nten.tar.gz
Normal file
BIN
config/openbox/nten.tar.gz
Normal file
Binary file not shown.
BIN
config/openbox/screen.png
Normal file
BIN
config/openbox/screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
17
script/volume
Executable file
17
script/volume
Executable file
|
|
@ -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
|
||||
3
script/wifi-signal
Executable file
3
script/wifi-signal
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')"
|
||||
echo " $SIGNAL%"
|
||||
Loading…
Add table
Add a link
Reference in a new issue