diff --git a/bar.py b/bar.py index a9ec041..2b2167e 100644 --- a/bar.py +++ b/bar.py @@ -1,8 +1,10 @@ -from libqtile import bar, layout, widget, hook +from libqtile import bar, layout, widget, hook from libqtile.config import Click, Drag, Group, Key, Match, Screen from libqtile.lazy import lazy from libqtile.utils import guess_terminal, send_notification +# Defaults + widget_defaults = dict( font="sans", fontsize=12, @@ -11,9 +13,19 @@ widget_defaults = dict( extension_defaults = widget_defaults.copy() +colors = [ + ["#000000", "#000000"], # true black [0] + ["#ffffff", "#ffffff"], +] # Eye candy widgets + + + + +# Funciton widgets + icon = widget.TextBox( text='  ', font="JetBrainsMono Nerd Font", @@ -24,10 +36,6 @@ icon = widget.TextBox( ) - - -# Funciton widgets - group_box = widget.GroupBox( highlight_metod='block', visible_groups=['1', '2', '3', '4', '5'] @@ -67,7 +75,7 @@ screens = [ ], 30, margin=6, border_width=1, - border_color="ffffff", # Borders are white + border_color= colors[1][0], # Borders are white ), ), diff --git a/keys.py b/keys.py index a9f5073..aab5b9a 100644 --- a/keys.py +++ b/keys.py @@ -49,10 +49,14 @@ keys = [ Key([mod], "d", lazy.spawn("vesktop"), desc="Launch discord"), Key([mod], "k", lazy.spawn("keepassxc"), desc="Launch KeePassXC"), - 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, "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 Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"),