dotfiles/README-spectrwm-polybar.md

131 lines
4.1 KiB
Markdown
Raw Normal View History

2022-03-26 14:41:16 +01:00
dotfiles - My tiling spectrwm + polybar configuration (for Arch/Devuan/Debian)
==============================================================================
2021-12-07 20:59:05 +01:00
### My configurations:
* [spectrwm](README.md)
* [spectrwm + polybar](README-spectrwm-polybar.md)
* [i3 + i3status](README-i3.md)
* [i3 + i3blocks](README-i3-i3blocks.md)
* [i3 + polybar](README-i3-polybar.md)
2021-12-11 15:02:56 +01:00
* [sway](README-sway.md)
2021-12-07 20:59:05 +01:00
2021-12-11 15:02:56 +01:00
![spectrwm-polybar](examples/spectrwm-polybar.png)
2021-12-07 20:59:05 +01:00
### Installation:
* **`Install dependencies:`**
2022-03-26 14:41:16 +01:00
* Read [`How install dependencies on Arch and Devuan/Debian`](Dependencies.md)
2021-12-07 20:59:05 +01:00
* **`Install configuration (dotfiles):`**
* Clone repository and copy files to your home:
```shell
$ git clone https://github.com/q3aql/dotfiles
$ cd dotfiles
2022-03-26 14:41:16 +01:00
$ chmod +x install-config.sh
$ ./install-config.sh
2021-12-07 20:59:05 +01:00
$ cp -rfv ~/.config/spectrwm/spectrwm-polybar.conf ~/.config/spectrwm/spectrwm.conf
````
### Configuration:
* **`Network Manager (Connman or NetWorkManager):`**
* By default is enabled `NetWorkManager` as network manager:
2021-12-18 11:41:26 +01:00
* If you prefer `Connman`, edit the file `~/.config/spectrwm/spectrwm.conf` and `autostart.sh`:
2021-12-07 20:59:05 +01:00
```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
````
2021-12-13 21:55:51 +01:00
* **`Set Screensaver (Optional):`**
2021-12-13 22:00:50 +01:00
* The configuration file set `xautolock` with 20 minutes as screensaver:
2021-12-13 21:55:51 +01:00
* 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)
````
2021-12-07 20:59:05 +01:00
* **`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 + 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)