Dotfiles config update (2021-11-20)

This commit is contained in:
q3aql 2021-11-20 16:20:19 +01:00
parent 46557bc434
commit cc151f50e8
4 changed files with 35 additions and 11 deletions

View File

@ -46,7 +46,8 @@ mem() {
## DATE AND TIME
date_today() {
day_hour=$(date "+%a,%d %h [%H:%M]")
#day_hour=$(date "+%a,%d %h %H:%M")
day_hour=$(date "+%d %h %H:%M")
echo -e "${day_hour}"
}
@ -110,8 +111,8 @@ SLEEP_SEC=3
# So I would love to add more functions to this script but it makes the
# echo output too long to display correctly.
while :; do
echo "+@fg=5; $(kernel) +@fg=0; | +@fg=1; $(cpu) +@fg=0; | +@fg=2; $(mem) +@fg=0; | +@fg=3; $(hdd) +@fg=0; | +@fg=4; $(vol) +@fg=0; | +@fg=5; $(date_today_cut) +@fg=0;"
#echo "+@fg=5; $(kernel) +@fg=0; | +@fg=1; $(cpu) +@fg=0; | +@fg=2; $(mem) +@fg=0; | +@fg=3; $(hdd) +@fg=0; | +@fg=4; $(vol) +@fg=0; | +@fg=5; $(date_today) +@fg=0;"
#echo "+@fg=5; $(kernel) +@fg=0; | +@fg=1; $(cpu) +@fg=0; | +@fg=2; $(mem) +@fg=0; | +@fg=3; $(hdd) +@fg=0; | +@fg=4; $(vol) +@fg=0; | +@fg=5; $(date_today_cut) +@fg=0;"
echo "+@fg=5; $(kernel) +@fg=0; | +@fg=1; $(cpu) +@fg=0; | +@fg=2; $(mem) +@fg=0; | +@fg=3; $(hdd) +@fg=0; | +@fg=4; $(vol) +@fg=0; | +@fg=5; $(date_today) +@fg=0;"
#echo "+@fg=5; +@fn=1;+@fn=0; $(kernel) +@fg=0; | +@fg=1; +@fn=1;💻+@fn=0; $(cpu) +@fg=0; | +@fg=2; +@fn=1;💾+@fn=0; $(mem) +@fg=0; | +@fg=3; +@fn=1;💿+@fn=0; $(hdd) +@fg=0; | +@fg=4; +@fn=1;🔈+@fn=0; $(vol) +@fg=0; |"
sleep $SLEEP_SEC
done

View File

@ -18,8 +18,8 @@ color_focus = rgb:bb/c5/ff
color_focus_maximized = yellow
color_unfocus = rgb:88/88/88
color_unfocus_maximized = rgb:88/88/00
region_padding = 6
tile_gap = 6
region_padding = 8
tile_gap = 8
# Region containment
# Distance window must be dragged/resized beyond the region edge before it is
@ -33,7 +33,7 @@ tile_gap = 6
bar_action = ~/.config/spectrwm/baraction.sh
bar_action_expand = 200
bar_enabled = 1
bar_border_width = 5
bar_border_width = 6
bar_border[1] = rgb:28/2a/36
bar_border_unfocus[1] = rgb:28/2a/36
bar_color[1] = rgb:28/2a/36, rgb:00/80/80
@ -45,7 +45,9 @@ bar_font_color_selected = black
#bar_font = Mononoki Nerd Font:size=9
bar_font = Noto Sans Font:size=9
bar_justify = center
bar_format = +|L+1<+N:+I +S (+D) +W +|R+A+1<
#bar_format = +|L+1<+N:+I +S (+D) +W +|R+A+1<
#bar_format = +N:+I +S <+D>+4<%a %b %d %R %Z %Y+8<+A+4<+V
bar_format = +N:+I +S +P <+D>+4< +8<+A+4<+V
#bar_format = +N:+I +S <+D>+4<%a %b %d %R %Z %Y+8<+A+4<+V
workspace_indicator = listcurrent,listactive,markcurrent,printnames
bar_at_bottom = 0
@ -102,9 +104,9 @@ name = ws[3]:chat
name = ws[4]:files
name = ws[5]:media
name = ws[6]:game
name = ws[7]:work
name = ws[7]:vm
name = ws[8]:dev
name = ws[9]:tools
name = ws[9]:text
name = ws[10]:all
# Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2)
@ -254,6 +256,22 @@ bind[] = MOD+Shift+q # Disable close session
# program[screenshot_wind] = screenshot.sh window # optional
# program[initscr] = initscreen.sh # optional
## Volume Bindings
program[volup] = pactl set-sink-volume @DEFAULT_SINK@ +5%
program[voldown] = pactl set-sink-volume @DEFAULT_SINK@ -5%
program[mute] = pactl set-sink-mute @DEFAULT_SINK@ toggle
bind[volup] = XF86_AudioRaiseVolume
bind[voldown] = XF86_AudioLowerVolume
bind[mute] = XF86_AudioMute
## Brightmess Bindings
program[brightup] = light -A 10
#program[brightup] = xrandr --output HDMI1 --brightness 1.0
program[brightdown] = light -U 10
#program[brightdown] = xrandr --output HDMI1 --brightness 0.75
bind[brightup] = XF86_MonBrightnessUp
bind[brightdown] = XF86_MonBrightnessDown
# EXAMPLE: Define 'firefox' action and bind to key.
program[firefox] = firefox
bind[firefox] = MOD+b

View File

@ -17,7 +17,7 @@ dotfiles - My tiling i3 WM Configuration (for Devuan/Debian)
nitrogen lxrandr pnmixer conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom \
engrampa xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
xfce4-screenshooter xscreensaver
xfce4-screenshooter xscreensaver alsa-utils
````
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):

View File

@ -17,7 +17,7 @@ dotfiles - My tiling Spectrwm & i3 WM Configuration (for Devuan/Debian)
conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom engrampa \
xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
xfce4-screenshooter xscreensaver
xfce4-screenshooter xscreensaver alsa-utils pulseaudio-utils light xbacklight
````
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
@ -112,6 +112,11 @@ My list of extra combinations:
- Win + s = Open Xfce4-Screenshot
- Win + Delete = Poweroff screen
- Win + Shift + Delete = Close session
- Volume-Up = Volume +5
- Volume-Down = Volume -5
- VolumeMute = Mute Volume
- BrightnessUp = Brightness +10
- BrightnessDown = Brightness -10
### External links: