11 files changed,
85 insertions(+),
120 deletions(-)
Author:
Smirnov Olexandr
ss2316544@gmail.com
Committed at:
2020-12-14 20:12:03 +0200
Parent:
4f7f44d
A
bin/README.md
··· 1 + 2 +Scripts: 3 +- `arch_upd`: Update packages(pacman, aur) base on arch. 4 +- `extract`: Extract archive. 5 +- `giti`: Gitignore manager(For help exec: giti help). 6 +- `kbhl`: Enable/disable keyboard highlight scrlock. 7 +- `local-ip`: Get local IP addres. 8 +- `public-ip`: Get public IP addres.
A
bin/local-ip
··· 1 +#!/bin/sh 2 +ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | grep -v '172.[0-9][0-9].0.1'
M
config/berry/autostart
··· 1 1 #!/bin/bash 2 - 3 2 # ------ Autostart ------ # 4 -setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & 3 +setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & 5 4 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & 6 5 sxhkd -c ~/.config/berry/sxhkdrc & 7 6 ~/.config/berry/polybar/bar.sh & 8 7 nitrogen --restore & 9 8 picom -b & 10 -conky & 11 - 12 9 13 10 # ------ Berry ------ # 14 11 # Set decoration geometry 15 12 berryc border_width 0 16 13 berryc inner_border_width 1 17 14 berryc title_height 0 18 -berryc top_gap 0 15 +berryc top_gap 24 19 16 20 17 # Set decoration colors 21 18 berryc focus_color 073642 ··· 28 25 # Other options 29 26 berryc smart_place "true" 30 27 berryc draw_text "true" 31 -berryc edge_lock "false" 28 +berryc edge_lock "true" 32 29 berryc set_font "Dina-9"
M
config/berry/polybar/bar.sh
··· 1 1 #!/bin/bash 2 2 killall -q polybar 3 3 while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 4 -polybar -c ~/.config/berry/polybar/polybar top & 5 -polybar -c ~/.config/berry/polybar/polybar bom & 4 +#polybar -c ~/.config/berry/polybar/polybar top & 5 +#polybar -c ~/.config/berry/polybar/polybar bom & 6 +polybar -c ~/.config/berry/polybar/polybar bar &
M
config/berry/polybar/polybar
··· 2 2 pseudo-transparency = true 3 3 4 4 [colors] 5 -background = #002B36 6 -foreground = #dfdfdf 7 -secondary = #073642 8 -alert = #268bd2 5 +background = #262A2B 6 +foreground = #FFFFFF 7 +secondary = #CED4DA 8 +alert = #DD6C6B 9 9 10 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 11 -[bar/top] 12 -width = 14% 13 -height = 22 10 +[bar/bar] 11 +height = 24 14 12 override-redirect = false 15 13 background = ${colors.background} 16 14 foreground = ${colors.foreground} 17 -offset-x = 85.8% 18 -offset-y = 0.4% 19 15 module-margin-left = 1 20 16 module-margin-right = 1 21 -font-0 = Iosevka Nerd Font:style=Medium:size=8;3 22 -font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 23 -modules-center = keyboard pulseaudio wifi-signal time 24 - 25 -[bar/bom] 26 -width = 6% 27 -height = 22 28 -bottom = true 29 -offset-x = 93.8% 30 -offset-y = 0.4% 31 -font-0 = Iosevka Nerd Font:style=Medium:size=8;3 32 -font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 33 -background = ${colors.background} 34 -foreground = ${colors.foreground} 35 -modules-left = t 36 -tray-position = center 17 +padding-left = 3 18 +padding-right = 3 19 +font-0 = Iosevka Nerd Font:style=Medium:size=10;3 20 +font-1 = FontAwesome5Free:style=Solid:size=8;2.5 21 +modules-left = wifi-signal date 22 +modules-center = wp 23 +modules-right = keyboard pulseaudio backlight time 37 24 38 25 [module/backlight] 39 26 type = internal/xbacklight ··· 44 31 [module/wifi-signal] 45 32 type = custom/script 46 33 label = %output:%% 47 -exec = ~/.config/polybar/scripts/wifi-signal.sh 34 +exec = cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*' 48 35 interval = 3.0 49 36 50 37 [module/pulseaudio] 51 38 type = internal/pulseaudio 52 39 format-volume = <ramp-volume> <label-volume> 53 40 label-volume = %percentage%% 54 -label-volume-foreground = ${root.foreground} 41 +label-volume-foreground = ${colors.foreground} 55 42 label-muted = 56 43 ramp-volume-0 = 57 44 ramp-volume-1 = 58 45 ramp-volume-2 = 59 46 ramp-volume-3 = 60 47 ramp-volume-4 = 61 - 62 -[module/updates-pacman] 63 -type = custom/script 64 -exec = ~/.config/polybar/scripts/updates-pacman-aur.sh 65 -interval = 60 66 48 67 49 [module/keyboard] 68 50 type = internal/xkeyboard ··· 85 67 time = %H:%M 86 68 label = %time% 87 69 88 -[module/t] 89 -type = custom/text 90 -content = " " 70 +[module/wp] 71 +type = internal/xworkspaces 72 +format = <label-state> 73 +label-active = × 74 +label-empty = · 75 +label-urgent = ~ 76 +label-active-foreground = ${colors.foreground} 77 +label-active-background = ${colors.background} 78 +label-active-padding = 1 79 +label-empty-foreground = ${colors.secondary} 80 +label-empty-padding = 81 +label-urgent-foreground = ${colors.alert} 82 +label-urgent-padding = 1
M
config/berry/sxhkdrc
··· 29 29 ~/.script/dmenu/dmenu-sysmon.sh 30 30 31 31 # ------ Berry ------ # 32 -super + {h, j, k, l} 32 +super + control + r 33 + pkill -USR1 -x sxhkd ; pkill polybar ; ~/.config/berry/polybar/bar.sh 34 +super + shift {h, j, k, l} 33 35 berryc window_move {-50 0, 0 50, 0 -50, 50 0} 34 -super + shift + {h, j, k, l} 36 +super + control + {h, j, k, l} 35 37 berryc window_resize {-50 0, 0 50, 0 -50, 50 0} 36 38 super + {1-9} 37 39 berryc switch_workspace {0-9} 38 40 super + shift + {1-9} 39 41 berryc send_to_workspace {0-9} 40 -super + m 42 +super + F11 41 43 berryc window_monocle 42 -super + p 43 - berryc snap_right 44 -super + o 45 - berryc snap_left 46 44 super + n 47 45 berryc toggle_decorations 48 46 super + Tab
M
config/i3/config
··· 22 22 23 23 ############ Autostart ############ 24 24 exec --no-startup-id exec picom -b 25 -exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect Pechenka password 24032006 name net 26 -exec --no-startup-id exec redshift-gtk 25 +exec --no-startup-id exec nmcli radio wifi on && nmcli device wifi connect $(echo $WIFINAME) password $(echo $WIFIPASS) name net 26 +#exec --no-startup-id exec redshift-gtk 27 27 exec --no-startup-id exec nitrogen --restore 28 -exec --no-startup-id exec setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" 28 +exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" 29 29 exec --no-startup-id exec org.telegram.desktop 30 -exec --no-startup-id exec conky 30 +#exec --no-startup-id exec conky 31 31 #exec --no-startup-id exec discord 32 32 exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 33 33 exec_always --no-startup-id $HOME/.config/i3/bar.sh ··· 55 55 bindsym $mod+grave scratchpad show, floating disable 56 56 57 57 ### Launchers 58 -bindsym $mod+p exec "dmenu_run -h 24 -p Run" 59 -bindsym $mod+Shift+Return exec "rofi -show drun -drun-display-format '{name}'" 60 -bindsym $mod+Escape exec "~/.script/dmenu/dmenu-power.sh" 61 -bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh 58 +bindsym $mod+Shift+apostrophe exec "rofi -show run" 59 +bindsym $mod+Shift+Return exec "rofi -show drun" 60 +bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -h 24 61 +bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -h 24 62 62 bindsym $mod+Control+i exec passmenu -h 24 -p Passwords 63 -bindsym $alt+Tab exec "rofi -show window -show-icons" 64 -bindsym $mod+$alt+t exec $terminal nvim .todo 65 - 66 63 67 64 ### Applications 68 65 bindsym $mod+Return exec $terminal 69 66 bindsym $mod+F2 exec $browser 70 -bindsym $mod+F3 exec gnvim 71 67 bindsym $mod+F4 exec $filemanager 72 68 bindsym --release $mod+Shift+Escape exec xkill 69 +bindsym $mod+$alt+t exec $terminal nvim .todo 73 70 74 71 75 72 ### Sceenshot ··· 121 118 bindsym $mod+Shift+l move right 122 119 bindsym $mod+Shift+Right move right 123 120 121 +##### Restart focused window ###### 122 +bindsym $mod+Control+h resize shrink width 20 px or 20 ppt 123 +bindsym $mod+Control+Left resize shrink width 20 px or 20 ppt 124 +bindsym $mod+Control+j resize grow height 20 px or 20 ppt 125 +bindsym $mod+Control+Down resize grow height 20 px or 20 ppt 126 +bindsym $mod+Control+k resize shrink height 20 px or 20 ppt 127 +bindsym $mod+Control+Up resize shrink height 20 px or 20 ppt 128 +bindsym $mod+Control+l resize grow width 20 px or 20 ppt 129 +bindsym $mod+Control+Right resize grow width 20 px or 20 ppt 130 + 124 131 ############ Workspaces ########### 125 132 set $ws1 "1" 126 133 set $ws2 "2" ··· 153 160 bindsym $mod+Shift+9 move container to workspace $ws9 154 161 155 162 ############## Modes ############## 156 -bindsym $mod+r mode "resize" 157 163 bindsym $mod+g mode "gaps" 158 -mode "resize" { 159 - bindsym h resize shrink width 10 px or 10 ppt 160 - bindsym j resize grow height 10 px or 10 ppt 161 - bindsym k resize shrink height 10 px or 10 ppt 162 - bindsym l resize grow width 10 px or 10 ppt 163 - 164 - bindsym Left resize shrink width 10 px or 10 ppt 165 - bindsym Down resize grow height 10 px or 10 ppt 166 - bindsym Up resize shrink height 10 px or 10 ppt 167 - bindsym Right resize grow width 10 px or 10 ppt 168 - 169 - bindsym Return mode "default" 170 - bindsym Escape mode "default" 171 - bindsym $mod+r mode "default" 172 -} 173 164 mode "gaps" { 174 165 bindsym plus gaps inner current plus 2 175 166 bindsym minus gaps inner current minus 2 ··· 186 177 187 178 ############## Colors ############# 188 179 # Class Border Backgr Text Indicator Child_border 189 -client.focused #268bd2 #268bd2 #dfdfdf #268bd2 #268bd2 190 -client.focused_inactive #002b36 #002b36 #dfdfdf #002b36 #002b36 191 -client.unfocused #002b36 #002b36 #586e75 #002b36 #002b36 192 -client.urgent #002b36 #002b36 #ffffff #002b36 #002b36 193 -client.placeholder #000000 #000000 #ffffff #000000 #000000 194 -client.background #ffffff 180 +client.focused #008DCD #008DCD #FFFFFF #008DCD #008DCD 181 +client.focused_inactive #008DCD #002b36 #DFDFDF #002b36 #002b36 182 +client.unfocused #262A2B #262A2B #DFDFDF #262A2B #262A2B 183 +client.urgent #002b36 #262A2B #FFFFFF #262A2B #262A2B 184 +client.placeholder #000000 #000000 #FFFFFF #000000 #000000 185 +client.background #FFFFFF
M
config/polybar/config
··· 2 2 pseudo-transparency = true 3 3 4 4 [colors] 5 -; Solarized ======== 6 -;background = #002B36 7 -;foreground = #dfdfdf 8 -;secondary = #073642 9 -;alert = #268bd2 10 - 11 -; Smirnov-O Sheme == 12 5 background = #262A2B 13 6 foreground = #ffffff 14 -secondary = #111B1A 15 -alert = #008dcd 16 - 17 -; Nord ============= 18 -;background = #2E3440 19 -;foreground = #ECEFF4 20 -;secondary = #434C5E 21 -;alert = #88C0D0 7 +secondary = #008DCD 8 +alert = #008DCD 22 9 23 -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 24 10 [bar/i3bar] 25 11 width = 100% 26 12 height = 24 27 13 28 14 fixed-center = true 29 15 wm-restack = i3 30 -;override-redirect = true 31 - 32 16 background = ${colors.background} 33 17 foreground = ${colors.foreground} 34 - 35 -line-size = 3 36 -line-color = #000000 37 - 38 -#padding-left = 2 39 -#padding-right = 2 40 - 41 -#radius = 6.0 42 -#border-left-size = 0.2% 43 -#border-top-size = 0.2% 44 -#border-right-size = 0.2% 45 - 46 18 module-margin-left = 1 47 19 module-margin-right = 1 48 - 49 20 font-0 = Iosevka Nerd Font:style=Medium:size=8;3 50 21 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 51 22 font-2 = Weather Icons:size=7;2 ··· 64 35 index-sort = false 65 36 wrapping-scroll = false 66 37 label-mode-padding = 1 67 -label-mode-foreground = #000 68 38 label-mode-background = ${colors.alert} 69 39 70 40 label-focused = %icon%