Update berry, i3, neofetch config & add ip scripts

This commit is contained in:
Smirnov Olexandr 2020-12-14 20:12:03 +02:00
parent 4f7f44d7f4
commit e6bd4f6c12
11 changed files with 85 additions and 120 deletions

View file

@ -1,21 +1,18 @@
#!/bin/bash
# ------ Autostart ------ #
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
sxhkd -c ~/.config/berry/sxhkdrc &
~/.config/berry/polybar/bar.sh &
nitrogen --restore &
picom -b &
conky &
# ------ Berry ------ #
# Set decoration geometry
berryc border_width 0
berryc inner_border_width 1
berryc title_height 0
berryc top_gap 0
berryc top_gap 24
# Set decoration colors
berryc focus_color 073642
@ -28,5 +25,5 @@ berryc text_unfocus_color eeeeee
# Other options
berryc smart_place "true"
berryc draw_text "true"
berryc edge_lock "false"
berryc edge_lock "true"
berryc set_font "Dina-9"

View file

@ -1,5 +1,6 @@
#!/bin/bash
killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar -c ~/.config/berry/polybar/polybar top &
polybar -c ~/.config/berry/polybar/polybar bom &
#polybar -c ~/.config/berry/polybar/polybar top &
#polybar -c ~/.config/berry/polybar/polybar bom &
polybar -c ~/.config/berry/polybar/polybar bar &

View file

@ -2,38 +2,25 @@
pseudo-transparency = true
[colors]
background = #002B36
foreground = #dfdfdf
secondary = #073642
alert = #268bd2
background = #262A2B
foreground = #FFFFFF
secondary = #CED4DA
alert = #DD6C6B
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[bar/top]
width = 14%
height = 22
[bar/bar]
height = 24
override-redirect = false
background = ${colors.background}
foreground = ${colors.foreground}
offset-x = 85.8%
offset-y = 0.4%
module-margin-left = 1
module-margin-right = 1
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
modules-center = keyboard pulseaudio wifi-signal time
[bar/bom]
width = 6%
height = 22
bottom = true
offset-x = 93.8%
offset-y = 0.4%
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
background = ${colors.background}
foreground = ${colors.foreground}
modules-left = t
tray-position = center
padding-left = 3
padding-right = 3
font-0 = Iosevka Nerd Font:style=Medium:size=10;3
font-1 = FontAwesome5Free:style=Solid:size=8;2.5
modules-left = wifi-signal date
modules-center = wp
modules-right = keyboard pulseaudio backlight time
[module/backlight]
type = internal/xbacklight
@ -44,14 +31,14 @@ ramp-0 = 
[module/wifi-signal]
type = custom/script
label =  %output:%%
exec = ~/.config/polybar/scripts/wifi-signal.sh
exec = cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*'
interval = 3.0
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-volume-foreground = ${colors.foreground}
label-muted = 
ramp-volume-0 = 
ramp-volume-1 = 
@ -59,11 +46,6 @@ ramp-volume-2 = 
ramp-volume-3 = 
ramp-volume-4 = 
[module/updates-pacman]
type = custom/script
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
interval = 60
[module/keyboard]
type = internal/xkeyboard
label-NAME-maxlen = 10
@ -85,6 +67,16 @@ interval = 0
time = %H:%M
label =  %time%
[module/t]
type = custom/text
content = " "
[module/wp]
type = internal/xworkspaces
format = <label-state>
label-active = ×
label-empty = ·
label-urgent = ~
label-active-foreground = ${colors.foreground}
label-active-background = ${colors.background}
label-active-padding = 1
label-empty-foreground = ${colors.secondary}
label-empty-padding =
label-urgent-foreground = ${colors.alert}
label-urgent-padding = 1

View file

@ -29,20 +29,18 @@ super + control + o
~/.script/dmenu/dmenu-sysmon.sh
# ------ Berry ------ #
super + {h, j, k, l}
super + control + r
pkill -USR1 -x sxhkd ; pkill polybar ; ~/.config/berry/polybar/bar.sh
super + shift {h, j, k, l}
berryc window_move {-50 0, 0 50, 0 -50, 50 0}
super + shift + {h, j, k, l}
super + control + {h, j, k, l}
berryc window_resize {-50 0, 0 50, 0 -50, 50 0}
super + {1-9}
berryc switch_workspace {0-9}
super + shift + {1-9}
berryc send_to_workspace {0-9}
super + m
super + F11
berryc window_monocle
super + p
berryc snap_right
super + o
berryc snap_left
super + n
berryc toggle_decorations
super + Tab