diff options
| author | ilotterytea <ilotterytea@proton.me> | 2024-05-26 20:10:26 +0500 |
|---|---|---|
| committer | ilotterytea <ilotterytea@proton.me> | 2024-05-26 20:10:26 +0500 |
| commit | 036c889c4a4f7f59d1e1a592586b54c5c5e93005 (patch) | |
| tree | aa76d678790abc79f24edf83c17a564eb2c6f65d /bspwm | |
Diffstat (limited to 'bspwm')
| -rwxr-xr-x | bspwm/autostart | 17 | ||||
| -rwxr-xr-x | bspwm/bspwmrc | 85 | ||||
| -rw-r--r-- | bspwm/noswallow | 1 | ||||
| -rw-r--r-- | bspwm/terminals | 2 |
4 files changed, 105 insertions, 0 deletions
diff --git a/bspwm/autostart b/bspwm/autostart new file mode 100755 index 0000000..e3fb541 --- /dev/null +++ b/bspwm/autostart @@ -0,0 +1,17 @@ +#!/bin/sh +# Applications +pgrep conky || conky & + +# pidof clight || clight --lat=26.83 --lon=80.92 & +pidof redshift || redshift & +xrdb ~/.Xresources +firefox & +# syncthing serve --no-browser --logfile=default & + +setxkbmap -layout us,ru -option grp:alt_shift_toggle & + +~/.local/scripts/mpd_start & + +xautolock -detectsleep -time 5 -locker lock.sh -notify 30 -notifier "notify-send -u critical -t 10000 -- 'LOCKING screen in 30 seconds'" & +# mailsync & +~/.config/polybar/launch.sh & diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc new file mode 100755 index 0000000..570b688 --- /dev/null +++ b/bspwm/bspwmrc @@ -0,0 +1,85 @@ +#!/bin/bash + +#### MONITORS #### +bspc monitor -d 1 2 3 4 5 6 7 8 9 + +external_monitor=$(xrandr --query | grep 'DP-1') + +if [[ $external_monitor = DP-1\ connected* ]]; then + xrandr --output HDMI-1 --primary --mode 1920x1080 --output DP-1 --mode 1920x1080 --left-of HDMI-1 + bspc monitor HDMI-1 -d 1 2 3 4 5 6 + bspc monitor DP-1 -d 7 8 9 +else + xrandr --output HDMI-1 --auto + bspc monitor HDMI-1 -d 1 2 3 4 5 6 7 8 9 +fi + +# Truncate a couple of common commands that are used herein. +_bc() { + bspc config "$@" +} + + +#### BSPWM configuration #### +_bc window_gap 8 +_bc top_padding 36 +_bc top_monocle_padding 0 +_bc border_width 1 +_bc bottom_padding 0 +_bc left_padding 0 +_bc right_padding 0 +_bc single_monocle false +_bc click_to_focus false +_bc split_ratio 0.50 +_bc borderless_monocle true +_bc gapless_monocle true +_bc focus_by_distance true +_bc paddingless_monocle true +_bc focus_follows_pointer true +_bc ignore_ewmh_focus true +_bc history_aware_focus true +_bc remove_disabled_monitors true +_bc merge_overlapping_monitors true +_bc pointer_follows_monitor true +_bc pointer_modifier mod1 +_bc pointer_action1 move +_bc pointer_action2 resize_side +_bc pointer_action3 resize_corner + +# Colors +bspc config active_border_color "#474f54" +bspc config focused_border_color "#8bdfff" +bspc config normal_border_color "#373d41" +bspc config presel_feedback_color "#373d41" + +# Rules +bspc rule -a firefox -o desktop=2 +bspc rule -a discord desktop='^8' +bspc rule -a feh state='floating' +bspc rule -a mpv state='floating' +bspc rule -a openssh-askpass state='floating' +bspc rule -a "Iwgtk" state='floating' +bspc rule -a Zathura state='tiled' +bspc rule -a Pavucontrol state='floating' +bspc rule -a flameshot state='floating' +bspc rule -a *:SPLASH state=floating +bspc rule -a logsplease state='floating' +bspc rule -a maxoning state='floating' +bspc rule -a roguelike state='floating' +bspc desktop -f 1 + +# INIT-DAEMONS +xsetroot -cursor_name left_ptr & +sxhkd & +# xcompmgr -cCfF -t -2 -l -2 -r 2.8 -o 0.55 -D 5 & +picom --experimental-backends & +dunst & + +# Replace caps lock with Esc +# setxkbmap -option caps:escape +# setxkbmap -option caps:backspace + +# AUTOSTART +# set wallpaper using hsetroot +hsetroot -fill ~/.wallpapers/urban.jpg & +~/.config/bspwm/autostart & diff --git a/bspwm/noswallow b/bspwm/noswallow new file mode 100644 index 0000000..dbfb8f9 --- /dev/null +++ b/bspwm/noswallow @@ -0,0 +1 @@ +firefox diff --git a/bspwm/terminals b/bspwm/terminals new file mode 100644 index 0000000..4fe8cd5 --- /dev/null +++ b/bspwm/terminals @@ -0,0 +1,2 @@ +kitty +Alacritty |
