commit 696f6c475d3bad1e76b793596b501c3feef66a09 Author: oko Date: Wed May 19 05:52:07 2021 -0700 init diff --git a/blueberry/.config/berry/autostart b/blueberry/.config/berry/autostart new file mode 100755 index 0000000..cbf1273 --- /dev/null +++ b/blueberry/.config/berry/autostart @@ -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" diff --git a/blueberry/.config/berry/sxhkdrc b/blueberry/.config/berry/sxhkdrc new file mode 100755 index 0000000..91729cf --- /dev/null +++ b/blueberry/.config/berry/sxhkdrc @@ -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 diff --git a/blueberry/.config/captain/captain.d/cpu b/blueberry/.config/captain/captain.d/cpu new file mode 100644 index 0000000..1414159 --- /dev/null +++ b/blueberry/.config/captain/captain.d/cpu @@ -0,0 +1,2 @@ +#!/bin/bash +echo cpu $[100-$(vmstat 1 2 | tail -1| awk '{print $15}')]% diff --git a/blueberry/.config/captain/captain.d/date b/blueberry/.config/captain/captain.d/date new file mode 100644 index 0000000..6591c51 --- /dev/null +++ b/blueberry/.config/captain/captain.d/date @@ -0,0 +1,2 @@ +#!/bin/bash +echo $(date +"%R %x") \ No newline at end of file diff --git a/blueberry/.config/captain/captain.d/meminfo b/blueberry/.config/captain/captain.d/meminfo new file mode 100644 index 0000000..13b6228 --- /dev/null +++ b/blueberry/.config/captain/captain.d/meminfo @@ -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 \ No newline at end of file diff --git a/blueberry/.config/captain/captain.d/name b/blueberry/.config/captain/captain.d/name new file mode 100644 index 0000000..4eb0ced --- /dev/null +++ b/blueberry/.config/captain/captain.d/name @@ -0,0 +1,2 @@ +#!/bin/bash +echo $USER \ No newline at end of file diff --git a/blueberry/.config/captain/captain.d/network b/blueberry/.config/captain/captain.d/network new file mode 100755 index 0000000..0c1a9c6 --- /dev/null +++ b/blueberry/.config/captain/captain.d/network @@ -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" diff --git a/blueberry/.config/captain/captain.d/title b/blueberry/.config/captain/captain.d/title new file mode 100755 index 0000000..18c4293 --- /dev/null +++ b/blueberry/.config/captain/captain.d/title @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# Dependencies: xdotool, xtitle +# Description: Show the currenly active window. + +xtitle `xdotool getactivewindow` diff --git a/blueberry/.config/captain/captain.d/window b/blueberry/.config/captain/captain.d/window new file mode 100755 index 0000000..2bd2eab --- /dev/null +++ b/blueberry/.config/captain/captain.d/window @@ -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 diff --git a/blueberry/.config/captain/captainrc b/blueberry/.config/captain/captainrc new file mode 100755 index 0000000..542d80c --- /dev/null +++ b/blueberry/.config/captain/captainrc @@ -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 diff --git a/blueberry/.config/picom/picom.conf b/blueberry/.config/picom/picom.conf new file mode 100644 index 0000000..8187303 --- /dev/null +++ b/blueberry/.config/picom/picom.conf @@ -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 \ No newline at end of file diff --git a/blueberry/.config/requirements.md b/blueberry/.config/requirements.md new file mode 100644 index 0000000..ad4daa5 --- /dev/null +++ b/blueberry/.config/requirements.md @@ -0,0 +1,10 @@ +# Blueberry + +## REQUIREMENTS + +`bash` +`lemonbar`, & `captain`, which can be found [here] (https://github.com/muse/Captain). +`rofi` +`berry` +`picom` +`xrdb` diff --git a/blueberry/.config/rofi/config b/blueberry/.config/rofi/config new file mode 100644 index 0000000..e47e8a6 --- /dev/null +++ b/blueberry/.config/rofi/config @@ -0,0 +1 @@ +rofi.theme: /usr/share/rofi/themes/Paper.rasi