Dotfiles config update (2022-04-04)
|
@ -3,12 +3,12 @@ dotfiles - My tiling i3 + i3blocks configuration (for Arch/Devuan/Debian)
|
||||||
|
|
||||||
### My configurations:
|
### My configurations:
|
||||||
|
|
||||||
* [spectrwm](README.md)
|
* [i3 + polybar](README-i3-polybar.md)
|
||||||
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
|
||||||
* [i3 + i3status](README-i3.md)
|
* [i3 + i3status](README-i3.md)
|
||||||
* [i3 + i3blocks](README-i3-i3blocks.md)
|
* [i3 + i3blocks](README-i3-i3blocks.md)
|
||||||
* [i3 + polybar](README-i3-polybar.md)
|
|
||||||
* [sway](README-sway.md)
|
* [sway](README-sway.md)
|
||||||
|
* [spectrwm](README-spectrwm.md)
|
||||||
|
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
||||||
|
|
||||||
![i3-i3blocks](examples/i3wm.png)
|
![i3-i3blocks](examples/i3wm.png)
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,12 @@ dotfiles - My tiling i3 + polybar configuration (for Arch/Devuan/Debian)
|
||||||
|
|
||||||
### My configurations:
|
### My configurations:
|
||||||
|
|
||||||
* [spectrwm](README.md)
|
* [i3 + polybar](README-i3-polybar.md)
|
||||||
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
|
||||||
* [i3 + i3status](README-i3.md)
|
* [i3 + i3status](README-i3.md)
|
||||||
* [i3 + i3blocks](README-i3-i3blocks.md)
|
* [i3 + i3blocks](README-i3-i3blocks.md)
|
||||||
* [i3 + polybar](README-i3-polybar.md)
|
|
||||||
* [sway](README-sway.md)
|
* [sway](README-sway.md)
|
||||||
|
* [spectrwm](README-spectrwm.md)
|
||||||
|
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
||||||
|
|
||||||
![i3-polybar](examples/i3wm-polybar.png)
|
![i3-polybar](examples/i3wm-polybar.png)
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,12 @@ dotfiles - My tiling i3 + i3status configuration (for Arch/Devuan/Debian)
|
||||||
|
|
||||||
### My configurations:
|
### My configurations:
|
||||||
|
|
||||||
* [spectrwm](README.md)
|
* [i3 + polybar](README-i3-polybar.md)
|
||||||
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
|
||||||
* [i3 + i3status](README-i3.md)
|
* [i3 + i3status](README-i3.md)
|
||||||
* [i3 + i3blocks](README-i3-i3blocks.md)
|
* [i3 + i3blocks](README-i3-i3blocks.md)
|
||||||
* [i3 + polybar](README-i3-polybar.md)
|
|
||||||
* [sway](README-sway.md)
|
* [sway](README-sway.md)
|
||||||
|
* [spectrwm](README-spectrwm.md)
|
||||||
|
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
||||||
|
|
||||||
![i3-i3status](examples/i3wm-i3status.png)
|
![i3-i3status](examples/i3wm-i3status.png)
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,12 @@ dotfiles - My tiling spectrwm + polybar configuration (for Arch/Devuan/Debian)
|
||||||
|
|
||||||
### My configurations:
|
### My configurations:
|
||||||
|
|
||||||
* [spectrwm](README.md)
|
* [i3 + polybar](README-i3-polybar.md)
|
||||||
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
|
||||||
* [i3 + i3status](README-i3.md)
|
* [i3 + i3status](README-i3.md)
|
||||||
* [i3 + i3blocks](README-i3-i3blocks.md)
|
* [i3 + i3blocks](README-i3-i3blocks.md)
|
||||||
* [i3 + polybar](README-i3-polybar.md)
|
|
||||||
* [sway](README-sway.md)
|
* [sway](README-sway.md)
|
||||||
|
* [spectrwm](README-spectrwm.md)
|
||||||
|
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
||||||
|
|
||||||
![spectrwm-polybar](examples/spectrwm-polybar.png)
|
![spectrwm-polybar](examples/spectrwm-polybar.png)
|
||||||
|
|
||||||
|
|
130
README-spectrwm.md
Normal file
|
@ -0,0 +1,130 @@
|
||||||
|
dotfiles - My tiling spectrwm configuration (for Arch/Devuan/Debian)
|
||||||
|
====================================================================
|
||||||
|
|
||||||
|
### My configurations:
|
||||||
|
|
||||||
|
* [i3 + polybar](README-i3-polybar.md)
|
||||||
|
* [i3 + i3status](README-i3.md)
|
||||||
|
* [i3 + i3blocks](README-i3-i3blocks.md)
|
||||||
|
* [sway](README-sway.md)
|
||||||
|
* [spectrwm](README-spectrwm.md)
|
||||||
|
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
||||||
|
|
||||||
|
![spectrwm](examples/spectrwm.png)
|
||||||
|
|
||||||
|
### Installation:
|
||||||
|
|
||||||
|
* **`Install dependencies:`**
|
||||||
|
|
||||||
|
* Read [`How install dependencies on Arch and Devuan/Debian`](Dependencies.md)
|
||||||
|
|
||||||
|
* **`Install configuration (dotfiles):`**
|
||||||
|
|
||||||
|
* Clone repository and copy files to your home:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ git clone https://github.com/q3aql/dotfiles
|
||||||
|
$ cd dotfiles
|
||||||
|
$ chmod +x install-config.sh
|
||||||
|
$ ./install-config.sh
|
||||||
|
````
|
||||||
|
|
||||||
|
### Configuration:
|
||||||
|
|
||||||
|
* **`Network Manager (Connman or NetWorkManager):`**
|
||||||
|
|
||||||
|
* By default is enabled `NetWorkManager` as network manager:
|
||||||
|
* If you prefer `Connman`, edit the file `~/.config/spectrwm/spectrwm.conf` and `autostart.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Choose between NetworkManager or Connman
|
||||||
|
program[connection] = nm-connection-editor
|
||||||
|
#program[connection] = connman-gtk --no-icon
|
||||||
|
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:
|
||||||
|
* Use the command `xrandr` for show your config & edit the file `~/.config/spectrwm/startxrandr.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
xrandr --output DisplayPort-0 --mode 1280x1024 -r 75.02
|
||||||
|
xrandr --output DisplayPort-1 --mode 1280x1024 -r 75.02 --rotate left --right-of DisplayPort-0
|
||||||
|
````
|
||||||
|
|
||||||
|
* **`Wallpaper:`**
|
||||||
|
|
||||||
|
* By default, the config load wallpaper on `~/wallpapers/abstract.png`:
|
||||||
|
* Edit `~/.config/spectrwm/startwallpaper.sh` for set your favorite wallpaper:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
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/spectrwm/startscreensaver.sh`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Basic configuration variables
|
||||||
|
ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver
|
||||||
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
|
````
|
||||||
|
|
||||||
|
* **`Compositor (Compton or Picom):`**
|
||||||
|
|
||||||
|
* By default, the config load `Picom` compositor.
|
||||||
|
* You can change it editing the lines on `~/.config/spectrwm/startcompositor.sh` file:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# Load compton or picom (Compositor)
|
||||||
|
sleep 15
|
||||||
|
#compton &
|
||||||
|
picom &
|
||||||
|
````
|
||||||
|
|
||||||
|
### Keys configuration:
|
||||||
|
|
||||||
|
My list of extra combinations:
|
||||||
|
|
||||||
|
- Super + d = Open Rofi Theme selector
|
||||||
|
- Super + x = Close Window
|
||||||
|
- Super + w = Minimize Window
|
||||||
|
- Super + Shift + w = Maximize/Search Window
|
||||||
|
- Super + Shift + t = Show/Hide Tray (Run by default on Workspace 7)
|
||||||
|
- Super + c = Open network configuration
|
||||||
|
- Super + v = Open volume configuration (Pavucontrol)
|
||||||
|
- Super + Return = Open terminal (Alacritty)
|
||||||
|
- Super + n = Open PCManFM
|
||||||
|
- Super + p = Open Rofi (exec program)
|
||||||
|
- Super + o = Open Rofi (exec menu program)
|
||||||
|
- Super + z = Open Wallpaper selector (Nitrogen)
|
||||||
|
- Super + x = Open LXRandr
|
||||||
|
- Super + u = Open Xterm
|
||||||
|
- Super + i = Open LXAppearance
|
||||||
|
- Super + s = Open Xfce4-Screenshot
|
||||||
|
- Super + Delete = Poweroff screen
|
||||||
|
- Super + Shift + Delete = Close session
|
||||||
|
- Volume-Up = Volume +5
|
||||||
|
- Volume-Down = Volume -5
|
||||||
|
- VolumeMute = Mute Volume
|
||||||
|
- BrightnessUp = Brightness +10
|
||||||
|
- BrightnessDown = Brightness -10
|
||||||
|
|
||||||
|
### External links:
|
||||||
|
|
||||||
|
* [Antonio Sarosi](https://github.com/antoniosarosi/dotfiles/)
|
||||||
|
* [Derek Taylor](https://gitlab.com/dwt1/dotfiles/)
|
||||||
|
* [TWB0109](https://github.com/TWB0109/PDots)
|
||||||
|
* [i3-style](https://github.com/altdesktop/i3-style)
|
||||||
|
* [addy-dclxvi](https://github.com/addy-dclxvi/i3-starterpack)
|
||||||
|
* [i3-gaps](https://github.com/Airblader/i3)
|
|
@ -3,12 +3,12 @@ dotfiles - My tiling sway configuration (for Arch/Devuan/Debian)
|
||||||
|
|
||||||
### My configurations:
|
### My configurations:
|
||||||
|
|
||||||
* [spectrwm](README.md)
|
* [i3 + polybar](README-i3-polybar.md)
|
||||||
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
|
||||||
* [i3 + i3status](README-i3.md)
|
* [i3 + i3status](README-i3.md)
|
||||||
* [i3 + i3blocks](README-i3-i3blocks.md)
|
* [i3 + i3blocks](README-i3-i3blocks.md)
|
||||||
* [i3 + polybar](README-i3-polybar.md)
|
|
||||||
* [sway](README-sway.md)
|
* [sway](README-sway.md)
|
||||||
|
* [spectrwm](README-spectrwm.md)
|
||||||
|
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
||||||
|
|
||||||
![sway](examples/sway.png)
|
![sway](examples/sway.png)
|
||||||
|
|
||||||
|
|
75
README.md
|
@ -3,14 +3,14 @@ dotfiles - My tiling spectrwm, i3 & sway configurations (for Arch/Devuan/Debian)
|
||||||
|
|
||||||
### My configurations:
|
### My configurations:
|
||||||
|
|
||||||
* [spectrwm](README.md)
|
* [i3 + polybar](README-i3-polybar.md)
|
||||||
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
|
||||||
* [i3 + i3status](README-i3.md)
|
* [i3 + i3status](README-i3.md)
|
||||||
* [i3 + i3blocks](README-i3-i3blocks.md)
|
* [i3 + i3blocks](README-i3-i3blocks.md)
|
||||||
* [i3 + polybar](README-i3-polybar.md)
|
|
||||||
* [sway](README-sway.md)
|
* [sway](README-sway.md)
|
||||||
|
* [spectrwm](README-spectrwm.md)
|
||||||
|
* [spectrwm + polybar](README-spectrwm-polybar.md)
|
||||||
|
|
||||||
![spectrwm](examples/spectrwm.png)
|
![i3-i3status](examples/i3wm-i3status.png)
|
||||||
|
|
||||||
### Installation:
|
### Installation:
|
||||||
|
|
||||||
|
@ -34,45 +34,37 @@ dotfiles - My tiling spectrwm, i3 & sway configurations (for Arch/Devuan/Debian)
|
||||||
* **`Network Manager (Connman or NetWorkManager):`**
|
* **`Network Manager (Connman or NetWorkManager):`**
|
||||||
|
|
||||||
* By default is enabled `NetWorkManager` as network manager:
|
* By default is enabled `NetWorkManager` as network manager:
|
||||||
* If you prefer `Connman`, edit the file `~/.config/spectrwm/spectrwm.conf` and `autostart.sh`:
|
* If you prefer `Connman`, edit the file `~/.config/i3/config`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Choose between NetworkManager or Connman
|
#exec --no-startup-id connman-gtk --tray &
|
||||||
program[connection] = nm-connection-editor
|
exec --no-startup-id nm-applet &
|
||||||
#program[connection] = connman-gtk --no-icon
|
|
||||||
bind[connection] = MOD+c
|
|
||||||
````
|
|
||||||
|
|
||||||
```shell
|
|
||||||
# Network Tray (Use Win + Shift + t to show it)
|
|
||||||
nm-applet &
|
|
||||||
#connman-gtk --tray &
|
|
||||||
````
|
````
|
||||||
|
|
||||||
* **`Monitor & resolution:`**
|
* **`Monitor & resolution:`**
|
||||||
|
|
||||||
* The configuration load my monitor configuration:
|
* The configuration load my monitor configuration:
|
||||||
* Use the command `xrandr` for show your config & edit the file `~/.config/spectrwm/startxrandr.sh`:
|
* Use the command `xrandr` for show your config & edit the file `~/.config/i3/startxrandr.sh`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
sleep 2
|
||||||
xrandr --output DisplayPort-0 --mode 1280x1024 -r 75.02
|
xrandr --output DisplayPort-0 --mode 1280x1024 -r 75.02
|
||||||
xrandr --output DisplayPort-1 --mode 1280x1024 -r 75.02 --rotate left --right-of DisplayPort-0
|
xrandr --output DisplayPort-1 --mode 1280x1024 -r 75.02 --rotate left --right-of DisplayPort-0
|
||||||
````
|
````
|
||||||
|
|
||||||
* **`Wallpaper:`**
|
* **`Wallpaper:`**
|
||||||
|
|
||||||
* By default, the config load wallpaper on `~/wallpapers/abstract.png`:
|
* By default, the config load wallpaper on `~/wallpapers/dark-city.jpg`:
|
||||||
* Edit `~/.config/spectrwm/startwallpaper.sh` for set your favorite wallpaper:
|
* Edit `~/.config/i3/config` for set your favorite wallpaper:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sleep 3
|
exec --no-startup-id "sleep 3 && nitrogen --set-scaled ~/wallpapers/dark-city.jpg"
|
||||||
nitrogen --set-scaled ~/wallpapers/abstract.png
|
|
||||||
````
|
````
|
||||||
|
|
||||||
* **`Set Screensaver (Optional):`**
|
* **`Set Screensaver (Optional):`**
|
||||||
|
|
||||||
* The configuration file set `xautolock` with 20 minutes as screensaver:
|
* 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`:
|
* You can change the program between `xautolock` and `xscreensaver` editing the file `~/.config/i3/startscreensaver.sh`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Basic configuration variables
|
# Basic configuration variables
|
||||||
|
@ -80,45 +72,40 @@ dotfiles - My tiling spectrwm, i3 & sway configurations (for Arch/Devuan/Debian)
|
||||||
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
ScreensaverTime="20" # 20 minutes (only for xautolock)
|
||||||
````
|
````
|
||||||
|
|
||||||
* **`Compositor (Compton or Picom):`**
|
* **`Enable Gaps (Optional):`**
|
||||||
|
|
||||||
* By default, the config load `Picom` compositor.
|
* My config work on vanilla i3wm and gaps are disabled.
|
||||||
* You can change it editing the lines on `~/.config/spectrwm/startcompositor.sh` file:
|
* You can enable it editing 2 lines on file `~/.config/i3/config` and pressing `Win+Shift+r`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Load compton or picom (Compositor)
|
#gaps inner 6
|
||||||
sleep 15
|
#gaps outer 2
|
||||||
#compton &
|
|
||||||
picom &
|
|
||||||
````
|
````
|
||||||
|
|
||||||
### Keys configuration:
|
### Keys configuration:
|
||||||
|
|
||||||
My list of extra combinations:
|
My list of extra combinations:
|
||||||
|
|
||||||
- Super + d = Open Rofi Theme selector
|
- Super + d = Open Dmenu
|
||||||
- Super + x = Close Window
|
- Super + p = Open Rofi (run mode)
|
||||||
- Super + w = Minimize Window
|
- Super + q = Open Rofi (window mode)
|
||||||
- Super + Shift + w = Maximize/Search Window
|
- Super + o = Open Rofi (drun mode)
|
||||||
- Super + Shift + t = Show/Hide Tray (Run by default on Workspace 7)
|
- Super + b = Open Firefox
|
||||||
- Super + c = Open network configuration
|
|
||||||
- Super + v = Open volume configuration (Pavucontrol)
|
|
||||||
- Super + Return = Open terminal (Alacritty)
|
|
||||||
- Super + n = Open PCManFM
|
- Super + n = Open PCManFM
|
||||||
- Super + p = Open Rofi (exec program)
|
- Super + t = Open Rofi Theme Selector
|
||||||
- Super + o = Open Rofi (exec menu program)
|
- Super + g = Open Geany
|
||||||
- Super + z = Open Wallpaper selector (Nitrogen)
|
- Super + m = Open Telegram
|
||||||
|
- Super + z = Open Nitrogen
|
||||||
- Super + x = Open LXRandr
|
- Super + x = Open LXRandr
|
||||||
- Super + u = Open Xterm
|
- Super + u = Open Xterm
|
||||||
- Super + i = Open LXAppearance
|
- Super + i = Open LXAppearance
|
||||||
- Super + s = Open Xfce4-Screenshot
|
- Super + c = Open NetWorkManager
|
||||||
- Super + Delete = Poweroff screen
|
|
||||||
- Super + Shift + Delete = Close session
|
|
||||||
- Volume-Up = Volume +5
|
- Volume-Up = Volume +5
|
||||||
- Volume-Down = Volume -5
|
- Volume-Down = Volume -5
|
||||||
- VolumeMute = Mute Volume
|
- VolumeMute = Mute Volume
|
||||||
- BrightnessUp = Brightness +10
|
- Super + Ctrl + Shift + e = Poweroff screen
|
||||||
- BrightnessDown = Brightness -10
|
- Super + Shift + e = Logout
|
||||||
|
- Super + Backspace = Open menu Logout/Lock/Reboot/Shutdown
|
||||||
|
|
||||||
### External links:
|
### External links:
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 1008 KiB After Width: | Height: | Size: 2.0 MiB |
Before Width: | Height: | Size: 932 KiB After Width: | Height: | Size: 410 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 412 KiB |
Before Width: | Height: | Size: 859 KiB After Width: | Height: | Size: 1.7 MiB |
45
scripts/disable-hd-sleep
Executable file
|
@ -0,0 +1,45 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Change to UUID disk (use blkid)
|
||||||
|
UUID_disk="b596b8a5-14b6-4a5f-95d7-f54a2db2a36a"
|
||||||
|
|
||||||
|
# Run commands
|
||||||
|
disk_detected=$(blkid | grep "${UUID_disk}" | cut -d ":" -f 1 | cut -c 1-8)
|
||||||
|
check_exist=$(ls ${disk_detected} 2>/dev/null)
|
||||||
|
if [ -z "${check_exist}" ] ; then
|
||||||
|
echo "# Disk ${disk_detected} not found"
|
||||||
|
else
|
||||||
|
echo "# Touch disk ${disk_detected}"
|
||||||
|
/bin/touch ${disk_detected}
|
||||||
|
fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# Change to UUID disk (use blkid)
|
||||||
|
UUID_disk="7292ea59-dd30-4367-a0c4-e6031f0ce9b5"
|
||||||
|
|
||||||
|
# Run commands
|
||||||
|
disk_detected=$(blkid | grep "${UUID_disk}" | cut -d ":" -f 1 | cut -c 1-8)
|
||||||
|
check_exist=$(ls ${disk_detected} 2>/dev/null)
|
||||||
|
if [ -z "${check_exist}" ] ; then
|
||||||
|
echo "# Disk ${disk_detected} not found"
|
||||||
|
else
|
||||||
|
echo "# Touch disk ${disk_detected}"
|
||||||
|
/bin/touch ${disk_detected}
|
||||||
|
fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
# Change to UUID disk (use blkid)
|
||||||
|
UUID_disk="c7872a31-abc7-4585-ae99-eddf76f07455"
|
||||||
|
|
||||||
|
# Run commands
|
||||||
|
disk_detected=$(blkid | grep "${UUID_disk}" | cut -d ":" -f 1 | cut -c 1-8)
|
||||||
|
check_exist=$(ls ${disk_detected} 2>/dev/null)
|
||||||
|
if [ -z "${check_exist}" ] ; then
|
||||||
|
echo "# Disk ${disk_detected} not found"
|
||||||
|
else
|
||||||
|
echo "# Touch disk ${disk_detected}"
|
||||||
|
/bin/touch ${disk_detected}
|
||||||
|
fi
|
||||||
|
|