Dotfiles config update (2021-12-13)
This commit is contained in:
parent
dd3b89edbd
commit
7215c33735
|
@ -46,8 +46,8 @@ exec --no-startup-id "sleep 15 && picom &"
|
||||||
# Configure wallpaper
|
# Configure wallpaper
|
||||||
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
||||||
|
|
||||||
# Configure xscreensaver
|
# Configure screensaver
|
||||||
exec --no-startup-id "sleep 5 && xscreensaver &"
|
exec --no-startup-id ~/.config/i3/startscreensaver.sh &
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
|
|
@ -46,8 +46,8 @@ exec --no-startup-id "sleep 15 && picom &"
|
||||||
# Configure wallpaper
|
# Configure wallpaper
|
||||||
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/abstract.png"
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/abstract.png"
|
||||||
|
|
||||||
# Configure xscreensaver
|
# Configure screensaver
|
||||||
exec --no-startup-id "sleep 5 && xscreensaver &"
|
exec --no-startup-id ~/.config/i3/startscreensaver.sh &
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
|
|
@ -46,8 +46,8 @@ exec --no-startup-id "sleep 15 && picom &"
|
||||||
# Configure wallpaper
|
# Configure wallpaper
|
||||||
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
||||||
|
|
||||||
# Configure xscreensaver
|
# Configure screensaver
|
||||||
exec --no-startup-id "sleep 5 && xscreensaver &"
|
exec --no-startup-id ~/.config/i3/startscreensaver.sh &
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
|
|
@ -46,8 +46,8 @@ exec --no-startup-id "sleep 15 && picom &"
|
||||||
# Configure wallpaper
|
# Configure wallpaper
|
||||||
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
||||||
|
|
||||||
# Configure xscreensaver
|
# Configure screensaver
|
||||||
exec --no-startup-id "sleep 5 && xscreensaver &"
|
exec --no-startup-id ~/.config/i3/startscreensaver.sh &
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
|
19
.config/i3/startscreensaver.sh
Executable file
19
.config/i3/startscreensaver.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
|
||||||
|
# Init screensaver
|
||||||
|
sleep 5
|
||||||
|
if [ "${ScreensaverProgram}" == "xautolock" ] ; then
|
||||||
|
echo "Using 'xautolock' as screensaver program"
|
||||||
|
xautolock -time ${ScreensaverTime} -locker "xset dpms force off"
|
||||||
|
elif [ "${ScreensaverProgram}" == "xscreensaver" ] ; then
|
||||||
|
echo "Using 'xscreensaver' as screensaver program"
|
||||||
|
xscreensaver &
|
||||||
|
else
|
||||||
|
echo "Using 'xautolock' as screensaver program"
|
||||||
|
xautolock -time ${ScreensaverTime} -locker "xset dpms force off"
|
||||||
|
fi
|
||||||
|
|
|
@ -38,7 +38,7 @@ monitor = ${env:MONITOR:}
|
||||||
;monitor = ${env:MONITOR:DisplayPort-0}
|
;monitor = ${env:MONITOR:DisplayPort-0}
|
||||||
;monitor = ${env:MONITOR:DisplayPort-1}
|
;monitor = ${env:MONITOR:DisplayPort-1}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 26
|
height = 28
|
||||||
;override-redirect = true
|
;override-redirect = true
|
||||||
;offset-x = 25%
|
;offset-x = 25%
|
||||||
;offset-y = 0%
|
;offset-y = 0%
|
||||||
|
|
|
@ -84,8 +84,8 @@ autorun = ws[1]:~/.config/spectrwm/startxrandr.sh
|
||||||
# Load compton of picom
|
# Load compton of picom
|
||||||
autorun = ws[1]:~/.config/spectrwm/startcompositor.sh
|
autorun = ws[1]:~/.config/spectrwm/startcompositor.sh
|
||||||
|
|
||||||
# Start xscreensaver
|
# Start screensaver
|
||||||
autorun = ws[1]:xscreensaver
|
autorun = ws[1]:~/.config/spectrwm/startscreensaver.sh
|
||||||
|
|
||||||
# Autostart script
|
# Autostart script
|
||||||
#autorun = ws[1]:~/.config/spectrwm/autostart.sh
|
#autorun = ws[1]:~/.config/spectrwm/autostart.sh
|
||||||
|
|
|
@ -84,8 +84,8 @@ autorun = ws[1]:~/.config/spectrwm/startxrandr.sh
|
||||||
# Load compton of picom
|
# Load compton of picom
|
||||||
autorun = ws[1]:~/.config/spectrwm/startcompositor.sh
|
autorun = ws[1]:~/.config/spectrwm/startcompositor.sh
|
||||||
|
|
||||||
# Start xscreensaver
|
# Start screensaver
|
||||||
autorun = ws[1]:xscreensaver
|
autorun = ws[1]:~/.config/spectrwm/startscreensaver.sh
|
||||||
|
|
||||||
# Autostart script
|
# Autostart script
|
||||||
autorun = ws[1]:~/.config/spectrwm/autostart.sh
|
autorun = ws[1]:~/.config/spectrwm/autostart.sh
|
||||||
|
|
|
@ -84,8 +84,8 @@ autorun = ws[1]:~/.config/spectrwm/startxrandr.sh
|
||||||
# Load compton of picom
|
# Load compton of picom
|
||||||
autorun = ws[1]:~/.config/spectrwm/startcompositor.sh
|
autorun = ws[1]:~/.config/spectrwm/startcompositor.sh
|
||||||
|
|
||||||
# Start xscreensaver
|
# Start screensaver
|
||||||
autorun = ws[1]:xscreensaver
|
autorun = ws[1]:~/.config/spectrwm/startscreensaver.sh
|
||||||
|
|
||||||
# Autostart script
|
# Autostart script
|
||||||
#autorun = ws[1]:~/.config/spectrwm/autostart.sh
|
#autorun = ws[1]:~/.config/spectrwm/autostart.sh
|
||||||
|
|
19
.config/spectrwm/startscreensaver.sh
Executable file
19
.config/spectrwm/startscreensaver.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
|
||||||
|
# Init screensaver
|
||||||
|
sleep 5
|
||||||
|
if [ "${ScreensaverProgram}" == "xautolock" ] ; then
|
||||||
|
echo "Using 'xautolock' as screensaver program"
|
||||||
|
xautolock -time ${ScreensaverTime} -locker "xset dpms force off"
|
||||||
|
elif [ "${ScreensaverProgram}" == "xscreensaver" ] ; then
|
||||||
|
echo "Using 'xscreensaver' as screensaver program"
|
||||||
|
xscreensaver &
|
||||||
|
else
|
||||||
|
echo "Using 'xautolock' as screensaver program"
|
||||||
|
xautolock -time ${ScreensaverTime} -locker "xset dpms force off"
|
||||||
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Basic configuration variables
|
# Basic configuration variables
|
||||||
ScreensaverTime="900" # 15 minutes
|
ScreensaverTime="1200" # 20 minutes
|
||||||
monitorOne="DP-1" # First monitor
|
monitorOne="DP-1" # First monitor
|
||||||
monitorTwo="DP-2" # Second monitor
|
monitorTwo="DP-2" # Second monitor
|
||||||
monitorThree="" # Third monitor
|
monitorThree="" # Third monitor
|
||||||
|
@ -71,6 +71,7 @@ if [ -z "${1}" ] ; then
|
||||||
# Kill previous process
|
# Kill previous process
|
||||||
echo "Trying to kill previous process"
|
echo "Trying to kill previous process"
|
||||||
killall -9 swayidle
|
killall -9 swayidle
|
||||||
|
sleep 3
|
||||||
# Init swayidle command
|
# Init swayidle command
|
||||||
swayidle timeout ${ScreensaverTime} "bash ${0} sleep" resume "bash ${0} resume"
|
swayidle timeout ${ScreensaverTime} "bash ${0} sleep" resume "bash ${0} resume"
|
||||||
elif [ "${1}" == "sleep" ] ; then
|
elif [ "${1}" == "sleep" ] ; then
|
||||||
|
|
|
@ -24,7 +24,7 @@ dotfiles - My tiling i3 + i3blocks configuration (for Devuan/Debian)
|
||||||
nitrogen lxrandr pnmixer conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom \
|
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 \
|
engrampa xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
|
||||||
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
|
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
|
||||||
xfce4-screenshooter xscreensaver alsa-utils ristretto
|
xfce4-screenshooter xscreensaver alsa-utils ristretto xautolock
|
||||||
````
|
````
|
||||||
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
|
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
|
||||||
|
|
||||||
|
@ -92,6 +92,17 @@ dotfiles - My tiling i3 + i3blocks configuration (for Devuan/Debian)
|
||||||
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/abstract.png"
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/abstract.png"
|
||||||
````
|
````
|
||||||
|
|
||||||
|
* **`Set Screensaver (Optional):`**
|
||||||
|
|
||||||
|
* The configuration file set `xautolock` with 20 minutes as screensaver:
|
||||||
|
* You can change the program between `xautolock` and `xscreensaver` editing the file `~/.config/i3/startscreensaver.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
````
|
||||||
|
|
||||||
* **`Enable Gaps (Optional):`**
|
* **`Enable Gaps (Optional):`**
|
||||||
|
|
||||||
* My config work on vanilla i3wm and gaps are disabled.
|
* My config work on vanilla i3wm and gaps are disabled.
|
||||||
|
|
|
@ -24,7 +24,7 @@ dotfiles - My tiling i3 + polybar configuration (for Devuan/Debian)
|
||||||
nitrogen lxrandr pnmixer conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom \
|
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 \
|
engrampa xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
|
||||||
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
|
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
|
||||||
xfce4-screenshooter xscreensaver alsa-utils ristretto polybar
|
xfce4-screenshooter xscreensaver alsa-utils ristretto polybar xautolock
|
||||||
````
|
````
|
||||||
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
|
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
|
||||||
|
|
||||||
|
@ -92,6 +92,17 @@ dotfiles - My tiling i3 + polybar configuration (for Devuan/Debian)
|
||||||
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/abstract.png"
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/abstract.png"
|
||||||
````
|
````
|
||||||
|
|
||||||
|
* **`Set Screensaver (Optional):`**
|
||||||
|
|
||||||
|
* The configuration file set `xautolock` with 20 minutes as screensaver:
|
||||||
|
* You can change the program between `xautolock` and `xscreensaver` editing the file `~/.config/i3/startscreensaver.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
````
|
||||||
|
|
||||||
* **`Enable Gaps (Optional):`**
|
* **`Enable Gaps (Optional):`**
|
||||||
|
|
||||||
* My config work on vanilla i3wm and gaps are disabled.
|
* My config work on vanilla i3wm and gaps are disabled.
|
||||||
|
|
15
README-i3.md
15
README-i3.md
|
@ -24,7 +24,7 @@ dotfiles - My tiling i3 + i3status configuration (for Devuan/Debian)
|
||||||
nitrogen lxrandr pnmixer conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom \
|
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 \
|
engrampa xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
|
||||||
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
|
python3 npm make cmake gcc cargo neofetch screenfetch lm-sensors pavucontrol \
|
||||||
xfce4-screenshooter xscreensaver alsa-utils ristretto
|
xfce4-screenshooter xscreensaver alsa-utils ristretto xautolock
|
||||||
````
|
````
|
||||||
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
|
* I use `Connman` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
|
||||||
|
|
||||||
|
@ -91,7 +91,18 @@ dotfiles - My tiling i3 + i3status configuration (for Devuan/Debian)
|
||||||
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
||||||
````
|
````
|
||||||
|
|
||||||
* **`Enable Gaps (Optional):`**
|
* **`Set Screensaver (Optional):`**
|
||||||
|
|
||||||
|
* The configuration file set `xautolock` with 20 minutes as screensaver:
|
||||||
|
* You can change the program between `xautolock` and `xscreensaver` editing the file `~/.config/i3/startscreensaver.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
````
|
||||||
|
|
||||||
|
* **`Enable Gaps (Optional):`**
|
||||||
|
|
||||||
* My config work on vanilla i3wm and gaps are disabled.
|
* My config work on vanilla i3wm and gaps are disabled.
|
||||||
* You can enable it editing 2 lines on file `~/.config/i3/config` and pressing `Win+Shift+r`:
|
* You can enable it editing 2 lines on file `~/.config/i3/config` and pressing `Win+Shift+r`:
|
||||||
|
|
|
@ -19,7 +19,7 @@ dotfiles - My tiling spectrwm + polybar configuration (for Devuan/Debian)
|
||||||
* Open the terminal and type the following commands:
|
* Open the terminal and type the following commands:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ sudo apt-get install spectrwm compton arc-theme breeze-cursor-theme \
|
$ sudo apt-get install spectrwm compton arc-theme breeze-cursor-theme xautolock \
|
||||||
fonts-noto papirus-icon-theme lxappearance nitrogen lxrandr pnmixer tint2 \
|
fonts-noto papirus-icon-theme lxappearance nitrogen lxrandr pnmixer tint2 \
|
||||||
conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom engrampa ristretto \
|
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 \
|
xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
|
||||||
|
@ -93,6 +93,17 @@ dotfiles - My tiling spectrwm + polybar configuration (for Devuan/Debian)
|
||||||
nitrogen --set-scaled ~/wallpapers/abstract.png
|
nitrogen --set-scaled ~/wallpapers/abstract.png
|
||||||
````
|
````
|
||||||
|
|
||||||
|
* **`Set Screensaver (Optional):`**
|
||||||
|
|
||||||
|
* The configuration file set 'xautolock' with 20 minutes as screensaver:
|
||||||
|
* You can change the program between `xautolock` and `xscreensaver` editing the file `~/.config/spectrwm/startscreensaver.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
````
|
||||||
|
|
||||||
* **`Compositor (Compton or Picom):`**
|
* **`Compositor (Compton or Picom):`**
|
||||||
|
|
||||||
* By default, the config load `Picom` compositor.
|
* By default, the config load `Picom` compositor.
|
||||||
|
|
|
@ -80,12 +80,12 @@ dotfiles - My tiling sway configuration (for Devuan/Debian)
|
||||||
|
|
||||||
* **`Screensaver:`**
|
* **`Screensaver:`**
|
||||||
|
|
||||||
* The configuration file use my monitor configuration and set the time in 15 minutes:
|
* The configuration file use my monitor configuration and set the time in 20 minutes:
|
||||||
* Use the command `wlr-randr` for show your monitors & edit the file `~/.config/sway/startwlrscreensaver.sh`:
|
* Use the command `wlr-randr` for show your monitors & edit the file `~/.config/sway/startwlrscreensaver.sh`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Basic configuration variables
|
# Basic configuration variables
|
||||||
ScreensaverTime="900" # 15 minutes
|
ScreensaverTime="1200" # 20 minutes
|
||||||
monitorOne="DP-1" # First monitor
|
monitorOne="DP-1" # First monitor
|
||||||
monitorTwo="DP-2" # Second monitor
|
monitorTwo="DP-2" # Second monitor
|
||||||
monitorThree="" # Third monitor
|
monitorThree="" # Third monitor
|
||||||
|
|
13
README.md
13
README.md
|
@ -19,7 +19,7 @@ dotfiles - My tiling spectrwm, i3 & sway configurations (for Devuan/Debian)
|
||||||
* Open the terminal and type the following commands:
|
* Open the terminal and type the following commands:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ sudo apt-get install spectrwm compton arc-theme breeze-cursor-theme \
|
$ sudo apt-get install spectrwm compton arc-theme breeze-cursor-theme xautolock \
|
||||||
fonts-noto papirus-icon-theme lxappearance nitrogen lxrandr pnmixer tint2 \
|
fonts-noto papirus-icon-theme lxappearance nitrogen lxrandr pnmixer tint2 \
|
||||||
conky xterm exa fish bat zsh dmenu fzf apcalc rofi picom engrampa ristretto \
|
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 \
|
xarchiver mpv ffmpeg pcmanfm ranger vlc vim geany git nodejs node-base \
|
||||||
|
@ -92,6 +92,17 @@ dotfiles - My tiling spectrwm, i3 & sway configurations (for Devuan/Debian)
|
||||||
nitrogen --set-scaled ~/wallpapers/abstract.png
|
nitrogen --set-scaled ~/wallpapers/abstract.png
|
||||||
````
|
````
|
||||||
|
|
||||||
|
* **`Set Screensaver (Optional):`**
|
||||||
|
|
||||||
|
* The configuration file set 'xautolock' with 20 minutes as screensaver:
|
||||||
|
* You can change the program between `xautolock` and `xscreensaver` editing the file `~/.config/spectrwm/startscreensaver.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
````
|
||||||
|
|
||||||
* **`Compositor (Compton or Picom):`**
|
* **`Compositor (Compton or Picom):`**
|
||||||
|
|
||||||
* By default, the config load `Picom` compositor.
|
* By default, the config load `Picom` compositor.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user