rotation done by keys
This commit is contained in:
parent
3725240608
commit
64d6b50e2b
18
bar.py
18
bar.py
@ -3,6 +3,8 @@ from libqtile.config import Click, Drag, Group, Key, Match, Screen
|
|||||||
from libqtile.lazy import lazy
|
from libqtile.lazy import lazy
|
||||||
from libqtile.utils import guess_terminal, send_notification
|
from libqtile.utils import guess_terminal, send_notification
|
||||||
|
|
||||||
|
# Defaults
|
||||||
|
|
||||||
widget_defaults = dict(
|
widget_defaults = dict(
|
||||||
font="sans",
|
font="sans",
|
||||||
fontsize=12,
|
fontsize=12,
|
||||||
@ -11,9 +13,19 @@ widget_defaults = dict(
|
|||||||
|
|
||||||
extension_defaults = widget_defaults.copy()
|
extension_defaults = widget_defaults.copy()
|
||||||
|
|
||||||
|
colors = [
|
||||||
|
["#000000", "#000000"], # true black [0]
|
||||||
|
["#ffffff", "#ffffff"],
|
||||||
|
]
|
||||||
|
|
||||||
# Eye candy widgets
|
# Eye candy widgets
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Funciton widgets
|
||||||
|
|
||||||
icon = widget.TextBox(
|
icon = widget.TextBox(
|
||||||
text=' ',
|
text=' ',
|
||||||
font="JetBrainsMono Nerd Font",
|
font="JetBrainsMono Nerd Font",
|
||||||
@ -24,10 +36,6 @@ icon = widget.TextBox(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Funciton widgets
|
|
||||||
|
|
||||||
group_box = widget.GroupBox(
|
group_box = widget.GroupBox(
|
||||||
highlight_metod='block',
|
highlight_metod='block',
|
||||||
visible_groups=['1', '2', '3', '4', '5']
|
visible_groups=['1', '2', '3', '4', '5']
|
||||||
@ -67,7 +75,7 @@ screens = [
|
|||||||
], 30,
|
], 30,
|
||||||
margin=6,
|
margin=6,
|
||||||
border_width=1,
|
border_width=1,
|
||||||
border_color="ffffff", # Borders are white
|
border_color= colors[1][0], # Borders are white
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
6
keys.py
6
keys.py
@ -49,10 +49,14 @@ keys = [
|
|||||||
Key([mod], "d", lazy.spawn("vesktop"), desc="Launch discord"),
|
Key([mod], "d", lazy.spawn("vesktop"), desc="Launch discord"),
|
||||||
Key([mod], "k", lazy.spawn("keepassxc"), desc="Launch KeePassXC"),
|
Key([mod], "k", lazy.spawn("keepassxc"), desc="Launch KeePassXC"),
|
||||||
|
|
||||||
|
|
||||||
Key([mod], "s", lazy.spawn('rofi -show ssh'), desc="Spawn rofi SSH"),
|
Key([mod], "s", lazy.spawn('rofi -show ssh'), desc="Spawn rofi SSH"),
|
||||||
Key([mod], "r", lazy.spawn("rofi -show drun -show-icons"), desc="Spawn rofi drun"),
|
Key([mod], "r", lazy.spawn("rofi -show drun -show-icons"), desc="Spawn rofi drun"),
|
||||||
|
|
||||||
|
Key([mod, "control"], "Down", lazy.spawn("wlr-randr --output VGA-1 --transform normal"), desc="sets second monitor to normal rotation"),
|
||||||
|
Key([mod, "control"], "Right", lazy.spawn("wlr-randr --output VGA-1 --transform 90"), desc="sets second monitor to 90 rotation"),
|
||||||
|
Key([mod, "control"], "Up", lazy.spawn("wlr-randr --output VGA-1 --transform 180"), desc="sets second monitor to 180 rotation"),
|
||||||
|
Key([mod, "control"], "Left", lazy.spawn("wlr-randr --output VGA-1 --transform 270"), desc="sets second monitor to 270 rotation"),
|
||||||
|
|
||||||
# Change keyboard leyout
|
# Change keyboard leyout
|
||||||
Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"),
|
Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user