init
This commit is contained in:
commit
696f6c475d
26
blueberry/.config/berry/autostart
Executable file
26
blueberry/.config/berry/autostart
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
# autostart
|
||||
sxhkd -c $HOME/.config/berry/sxhkdrc &
|
||||
xrdb $HOME/.Xresources &
|
||||
hsetroot -cover /home/anya/Pictures/640.jpg &
|
||||
captain | lemonbar -p &
|
||||
picom --experimental-backends --config ~/picom.com -b &
|
||||
|
||||
# Set decoration geometry
|
||||
berryc border_width 0
|
||||
berryc inner_border_width 0
|
||||
berryc title_height 15
|
||||
berryc top_gap 15
|
||||
|
||||
# Set decoration colors
|
||||
berryc inner_focus_color 268BD2
|
||||
berryc inner_unfocus_color 17364B
|
||||
berryc text_focus_color ffffff
|
||||
berryc text_unfocus_color eeeeee
|
||||
|
||||
# Other options
|
||||
berryc smart_place "true"
|
||||
berryc draw_text "true"
|
||||
berryc edge_lock "false"
|
||||
berryc set_font "orp-8"
|
64
blueberry/.config/berry/sxhkdrc
Executable file
64
blueberry/.config/berry/sxhkdrc
Executable file
|
@ -0,0 +1,64 @@
|
|||
#
|
||||
# wm independent hotkeys
|
||||
#
|
||||
|
||||
# terminal emulator
|
||||
super + Return
|
||||
st
|
||||
|
||||
# launcher
|
||||
alt + space
|
||||
rofi -show run -modi run -sidebar-mode -terminal st
|
||||
|
||||
# window switcher
|
||||
alt + Tab
|
||||
rofi -show window -sidebar-mode -terminal st
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
alt + Escape
|
||||
killall berry
|
||||
# killall sxhkd
|
||||
# sxhkd -c $HOME/.config/berry/sxhkdrc
|
||||
|
||||
#
|
||||
# berry hotkeys
|
||||
#
|
||||
|
||||
super + {a, s, w, d}
|
||||
berryc window_resize {-50 0, 0 50, 0 -50, 50 0}
|
||||
|
||||
super + {h, j, k, l}
|
||||
berryc window_move {-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 + f
|
||||
berryc fullscreen
|
||||
|
||||
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
|
2
blueberry/.config/captain/captain.d/cpu
Normal file
2
blueberry/.config/captain/captain.d/cpu
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
echo cpu $[100-$(vmstat 1 2 | tail -1| awk '{print $15}')]%
|
2
blueberry/.config/captain/captain.d/date
Normal file
2
blueberry/.config/captain/captain.d/date
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
echo $(date +"%R %x")
|
15
blueberry/.config/captain/captain.d/meminfo
Normal file
15
blueberry/.config/captain/captain.d/meminfo
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
memused() {
|
||||
awk '/^Mem/ {print $3}' <(free -m)
|
||||
}
|
||||
|
||||
memtotal() {
|
||||
awk '/^Mem/ {print $2}' <(free -m)
|
||||
}
|
||||
|
||||
output() {
|
||||
echo "$(memused)M/$(memtotal)M"
|
||||
|
||||
|
||||
}
|
||||
output
|
2
blueberry/.config/captain/captain.d/name
Normal file
2
blueberry/.config/captain/captain.d/name
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
echo $USER
|
24
blueberry/.config/captain/captain.d/network
Executable file
24
blueberry/.config/captain/captain.d/network
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
# Dependencies: iwconfig, siji
|
||||
|
||||
wifi=$(cat /sys/class/net/wlp*/operstate)
|
||||
ethn=$(cat /sys/class/net/enp*/operstate)
|
||||
min=$(iwconfig 2>&1 | grep 'Link' | awk '{gsub(/[=/]/," "); print $3}')
|
||||
max=$(iwconfig 2>&1 | grep 'Link' | awk '{gsub(/[=/]/," "); print $4}')
|
||||
|
||||
if [[ "$wifi" == "up" ]]; then
|
||||
percentage=$(bc <<< "$min * 100 / $max")
|
||||
case $percentage in
|
||||
[1-9] ) token="" ;;
|
||||
[1-3]*) token="" ;;
|
||||
[4-5]*) token="" ;;
|
||||
[6-7]*) token="" ;;
|
||||
*) token="" ;;
|
||||
esac
|
||||
elif [[ "$ethn" == "up" ]]; then
|
||||
token=""
|
||||
else
|
||||
token=""
|
||||
fi
|
||||
|
||||
echo "$token"
|
5
blueberry/.config/captain/captain.d/title
Executable file
5
blueberry/.config/captain/captain.d/title
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
# Dependencies: xdotool, xtitle
|
||||
# Description: Show the currenly active window.
|
||||
|
||||
xtitle `xdotool getactivewindow`
|
29
blueberry/.config/captain/captain.d/window
Executable file
29
blueberry/.config/captain/captain.d/window
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env bash
|
||||
# Dependencies: bspc, siji
|
||||
|
||||
while read -r line; do
|
||||
case $line in
|
||||
W*) window=""
|
||||
IFS=':'
|
||||
set -- ${line#?}
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
O*) window="${window}%{F<#focused#>} %{F-}"
|
||||
;;
|
||||
F*) window="${window}%{F<#focused#>} %{F-}"
|
||||
;;
|
||||
U*) window="${window}%{F<#focused#>} %{F-}"
|
||||
;;
|
||||
o*) window="${window}%{F<#passive#>} %{F-}"
|
||||
;;
|
||||
f*) window="${window}%{F<#passive#>} %{F-}"
|
||||
;;
|
||||
u*) window="${window}%{F<#passive#>} %{F-}"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
;;
|
||||
esac
|
||||
echo "$window"
|
||||
done
|
32
blueberry/.config/captain/captainrc
Executable file
32
blueberry/.config/captain/captainrc
Executable file
|
@ -0,0 +1,32 @@
|
|||
|
||||
[bar]
|
||||
background = "#FF101010"
|
||||
foreground = "#FFFFFFFF"
|
||||
|
||||
format = " name|title| cpu meminfo | date"
|
||||
height = 15
|
||||
fonts = "orp-9"
|
||||
dock = "top"
|
||||
force = true
|
||||
offset = 0
|
||||
|
||||
[name]
|
||||
manual=true
|
||||
|
||||
[meminfo]
|
||||
manual = true
|
||||
|
||||
[date]
|
||||
underline = false
|
||||
reload = 5
|
||||
|
||||
[title]
|
||||
|
||||
scroll-up = "notify-send 'Scrolled up!'"
|
||||
scroll-down = "notify-send 'Scrolled down!'"
|
||||
mouse-middle = "notify-send 'Middle click!'"
|
||||
mouse-left = "notify-send 'Left click!'"
|
||||
mouse-right = "notify-send 'Right click!'"
|
||||
reload = "xtitle -s"
|
||||
|
||||
# vim:syntax=dosini
|
5
blueberry/.config/picom/picom.conf
Normal file
5
blueberry/.config/picom/picom.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
inactive-opacity = 0.7;
|
||||
active-opacity = 0.7
|
||||
inactive-dim = 0.0
|
||||
inactive-dim-fixed = 0
|
||||
use-ewmh-active-win = false
|
10
blueberry/.config/requirements.md
Normal file
10
blueberry/.config/requirements.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Blueberry
|
||||
|
||||
## REQUIREMENTS
|
||||
|
||||
`bash`
|
||||
`lemonbar`, & `captain`, which can be found [here] (https://github.com/muse/Captain).
|
||||
`rofi`
|
||||
`berry`
|
||||
`picom`
|
||||
`xrdb`
|
1
blueberry/.config/rofi/config
Normal file
1
blueberry/.config/rofi/config
Normal file
|
@ -0,0 +1 @@
|
|||
rofi.theme: /usr/share/rofi/themes/Paper.rasi
|
Loading…
Reference in a new issue