From 6e3d2f12b249fded40251508ff71794cde3ee6f8 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 10 Feb 2022 11:16:22 +0100 Subject: update configs --- .config/qtile/__pycache__/config.cpython-310.pyc | Bin 0 -> 5643 bytes .config/qtile/__pycache__/config.cpython-38.pyc | Bin 0 -> 5728 bytes .config/qtile/autorc | 13 +++-- .config/qtile/config.py | 69 ++++++++++++++++++++++- .config/qtile/mdt_shell | 1 + 5 files changed, 75 insertions(+), 8 deletions(-) create mode 100644 .config/qtile/__pycache__/config.cpython-310.pyc create mode 100644 .config/qtile/__pycache__/config.cpython-38.pyc create mode 100755 .config/qtile/mdt_shell (limited to '.config/qtile') diff --git a/.config/qtile/__pycache__/config.cpython-310.pyc b/.config/qtile/__pycache__/config.cpython-310.pyc new file mode 100644 index 0000000..542d4c5 Binary files /dev/null and b/.config/qtile/__pycache__/config.cpython-310.pyc differ diff --git a/.config/qtile/__pycache__/config.cpython-38.pyc b/.config/qtile/__pycache__/config.cpython-38.pyc new file mode 100644 index 0000000..66d3302 Binary files /dev/null and b/.config/qtile/__pycache__/config.cpython-38.pyc differ diff --git a/.config/qtile/autorc b/.config/qtile/autorc index 14969c9..e195665 100755 --- a/.config/qtile/autorc +++ b/.config/qtile/autorc @@ -1,12 +1,14 @@ #!/bin/bash -function off_monitor_if_hdmi_plugged_in() { +function monitor_settings() { + sleep .5 monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) if [ $monitor_status == 1 ]; then - xrandr --auto - xrandr --output eDP-1 --off + # xrandr --auto + # xrandr --output eDP-1 --off + xrandr --output eDP-1-1 --auto --output HDMI-0 --auto --left-of eDP-1-1 fi } @@ -18,9 +20,8 @@ function start() { $($1 $2) & } -off_monitor_if_hdmi_plugged_in +start nitrogen "--restore" +monitor_settings caps_to_esc start picom "-b -D 4 --vsync" -start nitrogen "--restore" -start run_spotifyd diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 0ab888b..1741027 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -14,10 +14,13 @@ mod = "mod4" terminal = guess_terminal() BAR = '#282a36' +LIGHT_BAR = '#393b37' YELLOW = '#f1fa8c' RED = '#ff5555' +LIGHT_RED = '#ff9999' GREEN = '#50fa7b' CYAN = '#8be9fd' +LIGHT_CYAN = '#abfbff' @hook.subscribe.startup_once @@ -30,6 +33,7 @@ keys = [ Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), Key([mod], "j", lazy.layout.down(), desc="Move focus down"), Key([mod], "k", lazy.layout.up(), desc="Move focus up"), + Key([mod], "s", lazy.next_screen() ), Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"), @@ -59,6 +63,7 @@ keys = [ Key([mod, "control"], "r", lazy.restart(), desc="Restart Qtile"), Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), + Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), @@ -72,8 +77,11 @@ keys = [ Key([mod, "mod1"], "q", lazy.spawn("qutebrowser"), desc="Spawn qutebrowser"), Key([mod, "mod1"], "b", lazy.spawn("brave"), desc="Spawn brave"), + Key([mod, "mod1"], "f", lazy.spawn("firefox netflix.com"), desc="Spawn firefox"), Key([mod, "mod1"], "e", lazy.spawn("emacs"), desc="Spawn emacs"), Key([mod, "mod1"], "s", lazy.spawn("alacritty -e spt"), desc="Spawn spt (spotify clent)"), + Key([mod, "mod1"], "g", lazy.spawn("alacritty -e /home/jakub/.config/qtile/mdt_shell"), desc="connect to google coral device"), + Key([mod, "mod1"], "l", lazy.spawn("slock"), desc="lock desktop"), ] groups_names = [ "dev", @@ -146,7 +154,20 @@ screens = [ widget.Sep(**transparent_sep), widget.CurrentLayout(), widget.Sep(**transparent_sep), - widget.GroupBox(), + widget.GroupBox( + margin_y = 3, + margin_x = 0, + padding_y = 5, + padding_x = 3, + borderwidth = 3, + rounded = False, + highlight_color = LIGHT_BAR, + highlight_method = "line", + this_current_screen_border = CYAN, + this_screen_border = CYAN, + other_current_screen_border = LIGHT_BAR, + other_screen_border = LIGHT_BAR, + ), widget.Prompt(), widget.Sep(**transparent_sep), widget.WindowName(), @@ -156,7 +177,51 @@ screens = [ widget.Sep(**soft_sep), widget.Battery(foreground=GREEN), widget.Sep(**soft_sep), - widget.Clock(timezone='Europe/Warsaw', format='%B %-d, %H:%M', foreground=CYAN), + widget.Clock(format='%B %-d, %H:%M', foreground=CYAN), + widget.Sep(**soft_sep), + widget.CurrentScreen() + ], + 24, + margin=8, + background=BAR, + border_color=CYAN, + border_width=1 + ), + ), + Screen( + top=bar.Bar( + [ + widget.Sep(**transparent_sep), + widget.Image(filename="~/.config/qtile/python.png", margin=4), + widget.Sep(**transparent_sep), + widget.CurrentLayout(), + widget.Sep(**transparent_sep), + widget.GroupBox( + margin_y = 3, + margin_x = 0, + padding_y = 5, + padding_x = 3, + borderwidth = 3, + rounded = False, + highlight_color = LIGHT_BAR, + highlight_method = "line", + this_current_screen_border = CYAN, + this_screen_border = CYAN, + other_current_screen_border = LIGHT_BAR, + other_screen_border = LIGHT_BAR, + ), + widget.Prompt(), + widget.Sep(**transparent_sep), + widget.WindowName(), + widget.Net(format="↓{down} ↑{up}", foreground=YELLOW), + widget.Sep(**soft_sep), + widget.CPU(format=' {load_percent}%', fontsize=12, foreground=RED), + widget.Sep(**soft_sep), + widget.Battery(foreground=GREEN), + widget.Sep(**soft_sep), + widget.Clock(format='%B %-d, %H:%M', foreground=CYAN), + widget.Sep(**soft_sep), + widget.CurrentScreen() ], 24, margin=8, diff --git a/.config/qtile/mdt_shell b/.config/qtile/mdt_shell new file mode 100755 index 0000000..90fa6f3 --- /dev/null +++ b/.config/qtile/mdt_shell @@ -0,0 +1 @@ +TERM=xterm-256color /home/jakub/.local/bin/mdt shell -- cgit v1.2.3