summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/cortile/config.toml183
-rw-r--r--config/openbox/autostart1
-rwxr-xr-xconfig/openbox/cortilebin0 -> 9052160 bytes
-rw-r--r--config/openbox/rc-templ.xml171
4 files changed, 289 insertions, 66 deletions
diff --git a/config/cortile/config.toml b/config/cortile/config.toml
new file mode 100644
index 0000000..4f05c60
--- /dev/null
+++ b/config/cortile/config.toml
@@ -0,0 +1,183 @@
+################################################################################
+# #
+# https://github.com/leukipp/cortile/blob/main/config.toml #
+# #
+################################################################################
+
+#################################### Tiling ####################################
+
+# Initial tiling activation, will be cached afterwards (true | false).
+tiling_enabled = false
+
+# Initial tiling layout, will be cached afterwards ("vertical-left" | "vertical-right" | "horizontal-top" | "horizontal-bottom" | "maximized" | "fullscreen").
+tiling_layout = "vertical-right"
+
+# An overlay window is displayed for this time period [ms] when the layout was changed (0 = disabled).
+tiling_gui = 1000
+
+# Menu entries in systray which shows the tiling state as icon ([] = disabled).
+# tiling_icon = [
+# ["ACTION", "TEXT"] = ["action strings from [keys] section", "text to show in the menu"],
+# ["", ""] = "show a separator line",
+# ]
+tiling_icon = [
+ ["toggle", "Enabled"],
+ ["", ""],
+ ["master_increase", "Add Master"],
+ ["master_decrease", "Remove Master"],
+ ["", ""],
+ ["slave_increase", "Add Slave"],
+ ["slave_decrease", "Remove Slave"],
+ ["", ""],
+ ["reset", "Reset"],
+ ["exit", "Exit"],
+]
+
+#################################### Window ####################################
+
+# Regex RE2 syntax to ignore windows (WM_CLASS string can be found by running `xprop WM_CLASS`).
+# window_ignore = [
+# ["WM_CLASS", "WM_NAME"] = ["ignore all windows with this class", "but allow those with this name"]
+# ]
+window_ignore = [
+ ["nm.*", ""],
+ ["gcr.*", ""],
+ ["polkit.*", ""],
+ ["wrapper.*", ""],
+ ["lightdm.*", ""],
+ ["blueman.*", ""],
+ ["pavucontrol.*", ""],
+ ["firefox.*", ".*Mozilla Firefox"],
+]
+
+# Maximum number of allowed master windows (0 - 5).
+window_masters_max = 2
+
+# Maximum number of allowed slave windows (1 - 5).
+window_slaves_max = 4
+
+# How much space should be left between windows (0 - 100).
+window_gap_size = 0
+
+# Initial rendering of window decorations, will be cached afterwards (true | false).
+window_decoration = true
+
+################################## Proportion ##################################
+
+# How much to increment/decrement master-slave area (0.0 - 1.0).
+proportion_step = 0.05
+
+# Minimum window width/height in proportion to workspace (0.0 - 1.0).
+proportion_min = 0.2
+
+##################################### Edge #####################################
+
+# Margin of the tiling area ([top, right, bottom, left]).
+edge_margin = [0, 0, 0, 0]
+
+# Margin of the tiling area on primary screen ([top, right, bottom, left]).
+edge_margin_primary = [0, 0, 0, 0]
+
+# Width and height of a hot-corner area within the edge corners (0 - 100).
+edge_corner_size = 10
+
+# Width or height of a hot-corner area within the edge centers (0 - 100).
+edge_center_size = 100
+
+################################################################################
+[colors] # RGBA color values used for ui elements. #
+################################################################################
+
+# Window text color.
+gui_text = [160, 156, 252, 255]
+
+# Window background color.
+gui_background = [255, 255, 255, 255]
+
+# Slave client layout color.
+gui_client_slave = [160, 156, 252, 255]
+
+# Master client layout color.
+gui_client_master = [160, 156, 252, 255]
+
+# Systray icon background color.
+icon_background = [0, 0, 0, 0]
+
+# Systray icon foreground color.
+icon_foreground = [0, 0, 0, 255]
+
+################################################################################
+[keys] # Key symbols can be found by running `xev`. #
+################################################################################
+
+# Enable tiling on the current screen (Home = Fn_Left).
+enable = "Control-Mod4-T"
+
+# disable = "Control-Shift-End"
+# toggle = "Control-Mod4-T"
+
+
+# Disable tiling and restore windows on the current screen.
+restore = "Control-Mod4-R"
+cycle_next = "Shift-Mod4-1"
+cycle_previous = "Control-Mod4-1"
+master_make = "Mod4-1"
+master_increase = "Control-Mod4-3"
+master_decrease = "Control-Mod4-2"
+slave_increase = "Shift-Mod4-3"
+slave_decrease = "Shift-Mod4-2"
+proportion_increase = "Mod4-3"
+proportion_decrease = "Mod4-2"
+
+################################################################################
+[corners] # Action strings from [keys] section. #
+################################################################################
+
+# Corner at top left.
+top_left = "window_previous"
+
+# Corner at top center.
+top_center = ""
+
+# Corner at top right.
+top_right = "master_make"
+
+# Corner at center right.
+center_right = ""
+
+# Corner at bottom right.
+bottom_right = "proportion_increase"
+
+# Corner at bottom center.
+bottom_center = ""
+
+# Corner at bottom left.
+bottom_left = "proportion_decrease"
+
+# Corner at center left.
+center_left = ""
+
+################################################################################
+[systray] # Action strings from [keys] section. #
+################################################################################
+
+# Icon left click with pointer.
+click_left = ""
+
+# Icon middle click with pointer.
+click_middle = "toggle"
+
+# Icon right click with pointer.
+click_right = ""
+
+# Icon vertical scroll up with pointer.
+scroll_up = "cycle_previous"
+
+# Icon vertical scroll down with pointer.
+scroll_down = "cycle_next"
+
+# Icon horizontal scroll left with pointer.
+scroll_left = "proportion_decrease"
+
+# Icon horizontal scroll right with pointer.
+scroll_right = "proportion_increase"
diff --git a/config/openbox/autostart b/config/openbox/autostart
index 2cba69a..105b3bf 100644
--- a/config/openbox/autostart
+++ b/config/openbox/autostart
@@ -10,6 +10,7 @@ xcape -e 'Super_L=Control_L|Shift_L|Alt_L|Super_L|D' &
spacefm --desktop &
xscreensaver -no-splash &
nm-applet &
+$CONFDIR/cortile &
# fuck your stupid telemetry
diff --git a/config/openbox/cortile b/config/openbox/cortile
new file mode 100755
index 0000000..3eff881
--- /dev/null
+++ b/config/openbox/cortile
Binary files differ
diff --git a/config/openbox/rc-templ.xml b/config/openbox/rc-templ.xml
index 36ee9fb..d715c45 100644
--- a/config/openbox/rc-templ.xml
+++ b/config/openbox/rc-templ.xml
@@ -3,8 +3,8 @@
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
- <strength>10</strength>
- <screen_edge_strength>20</screen_edge_strength>
+ <strength>75</strength>
+ <screen_edge_strength>30</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
@@ -125,55 +125,6 @@
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
- <!-- Keybindings for desktop switching -->
- <keybind key="C-A-Left">
- <action name="GoToDesktop">
- <to>left</to>
- <wrap>no</wrap>
- </action>
- </keybind>
- <keybind key="C-A-Right">
- <action name="GoToDesktop">
- <to>right</to>
- <wrap>no</wrap>
- </action>
- </keybind>
- <keybind key="C-A-Up">
- <action name="GoToDesktop">
- <to>up</to>
- <wrap>no</wrap>
- </action>
- </keybind>
- <keybind key="C-A-Down">
- <action name="GoToDesktop">
- <to>down</to>
- <wrap>no</wrap>
- </action>
- </keybind>
- <keybind key="S-A-Left">
- <action name="SendToDesktop">
- <to>left</to>
- <wrap>no</wrap>
- </action>
- </keybind>
- <keybind key="S-A-Right">
- <action name="SendToDesktop">
- <to>right</to>
- <wrap>no</wrap>
- </action>
- </keybind>
- <keybind key="S-A-Up">
- <action name="SendToDesktop">
- <to>up</to>
- <wrap>no</wrap>
- </action>
- </keybind>
- <keybind key="S-A-Down">
- <action name="SendToDesktop">
- <to>down</to>
- <wrap>no</wrap>
- </action>
- </keybind>
<keybind key="W-F1">
<action name="GoToDesktop">
<to>1</to>
@@ -184,16 +135,6 @@
<to>2</to>
</action>
</keybind>
- <keybind key="W-F3">
- <action name="GoToDesktop">
- <to>3</to>
- </action>
- </keybind>
- <keybind key="W-F4">
- <action name="GoToDesktop">
- <to>4</to>
- </action>
- </keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
@@ -229,7 +170,6 @@
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
- <panels>yes</panels>
<desktop>yes</desktop>
<finalactions>
<action name="Focus"/>
@@ -247,6 +187,24 @@
<height>50%</height>
</action>
</keybind>
+ <keybind key="W-q">
+ <action name="UnmaximizeFull"/>
+ <action name="MoveResizeTo">
+ <x>0</x>
+ <y>0</y>
+ <width>50%</width>
+ <height>50%</height>
+ </action>
+ </keybind>
+ <keybind key="W-e">
+ <action name="UnmaximizeFull"/>
+ <action name="MoveResizeTo">
+ <x>50%</x>
+ <y>0</y>
+ <width>50%</width>
+ <height>50%</height>
+ </action>
+ </keybind>
<keybind key="W-s">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
@@ -274,10 +232,91 @@
<height>100%</height>
</action>
</keybind>
+ <keybind key="W-z">
+ <action name="UnmaximizeFull"/>
+ <action name="MoveResizeTo">
+ <x>0</x>
+ <y>50%</y>
+ <width>50%</width>
+ <height>50%</height>
+ </action>
+ </keybind>
+ <keybind key="W-c">
+ <action name="UnmaximizeFull"/>
+ <action name="MoveResizeTo">
+ <x>50%</x>
+ <y>50%</y>
+ <width>50%</width>
+ <height>50%</height>
+ </action>
+ </keybind>
+ <keybind key="W-S-a">
+ <action name="DirectionalCycleWindows">
+ <direction>west</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+ <keybind key="W-S-d">
+ <action name="DirectionalCycleWindows">
+ <direction>east</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+ <keybind key="W-S-s">
+ <action name="DirectionalCycleWindows">
+ <direction>south</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+ <keybind key="W-S-w">
+ <action name="DirectionalCycleWindows">
+ <direction>north</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+ <keybind key="W-S-q">
+ <action name="DirectionalCycleWindows">
+ <direction>northwest</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+ <keybind key="W-S-e">
+ <action name="DirectionalCycleWindows">
+ <direction>northeast</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+ <keybind key="W-S-c">
+ <action name="DirectionalCycleWindows">
+ <direction>southeast</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+ <keybind key="W-S-z">
+ <action name="DirectionalCycleWindows">
+ <direction>southwest</direction>
+ <dialog>yes</dialog>
+ <bar>yes</bar>
+ </action>
+ </keybind>
+
+ <keybind key="W-C-x">
+ <action name="Move"></action>
+ </keybind>
+ <keybind key="W-S-r">
+ <action name="Resize"></action>
+ </keybind>
<!-- Keybindings for running applications -->
- <keybind key="W-e">
+ <keybind key="W-t">
<action name="Execute">
- <command>spacefm -w</command>
+ <command>xfce4-terminal</command>
</action>
</keybind>
<keybind key="W-S-s">
@@ -287,10 +326,10 @@
</keybind>
<keybind key="W-r">
<action name="Execute">
- <command>xfce4-appfinder</command>
+ <command>xfce4-appfinder -c</command>
</action>
</keybind>
- <keybind key="W-z">
+ <keybind key="W-x">
<action name="ToggleMaximize"/>
</keybind>
<keybind key="C-A-S-W-d">