Dotfiles config update (2021-11-26)
This commit is contained in:
parent
c12d02597e
commit
3200027de7
|
@ -1,18 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Spectrwm autostart script
|
||||
#sleep 5
|
||||
|
||||
trayer \
|
||||
--monitor primary \
|
||||
--edge top \
|
||||
--widthtype pixel \
|
||||
--width 100 \
|
||||
--heighttype pixel \
|
||||
--height 18 \
|
||||
--align right \
|
||||
--margin 455 \
|
||||
--transparent true \
|
||||
--alpha 0 \
|
||||
--tint 0x0F101A \
|
||||
--iconspacing 3 \
|
||||
--distance 1 &
|
||||
# Clipboard (Use Win + Shift + t to show it)
|
||||
diodon &
|
||||
|
||||
# Audio tray
|
||||
pnmixer -t &
|
||||
|
||||
# Network Tray (Use Win + Shift + t to show it)
|
||||
#nm-applet &
|
||||
connman-gtk --tray &
|
||||
|
|
32
.config/spectrwm/showtray.sh
Executable file
32
.config/spectrwm/showtray.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Detect running process tint2
|
||||
check_process2=$(ps -e | grep tint2 | tr -s " " | cut -d " " -f 2 | head -1)
|
||||
check_process3=$(ps -e | grep tint2 | tr -s " " | cut -d " " -f 3 | head -1)
|
||||
check_process4=$(ps -e | grep tint2 | tr -s " " | cut -d " " -f 4 | head -1)
|
||||
check_process5=$(ps -e | grep tint2 | tr -s " " | cut -d " " -f 5 | head -1)
|
||||
check_process6=$(ps -e | grep tint2 | tr -s " " | cut -d " " -f 6 | head -1)
|
||||
check_process7=$(ps -e | grep tint2 | tr -s " " | cut -d " " -f 7 | head -1)
|
||||
|
||||
if [ "${check_process2}" == "tint2" ] ; then
|
||||
killall -9 tint2
|
||||
elif [ "${check_process3}" == "tint2" ] ; then
|
||||
killall -9 tint2
|
||||
elif [ "${check_process4}" == "tint2" ] ; then
|
||||
killall -9 tint2
|
||||
elif [ "${check_process5}" == "tint2" ] ; then
|
||||
killall -9 tint2
|
||||
elif [ "${check_process6}" == "tint2" ] ; then
|
||||
killall -9 tint2
|
||||
elif [ "${check_process7}" == "tint2" ] ; then
|
||||
killall -9 tint2
|
||||
else
|
||||
G_SLICE=always-malloc
|
||||
killall -9 pnmixer
|
||||
killall -9 nm-applet
|
||||
killall -9 diodon
|
||||
killall -9 conmman-gtk
|
||||
~/.config/spectrwm/autostart.sh &
|
||||
tint2 -c ~/.config/spectrwm/tint2rc &
|
||||
fi
|
||||
|
|
@ -78,9 +78,6 @@ urgent_enabled = 1
|
|||
# autorun = ws[2]:xombrero http://www.openbsd.org
|
||||
autorun = ws[1]:~/.config/spectrwm/startwallpaper.sh
|
||||
|
||||
# Applet for audio
|
||||
autorun = ws[1]:pnmixer -t
|
||||
|
||||
# Configure screens and resolution
|
||||
autorun = ws[1]:~/.config/spectrwm/startxrandr.sh
|
||||
|
||||
|
@ -90,8 +87,8 @@ autorun = ws[1]:~/.config/spectrwm/startcompositor.sh
|
|||
# Start xscreensaver
|
||||
autorun = ws[1]:xscreensaver
|
||||
|
||||
# Clipboard (Diodon)
|
||||
#autorun = ws[1]:diodon
|
||||
# Autostart script
|
||||
autorun = ws[1]:~/.config/spectrwm/autostart.sh
|
||||
|
||||
# Customize workspace layout at start
|
||||
# layout = ws[1]:4:0:0:0:vertical
|
||||
|
@ -324,6 +321,9 @@ bind[xfce4-screenshooter] = MOD+s
|
|||
program[nitrogen] = nitrogen
|
||||
bind[nitrogen] = MOD+z
|
||||
|
||||
program[showtray] = ~/.config/spectrwm/showtray.sh
|
||||
bind[showtray] = MOD+Shift+t
|
||||
|
||||
# QUIRKS
|
||||
# Default quirks, remove with: quirk[class:name] = NONE
|
||||
quirk[Nitrogen:nitrogen] = FLOAT
|
||||
|
|
126
.config/spectrwm/tint2rc
Normal file
126
.config/spectrwm/tint2rc
Normal file
|
@ -0,0 +1,126 @@
|
|||
# Tint2 config file
|
||||
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
|
||||
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
|
||||
|
||||
|
||||
# Background definitions
|
||||
# ID 1
|
||||
#rounded = 7
|
||||
#border_width = 2
|
||||
|
||||
|
||||
# ID 2
|
||||
#rounded = 5
|
||||
#border_width = 0
|
||||
#background_color = #FFFFFF 40
|
||||
#border_color = #FFFFFF 48
|
||||
|
||||
|
||||
# ID 3
|
||||
#rounded = 5
|
||||
#border_width = 0
|
||||
#background_color = #FFFFFF 16
|
||||
#border_color = #FFFFFF 68
|
||||
|
||||
|
||||
# Panel
|
||||
panel_monitor = all
|
||||
panel_position = top right horizontal
|
||||
panel_size = 10% 25
|
||||
panel_margin = 0 1
|
||||
panel_padding = 7 0 7
|
||||
panel_dock = 0
|
||||
#wm_menu = 0
|
||||
panel_layer = top
|
||||
#panel_background_id = 1
|
||||
background_color = #282A36 100
|
||||
border_color = #282A36 100
|
||||
|
||||
# Panel Autohide
|
||||
#autohide = 1
|
||||
#autohide_show_timeout = 0.3
|
||||
#autohide_hide_timeout = 2
|
||||
#autohide_height = 0
|
||||
#strut_policy = follow_size
|
||||
|
||||
# Taskbar
|
||||
#taskbar_mode = multi_desktop
|
||||
#taskbar_padding = 2 3 2
|
||||
#taskbar_background_id = 0
|
||||
#taskbar_active_background_id = 0
|
||||
|
||||
# Tasks
|
||||
#urgent_nb_of_blink = 8
|
||||
#task_icon = 1
|
||||
#task_text = 1
|
||||
#task_centered = 1
|
||||
#task_maximum_size = 140 35
|
||||
#task_padding = 6 2
|
||||
#task_background_id = 3
|
||||
#task_active_background_id = 2
|
||||
#task_urgent_background_id = 2
|
||||
#task_iconified_background_id = 3
|
||||
|
||||
# Task Icons
|
||||
#task_icon_asb = 70 0 0
|
||||
#task_active_icon_asb = 100 0 0
|
||||
#task_urgent_icon_asb = 100 0 0
|
||||
#task_iconified_icon_asb = 70 0 0
|
||||
|
||||
# Fonts
|
||||
task_font = Noto Sans 7
|
||||
task_font_color = #282A36 100
|
||||
task_active_font_color = #282A36 100
|
||||
task_urgent_font_color = #282A36 100
|
||||
task_iconified_font_color = #282A36 100
|
||||
font_shadow = 0
|
||||
|
||||
# System Tray
|
||||
systray = 1
|
||||
systray_padding = 0 4 5
|
||||
systray_sort = ascending
|
||||
systray_background_id = 0
|
||||
systray_icon_size = 16
|
||||
systray_icon_asb = 100 0 0
|
||||
|
||||
# Clock
|
||||
#time1_format = %H:%M
|
||||
#time1_font = sans 8
|
||||
#time2_format = %a %B %d
|
||||
#time2_font = sans 6
|
||||
#clock_font_color = #FFFFFF 74
|
||||
#clock_padding = 1 0
|
||||
#clock_background_id = 0
|
||||
#clock_rclick_command = orage
|
||||
|
||||
|
||||
# Tooltips
|
||||
#tooltip = 0
|
||||
#tooltip_padding = 2 2
|
||||
#tooltip_show_timeout = 0.7
|
||||
#tooltip_hide_timeout = 0.3
|
||||
#tooltip_background_id = 1
|
||||
#tooltip_font = sans 10
|
||||
#tooltip_font_color = #000000 80
|
||||
|
||||
|
||||
# Mouse
|
||||
mouse_middle = none
|
||||
#mouse_right = close
|
||||
mouse_scroll_up = toggle
|
||||
mouse_scroll_down = iconify
|
||||
|
||||
|
||||
# Battery
|
||||
#battery = 0
|
||||
#battery_low_status = 10
|
||||
#battery_low_cmd = notify-send "battery low"
|
||||
#battery_hide = 98
|
||||
#bat1_font = sans 8
|
||||
#bat2_font = sans 6
|
||||
#battery_font_color = #FFFFFF 74
|
||||
#battery_padding = 1 0
|
||||
#battery_background_id = 0
|
||||
|
||||
|
||||
# End of config
|
11
README.md
11
README.md
|
@ -13,7 +13,7 @@ dotfiles - My tiling Spectrwm & i3 WM Configuration (for Devuan/Debian)
|
|||
|
||||
```shell
|
||||
$ sudo apt-get install spectrwm compton arc-theme breeze-cursor-theme \
|
||||
fonts-noto papirus-icon-theme lxappearance nitrogen lxrandr pnmixer \
|
||||
fonts-noto papirus-icon-theme lxappearance nitrogen lxrandr pnmixer tint2 \
|
||||
conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom engrampa ristretto \
|
||||
xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
|
||||
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
|
||||
|
@ -50,7 +50,7 @@ dotfiles - My tiling Spectrwm & i3 WM Configuration (for Devuan/Debian)
|
|||
* **`Network Manager (Connman or NetWorkManager):`**
|
||||
|
||||
* By default is enabled `NetWorkManager` as network manager:
|
||||
* If you prefer Connman, edit the file `~/.config/spectrwm/spectrwm.conf`:
|
||||
* If you prefer Connman, edit the file `~/.config/spectrwm/spectrwm.conf` and `autostart.sh`:
|
||||
|
||||
```shell
|
||||
# Choose between NetworkManager or Connman
|
||||
|
@ -59,6 +59,12 @@ dotfiles - My tiling Spectrwm & i3 WM Configuration (for Devuan/Debian)
|
|||
bind[connection] = MOD+c
|
||||
````
|
||||
|
||||
```shell
|
||||
# Network Tray (Use Win + Shift + t to show it)
|
||||
#nm-applet &
|
||||
connman-gtk --tray &
|
||||
````
|
||||
|
||||
* **`Monitor & resolution:`**
|
||||
|
||||
* The configuration load my monitor configuration:
|
||||
|
@ -99,6 +105,7 @@ My list of extra combinations:
|
|||
- Win + x = Close Window
|
||||
- Win + w = Minimize Window
|
||||
- Win + Shift + w = Maximize/Search Window
|
||||
- Win + Shift + t = Show/Hide Tray
|
||||
- Win + c = Open network configuration
|
||||
- Win + v = Open volume configuration (Pavucontrol)
|
||||
- Win + Return = Open terminal (Alacritty)
|
||||
|
|
Loading…
Reference in New Issue
Block a user