🎨 Update

This commit is contained in:
Smirnov Olexandr 2020-11-25 20:53:55 +02:00
parent 07805d44aa
commit 0d2b7d6ba3
28 changed files with 668 additions and 225 deletions

37
config/berry/README.md Normal file
View file

@ -0,0 +1,37 @@
# [Berry](https://berrywm.org)
![Seceenshot](screen.png)
---
### Autostart
~~~bash
sxhkd -c ~/.config/berry/sxhkdrc &
picom -b &
~/.config/berry/polybar/bar.sh &
nitrogen --restore &
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
~~~
### Keybindings
---------------
| Shourtcut | Command |
| ------------------------- | ------ |
| `mod` + q | Kill focus window |
| `mod` + `split` + enter | Run program launcher (Rofi) |
| `mod` + esc | Power [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-power.sh) |
| `mod` + `ctrl` + u | Config edit [menu](https://github.com/Smirnov-O/dotfiles/blob/master/scripts/dmenu/dmenu-config-edit.sh) |
| `mod` + `ctrl` + i | Passmenu(Dmenu interface for [pass](https://passwordstore.org)) |
| `mod` + enter | Run `kitty` |
| `mod` + F2 | Run `firefox` |
| `mod` + `shift` + esc | Run `xkill` |
| `mod` + plus | Add 5% volume |
| `mod` + minus | Minus 5% volume |
| `mod` + `shift` + minus | Mute volume |
| `mod` + tab | Change focus window |
| `mod` + h/j/k/l | Move focus window |
| `mod` + `shift` + h/j/k/l | Resize focus window |
| `mod` + [1-9] | Change workspace |
| `mod` + `shift` + [1-9] | Send focus window to workspace |
| `mod` + `alt` + t | Open ~/.todo file |

24
config/berry/autostart Executable file
View file

@ -0,0 +1,24 @@
#!/bin/bash
sxhkd -c ~/.config/berry/sxhkdrc &
picom -b &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
~/.config/berry/polybar/bar.sh &
nitrogen --restore &
berryc border_width 1
berryc inner_border_width 1
berryc title_height 0
berryc top_gap 0
berryc focus_color 073642
berryc unfocus_color 002b36
berryc inner_focus_color 268bd2
berryc inner_unfocus_color 002b36
berryc text_focus_color ffffff
berryc text_unfocus_color efefef
berryc smart_place "true"
berryc draw_text "true"
berryc edge_lock "true"
berryc set_font "Jetbrains Mono"

5
config/berry/polybar/bar.sh Executable file
View file

@ -0,0 +1,5 @@
#!/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 &

View file

@ -0,0 +1,90 @@
[settings]
pseudo-transparency = true
[colors]
background = #002B36
foreground = #dfdfdf
secondary = #073642
alert = #268bd2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[bar/top]
width = 14%
height = 22
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-center = t
tray-position = center
[module/backlight]
type = internal/xbacklight
format = <ramp> <label>
label = %percentage%%
ramp-0 = 
[module/wifi-signal]
type = custom/script
label =  %output:%%
exec = ~/.config/polybar/scripts/wifi-signal.sh
interval = 3.0
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = 
ramp-volume-0 = 
ramp-volume-1 = 
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
format-prefix = ""
label-layout =  %layout%
blacklist-0 = num lock
blacklist-1 = scroll lock
blacklist-2= caps lock
[module/date]
type = internal/date
interval = 600
date = %b %e
label =  %date%
[module/time]
type = internal/date
interval = 0
time = %H:%M
label =  %time%
[module/t]
type = custom/text
content = " "

View file

@ -0,0 +1,2 @@
#!/bin/sh
cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*'

BIN
config/berry/screen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 KiB

55
config/berry/sxhkdrc Normal file
View file

@ -0,0 +1,55 @@
# ------ Apps ------- #
super + F2
firefox
super + Return
kitty
super + shift + Escape
xkill
super + alt + t
kitty nvim .todo
# ------ Volum ------ #
super + equal
pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%
super + minus
pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -5%
super + shift + minus
pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle
# ------ Menus ------ #
super + shift + Return
rofi -show drun
super + Escape
~/.script/dmenu/dmenu-power.sh
super + control + i
passmenu -h 24 -p Passwoeds
super + control + u
~/.script/dmenu/dmenu-config-edit.sh
super + control + o
~/.script/dmenu/dmenu-sysmon.sh
# ------ Berry ------ #
super + {h, j, k, l}
berryc window_move {-50 0, 0 50, 0 -50, 50 0}
super + shift + {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
berryc window_monocle
super + p
berryc snap_right
super + o
berryc snap_left
super + n
berryc toggle_decorations
super + Tab
berryc cycle_focus
super + q
berryc window_close
super + c
berryc window_center
~button1
berryc pointer_focus