Changed window compositor.

Added window margins.
This commit is contained in:
paul-loedige
2021-07-16 20:01:23 +02:00
parent fce57202d3
commit 7e389eedd4
6 changed files with 524 additions and 4 deletions
+2
View File
@@ -23,6 +23,8 @@ keys = [
Key([mod, "shift"], "l", lazy.layout.swap_right(),desc="move focused window right"),
Key([mod, "shift"], "j", lazy.layout.shuffle_down(),desc="move focused window down"),
Key([mod, "shift"], "k", lazy.layout.shuffle_up(),desc="move focused window up"),
Key([mod, "shift", "control"], "h", lazy.layout.swap_column_left(),desc="move focused window one column to the left"),
Key([mod, "shift", "control"], "l", lazy.layout.swap_column_right(),desc="move focused window one column to the right"),
# resize windows
Key([mod], "plus", lazy.layout.grow(),desc="increase window size"),
+11 -2
View File
@@ -1,24 +1,33 @@
from libqtile import layout
from defines import focus_color, border_width
from defines import focus_color, border_width, window_margin
layouts = [
layout.MonadTall(
align=1,
border_focus = focus_color,
border_width = border_width,
margin=window_margin,
new_at_current = True,
),
layout.Floating(
border_focus = focus_color,
border_width = border_width,
margin=window_margin,
),
layout.Max(),
layout.MonadWide(
border_focus = focus_color,
border_width = border_width,
new_at_current = True,
margin=window_margin,
),
layout.Columns(
border_focus = focus_color,
border_width = border_width,
num_columns = 3,
margin = window_margin,
)
]
floating_layout = layout.Floating(
@@ -42,4 +51,4 @@ floating_layout = layout.Floating(
{'wmclass': 'ssh-askpass'}, # ssh-askpass
{'wmclass': 'sun-awt-X11-XWindowPeer'}, #matlab
{'wmclass': 'sun-awt-X11-XDialogPeer'}, #matlab
])
])
+5 -1
View File
@@ -34,7 +34,9 @@ def powerline_arrow(direction, color1, color2,size):
#region Left_widgets
def Left_widgets(size,fontsize,prompt=False):
return [
widget.CurrentLayoutIcon(),
widget.CurrentLayoutIcon(
scale = 0.9,
),
*powerline_arrow('r',base_color,blue_color,size),
widget.TextBox(
text='',
@@ -58,7 +60,9 @@ def Left_widgets(size,fontsize,prompt=False):
urgent_alert_method='block',
urgent_border = red_color,
),
widget.Spacer(),
widget.WindowName(fontsize=fontsize-2),
widget.Spacer(),
]
#endregion
+1 -1
View File
@@ -10,4 +10,4 @@ timeshift &
numlockx &
redshift-gtk -t 6500:3600 &
udiskie -t &
picom -b &
picom -b --experimental-backend &
+1
View File
@@ -1,6 +1,7 @@
term = 'alacritty'
focus_color = '#076678'
border_width = 2
window_margin = 5
mod = 'mod4'
hotkey_file='/home/paul/Hotkeys'
main_screen_res = [3440,1440]