From e5e6dd41c5d851f4636764afbce5ea71f8460f5c Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 2 Aug 2018 20:55:59 -0500 Subject: [PATCH] bspwm, Compton: Behavior and window rules --- .config/bspwm/bspwmrc | 34 ++++++++++++++++++++-------------- .config/compton.conf | 6 ++++-- .config/kglobalshortcutsrc | 4 ++++ .config/konsolerc | 2 +- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 8e337513..f3015262 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -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 - -bspc config split_ratio 0.50 -bspc config borderless_monocle true -bspc config gapless_monocle true -bspc config remove_disabled_monitors true +## Behavior +# Tiling behavior +bspc config split_ratio 0.50 +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 diff --git a/.config/compton.conf b/.config/compton.conf index a130f579..f391d602 100644 --- a/.config/compton.conf +++ b/.config/compton.conf @@ -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 diff --git a/.config/kglobalshortcutsrc b/.config/kglobalshortcutsrc index 8e0d5d48..60bf2163 100644 --- a/.config/kglobalshortcutsrc +++ b/.config/kglobalshortcutsrc @@ -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 diff --git a/.config/konsolerc b/.config/konsolerc index b3c11d5f..ea34bae9 100644 --- a/.config/konsolerc +++ b/.config/konsolerc @@ -23,7 +23,7 @@ ShowWindowTitleOnTitleBar=true [MainWindow] MenuBar=Disabled -State=AAAA/wAAAAD9AAAAAAAAB2wAAAPYAAAABAAAAAQAAAAIAAAACPwAAAAA +State=AAAA/wAAAAD9AAAAAAAABO8AAAVAAAAABAAAAAQAAAAIAAAACPwAAAAA ToolBarsMovable=Disabled [Notification Messages]