8 files changed,
27 insertions(+),
22 deletions(-)
Author:
Smirnov Alexandr
ss2316544@gmail.com
Committed at:
2021-03-25 11:08:58 +0200
Parent:
351fd86
M
config/bspwm/bspwmrc
··· 1 1 #!/bin/sh 2 2 ###== Functions 3 -A() { 3 +A() { # AutoStart 4 4 if ! pgrep $1 5 5 then $@& fi 6 6 } 7 -C() { 7 +C() { # BSPWM config 8 8 bspc config $@ 9 9 } 10 -R() { 10 +R() { # BSPWM rule 11 11 bspc rule -a $@ 12 12 } 13 13 ··· 41 41 ###== BSPWM Rules 42 42 R kitty desktop='^1' focus=on follow=on 43 43 R Google-chrome desktop='^2' focus=on follow=on 44 -R LibreWolf desktop='^2' focus=on follow=on 45 44 R Code desktop='^3' focus=on follow=on 46 45 R '*:nvim' desktop='^3' focus=on follow=off 47 46 R Todoist desktop='^4' focus=on follow=off
M
config/bspwm/polybar/polybar
··· 23 23 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 24 24 modules-left = bspwm windowname 25 25 modules-center = time date weather 26 -modules-right = keyboard pulseaudio archupd wifi-signal 26 +modules-right = keyboard pulseaudio archupd wifi-signal 27 27 tray-position = right 28 28 tray-padding = 0 29 29 ··· 37 37 font-0 = Iosevka Nerd Font:style=Medium:size=8;3 38 38 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 39 39 modules-left = bspwm 40 -modules-right = keyboard pulseaudio time wifi-signal 40 +modules-right = keyboard pulseaudio archupd time wifi-signal 41 41 tray-position = right 42 42 43 43 [module/bspwm]
M
config/bspwm/polybar/scripts/updates-pacman-aur.sh
··· 1 -#!/bin/sh 1 +#!/usr/bin/env bash 2 2 if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then 3 3 updates_arch=0 4 4 fi 5 5 6 6 if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then 7 -# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then 8 -# if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then 9 -# if ! updates_aur=$(pikaur -Qua 2> /dev/null | wc -l); then 10 -# if ! updates_aur=$(rua upgrade --printonly 2> /dev/null | wc -l); then 11 7 updates_aur=0 12 8 fi 13 9
M
config/bspwm/polybar/scripts/weather.py
··· 1 1 import requests, os 2 + 2 3 API_KEY = os.getenv("OWM_POLYBAR") 3 4 CITY = os.getenv("OWM_CITY") 4 5 try: 5 - JSON = requests.get(f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}").json() 6 + JSON = requests.get( 7 + f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}" 8 + ).json() 6 9 print("", int(JSON["main"]["temp"]), "°С") 7 10 except Exception as e: 8 11 print(" err")
M
config/bspwm/sxhkd
··· 5 5 super + {_,shift} Return 6 6 {kitty, rofi -show drun -theme ntenV2} 7 7 8 -super + shift + {w, e, f, c, t, q} 9 - {google-chrome-stable, \ 10 - kitty --class nvim -e nvim, \ 11 - kitty --class ranger -e ranger, \ 12 - code, \ 13 - .applications/todoist.appimage, \ 14 - xkill } 8 +super + shift + {w, e, f, c, s, t, q} 9 + {google-chrome-stable, \ 10 + kitty --class nvim -e nvim, \ 11 + kitty --class ranger -e ranger, \ 12 + code, \ 13 + .applications/simplenote.appimage, \ 14 + .applications/todoist.appimage, \ 15 + xkill } 15 16 16 17 {_,shift,ctrl} Print 17 18 {scrot -s, scrot, scrot -u} ··· 25 26 26 27 ### == BSPWM keys 27 28 super + q 29 + bspc node -c 30 + 31 +alt + F4 28 32 bspc node -c 29 33 30 34 super + control + r
M
config/nvim/init.vim
··· 68 68 "== Settings for specific files 69 69 autocmd FileType python,json setlocal ex sw=4 ts=4 70 70 autocmd FileType go setlocal noex sw=4 ts=4 71 -autocmd FileType javascript,javascriptreact setlocal noet sw=2 ts=2 71 +autocmd FileType javascript,javascriptreact setlocal et sw=2 ts=2 72 72 autocmd FileType css,yaml setlocal ex sw=4 ts=4 73 73 74 74 "== Aliases