bspwm, Compton: Behavior and window rules

This commit is contained in:
Salt 2018-08-02 20:55:59 -05:00
parent 3fce79d834
commit e5e6dd41c5
4 changed files with 29 additions and 17 deletions

View File

@ -32,27 +32,31 @@ printf "[INFO] Configuring bspwm\n"
# Unique to bspwm, because i3 handles this alright
$HOME/.config/bspwm/monitorset.sh
bspc config border_width 4
bspc config window_gap 6
## Behavior
# Tiling behavior
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config remove_disabled_monitors true
bspc config remove_disabled_monitors false
bspc config remove_unplugged_monitors true
# Pointer behavior
bspc config click_to_focus any
bspc config pointer_follows_focus true
bspc config pointer_follows_monitor true
bspc config pointer_modifier mod1
bspc config pointer_action1 move
bspc config pointer_action2 resize_corner
bspc config pointer_action1 move #LMB
bspc config pointer_action2 resize_corner #RMB
bspc config normal_border_color "#3c3836"
bspc config active_border_color "#458588"
bspc config focused_border_color "#83a598"
bspc config presel_feedback_color "#9b9b9b"
## Looks
# Padding
bspc config border_width 4
bspc config window_gap 6
bspc config borderless_monocle true
bspc config gapless_monocle true
# Colors
bspc config normal_border_color "#3c3836" #Unfocused
bspc config active_border_color "#458588" #Focused, but current monitor isn't
bspc config focused_border_color "#83a598" #Focused completely
bspc config presel_feedback_color "#9b9b9b" #???
printf "[INFO] Setting window rules\n"
bspc rule -r '*'
@ -60,6 +64,8 @@ bspc rule -a Waterfox desktop=1
bspc rule -a Discord desktop=7
bspc rule -a Spotify desktop=8
bspc rule -a 'Minecraft 1.7.10' state=fullscreen
# For fullscreen Wine
bspc rule -a explorer.exe state=fullscreen
# Plasma rules
bspc rule -a plasmashell state=floating sticky=on border=off
bspc rule -a krunner state=floating layer=above sticky=on border=off

View File

@ -100,6 +100,7 @@ shadow-exclude = [
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'",
"class_g ?= 'Wine'",
#"window_type = 'dock'",
"_GTK_FRAME_EXTENTS@:c"
];
@ -132,7 +133,8 @@ blur-background-frame = false;
blur-background-fixed = false;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
"window_type = 'desktop'",
"class_g ?= 'Wine'"
];
#################################
@ -178,7 +180,7 @@ detect-client-opacity = true;
# Specify refresh rate of the screen.
# If not specified or 0, compton will try detecting this with X RandR extension.
refresh-rate = 60;
refresh-rate = 144;
# Set VSync method. VSync methods currently available:
# none: No VSync

View File

@ -22,7 +22,11 @@ display=Display\tMeta+P,Display\tMeta+P,Switch Display
[khotkeys]
_k_friendly_name=KDE Daemon
{5f06ffa5-99e2-429b-a33a-d5a49a8f9e56}=Shift+Print,none,Take Full Screen Screenshot
{7695d3be-08b3-4960-ae89-872e9eb58e8d}=Meta+Print,none,Take Active Window Screenshot
{a5003b79-c72a-4d41-9237-dcebafeac3f3}=Print,none,Start Screenshot Tool
{d03619b6-9b3c-48cc-9d9c-a2aadb485550}=Search,none,Search
{fd6248c0-ea1f-475d-9203-70e6c4a18579}=Meta+Shift+Print,none,Take Rectangular Region Screenshot
[kmix]
_k_friendly_name=Audio Volume

View File

@ -23,7 +23,7 @@ ShowWindowTitleOnTitleBar=true
[MainWindow]
MenuBar=Disabled
State=AAAA/wAAAAD9AAAAAAAAB2wAAAPYAAAABAAAAAQAAAAIAAAACPwAAAAA
State=AAAA/wAAAAD9AAAAAAAABO8AAAVAAAAABAAAAAQAAAAIAAAACPwAAAAA
ToolBarsMovable=Disabled
[Notification Messages]