all repos

dotfiles @ 8511aa41303c76ec3725b5bae63090a29e0a60b5

i use rach linux btw
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
        16
                  betterlockscreen --off 180 -t "Computer is locked" -l, \

      
        17
        17
                  xkill                                                  }

      
        18
        18
         

      
        
        19
        +super + {_,shift} Print

      
        
        20
        +    {scrot -s, \

      
        
        21
        +     scrot     }

      
        
        22
        +

      
        19
        23
         super + {equal, minus, shift+minus}

      
        20
        24
             amixer sset Master {2%+,2%-,toggle}

      
        21
        25
         

      
M config/nvim/init.vim
···
        66
        66
         set nospell spelllang=en_us

      
        67
        67
         

      
        68
        68
         " Space/tab indicator

      
        69
        
        -set list listchars=tab:>·,trail:~,extends:>,precedes:<,space:·

      
        
        69
        +set list listchars=tab:\|·,trail:~,extends:>,precedes:<,space:·

      
        70
        70
         

      
        71
        71
         " Disable sound

      
        72
        72
         set visualbell t_vb=

      
        73
        73
         

      
        74
        
        -

      
        75
        74
         "== Settings for specific files

      
        76
        75
         autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``

      
        77
        76
         autocmd FileType python,go,json setlocal expandtab shiftwidth=4 tabstop=4

      
        78
        77
         autocmd FileType html,css,javascript,javascriptreact,yaml setlocal expandtab shiftwidth=2 tabstop=2

      
        79
        
        -

      
        80
        78
         

      
        81
        79
         "== Aliases

      
        82
        80
         command! W :w

      
A config/openbox/README.md
···
        
        1
        +# Openbox

      
        
        2
        +

      
        
        3
        +![](screen.png)

      
        
        4
        +---------------

      
        
        5
        +

      
        
        6
        +### Install

      
        
        7
        +```bash

      
        
        8
        +sudo pacman -S openbox tint2

      
        
        9
        +```

      
        
        10
        +

      
        
        11
        +### Install theme

      
        
        12
        +```bash

      
        
        13
        +mkdir ~/.theme

      
        
        14
        +tar -zxf nten.tar.gz -C ~/.themes

      
        
        15
        +```

      
M config/openbox/autostart
···
        1
        1
         #!/bin/sh

      
        2
        2
         setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &

      
        3
        3
         feh --randomize --bg-scale ~/Pictures/wallp &

      
        4
        
        -volumeicon &

      
        5
        4
         lxsession &

      
        6
        5
         picom -b &

      
        7
        6
         tint2 &

      
M config/openbox/menu.xml
···
        66
        66
           </item>

      
        67
        67
           <item label="Joplin">

      
        68
        68
             <action name="Execute">

      
        69
        
        -      <command>~/.applications/todoist.appimage</command>

      
        
        69
        +      <command>~/.applications/joplin.appimage</command>

      
        70
        70
             </action>

      
        71
        71
           </item>

      
        72
        72
           <item label="Todoist">

      ···
        85
        85
           <item label="Ranger">

      
        86
        86
             <action name="Execute">

      
        87
        87
               <command>kitty -e ranger</command>

      
        88
        
        -      <startupnotify>

      
        89
        
        -        <enabled>yes</enabled>

      
        90
        
        -        <wmclass>Ranger</wmclass>

      
        91
        
        -      </startupnotify>

      
        92
        88
             </action>

      
        93
        89
           </item>

      
        94
        90
           <item label="Thunar">

      ···
        133
        129
         </menu>

      
        134
        130
         

      
        135
        131
         <menu id="root-menu" label="Openbox">

      
        
        132
        +  <item label="Terminal">

      
        
        133
        +    <action name="Execute">

      
        
        134
        +      <command>kitty</command>

      
        
        135
        +    </action>

      
        
        136
        +  </item>

      
        
        137
        +  <item label="Browser">

      
        
        138
        +    <action name="Execute">

      
        
        139
        +      <command>google-chrome-stable</command>

      
        
        140
        +    </action>

      
        
        141
        +  </item>

      
        
        142
        +  <item label="Rofi">

      
        
        143
        +    <action name="Execute">

      
        
        144
        +      <command>rofi -show drun -theme ntenV2</command>

      
        
        145
        +    </action>

      
        
        146
        +  </item>

      
        
        147
        +  <separator label="Categories" />

      
        136
        148
           <menu id="apps-net-menu"/>

      
        137
        149
           <menu id="apps-editors-menu"/>

      
        138
        150
           <menu id="apps-term-menu"/>

      
        139
        151
           <menu id="apps-office-menu"/>

      
        140
        152
           <menu id="apps-fileman-menu"/>

      
        141
        
        -  <item label="Rofi">

      
        142
        
        -    <action name="Execute"><command>rofi -show drun -theme ntenV2</command></action>

      
        143
        
        -  </item>

      
        144
        153
           <separator label="System" />

      
        145
        154
           <menu id="system-menu" />

      
        146
        155
           <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
···
        
        1
        +#!/bin/sh

      
        
        2
        +CHK_MUTE() { amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off; }

      
        
        3
        +VOLUME="$(amixer -D pulse get Master | grep '%' | head -n 1 | awk -F'[' '{print $2}' | awk -F'%' '{print $1}';)"

      
        
        4
        +

      
        
        5
        +case $1 in

      
        
        6
        +    percent)

      
        
        7
        +        if CHK_MUTE &> /dev/null

      
        
        8
        +        then

      
        
        9
        +            echo ""

      
        
        10
        +        else

      
        
        11
        +            echo " $VOLUME%"

      
        
        12
        +        fi

      
        
        13
        +    ;;

      
        
        14
        +    up)   amixer sset Master 2%+    ;;

      
        
        15
        +    down) amixer sset Master 2%-    ;;

      
        
        16
        +    mute) amixer sset Master toggle ;;

      
        
        17
        +esac

      
A script/wifi-signal
···
        
        1
        +#!/bin/sh

      
        
        2
        +SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')"

      
        
        3
        +echo " $SIGNAL%"