From 51c2445b1a6569cb3a3bf64e0b8fe2dfa4075dc7 Mon Sep 17 00:00:00 2001 From: The-Repo-Club Date: Sun, 17 Sep 2023 13:14:05 +0100 Subject: [PATCH] Update Dotfiles --- dconf/.config/dconf/user | Bin 4747 -> 4648 bytes package-list/.config/package-list | 2 - qtile/.config/qtile/core/bar/bottom.py | 58 +++++++++++++++++- qtile/.config/qtile/core/bar/shapes.py | 6 +- qtile/.config/qtile/core/keys.py | 7 +-- qtile/.config/qtile/core/layouts.py | 6 -- qtile/.config/qtile/core/screens.py | 14 ++--- .../.config/qtile/scripts/xcompmgr-toggle.sh | 0 qtile/.config/qtile/scripts/xcompmgr.sh | 4 +- rofi/.local/bin/rofi/wifimanager_run | 25 ++++++++ 10 files changed, 95 insertions(+), 27 deletions(-) mode change 100644 => 100755 qtile/.config/qtile/scripts/xcompmgr-toggle.sh mode change 100644 => 100755 qtile/.config/qtile/scripts/xcompmgr.sh create mode 100755 rofi/.local/bin/rofi/wifimanager_run diff --git a/dconf/.config/dconf/user b/dconf/.config/dconf/user index b71d3a9a1ca9355643c10036ff02c62447a2a37c..7540c201f133a3f394df532b42e878698bb7d049 100644 GIT binary patch literal 4648 zcmbW5eT)_56~<@XMV4<6T@kP@g1CsY7ZF81s%!aJCE32CuKQLELqSV>Hps{K84hh=H@uioV0 zdG@^TymRKf=bU+m_S>D%b^O>$f1}_njmaM^x23i^_<|Ju;0r;2plQOu6hq+QDMr8- z^?^&UHKn)|z6^{>F%}js2cJlB1>6kAf$?BMimPB@B53J_$!Ht2_Cf|NOi3{nz8>5N zrh}O&Zia73(FO~*f=~6rT=e`D?eIdd2rTY}rpHEnU+XK5O;)G1A3gy3ovD0PbESuH z#bNjbaK|mDmdIb}%b9-~ejkiI_~?6je(3?&`NygU13sR1neHv!k98X1QQ*+))?Ev+ zOOIoI8{7_@Vc{d%L+OjKuZ6dPD~A+TwqchZiG4qO0Q~i(CtlU_NDsn(7=9TH`)zcE zVw-5}Z((}}Jn-U>jq+c5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(bg, fg), + fmt="{}", + chords_colors={ + "Resize Windows": (fg, bg), + "Launch Game": (fg, bg), + "Take a Screenshot": (fg, bg), + }, + name_transform=lambda name: name.upper(), + ), + ] + + +def picom(bg, fg) -> list: + return [ + modify( + TextBox, + **base(bg, fg), + **icon_font(), + **rectangle("left"), + offset=0, + padding=0, + ), + widget.GenPollText( + **base(bg, fg), + fmt="{}", + func=lambda: subprocess.check_output( + expanduser("~/.config/qtile/scripts/xcompmgr.sh") + ).decode("utf-8"), + mouse_callbacks={ + "Button1": lambda: subprocess.run( + expanduser("~/.config/qtile/scripts/xcompmgr-toggle.sh") + ), + }, + update_interval=1, + padding=10, + ), + modify( + TextBox, + **base(bg, fg), + **icon_font(), + **rectangle("right"), + offset=0, + padding=0, + ), + ] + + def widgets(): return [ widget.Spacer(length=2), *weather(palette.colorScheme[1], palette.currentColor), widget.Spacer(), + *chords(palette.colorScheme[2], palette.currentColor), + *picom(palette.colorScheme[3], palette.currentColor), widget.Spacer(length=2), ] diff --git a/qtile/.config/qtile/core/bar/shapes.py b/qtile/.config/qtile/core/bar/shapes.py index 6f439a977..237345e66 100644 --- a/qtile/.config/qtile/core/bar/shapes.py +++ b/qtile/.config/qtile/core/bar/shapes.py @@ -115,6 +115,7 @@ def updates(bg, fg) -> list: widget.CheckUpdates( **base(bg, fg), **rectangle("right"), + mouse_callbacks={"Button1": lazy.spawn(cfg.term + " -e yay -Syu")}, colour_have_updates=fg, colour_no_updates=fg, display_format="{updates} updates ", @@ -133,7 +134,10 @@ def power(bg, fg) -> TextBox: **base(bg, fg), **icon_font(), **rectangle(), - mouse_callbacks={"Button1": lazy.spawn(cfg.power)}, + mouse_callbacks={ + "Button1": lazy.spawn(cfg.power), + "Button3": lazy.spawn("qtile cmd-obj -o cmd -f restart"), + }, offset=4, padding=7, text="", diff --git a/qtile/.config/qtile/core/keys.py b/qtile/.config/qtile/core/keys.py index 2761766b9..69f4544ca 100644 --- a/qtile/.config/qtile/core/keys.py +++ b/qtile/.config/qtile/core/keys.py @@ -93,12 +93,7 @@ keys.extend( "r", [ Key([], "h", lazy.layout.grow_left(), desc="Grow window to the left"), - Key( - [], - "l", - lazy.layout.grow_right(), - desc="Grow window to the right", - ), + Key([], "l", lazy.layout.grow_right(), desc="Grow window to the right"), Key([], "j", lazy.layout.grow_down(), desc="Grow window down"), Key([], "k", lazy.layout.grow_up(), desc="Grow window up"), ], diff --git a/qtile/.config/qtile/core/layouts.py b/qtile/.config/qtile/core/layouts.py index c07daeb24..c172dbbc8 100644 --- a/qtile/.config/qtile/core/layouts.py +++ b/qtile/.config/qtile/core/layouts.py @@ -67,22 +67,16 @@ floating_layout = layout.Floating( "confirmreset", "Display", "floating", - "gnome-screenshot", "gpicview", - "lxappearance", "makebranch", "maketag", "pavucontrol", "psterm", "ssh-askpass", - "steam", - "thunar", "Xephyr", - "xfce4-about", ), *title( "branchdialog", - "minecraft-launcher", "pinentry", ), ], diff --git a/qtile/.config/qtile/core/screens.py b/qtile/.config/qtile/core/screens.py index da38511c2..ccbad5d95 100644 --- a/qtile/.config/qtile/core/screens.py +++ b/qtile/.config/qtile/core/screens.py @@ -8,12 +8,12 @@ screens = [ wallpaper=cfg.wallpaper, wallpaper_mode="fill", top=Bar(cfg.bar).create(), - # bottom=Bar(cfg.bar2).create(), - ), - Screen( - wallpaper=cfg.wallpaper, - wallpaper_mode="fill", - top=Bar(cfg.bar).create(), - # bottom=Bar(cfg.bar2).create(), + bottom=Bar(cfg.bar2).create(), ), + # Screen( + # wallpaper=cfg.wallpaper, + # wallpaper_mode="fill", + # top=Bar(cfg.bar).create(), + # bottom=Bar(cfg.bar2).create(), + # ), ] diff --git a/qtile/.config/qtile/scripts/xcompmgr-toggle.sh b/qtile/.config/qtile/scripts/xcompmgr-toggle.sh old mode 100644 new mode 100755 diff --git a/qtile/.config/qtile/scripts/xcompmgr.sh b/qtile/.config/qtile/scripts/xcompmgr.sh old mode 100644 new mode 100755 index 1a478d674..95d3eb3a0 --- a/qtile/.config/qtile/scripts/xcompmgr.sh +++ b/qtile/.config/qtile/scripts/xcompmgr.sh @@ -2,7 +2,7 @@ #The text that would change color if pgrep -x "xcompmgr" >/dev/null; then - echo -n "Loaded" + echo -n "xComp On" else - echo -n "UnLoaded" + echo -n "xComp Off" fi diff --git a/rofi/.local/bin/rofi/wifimanager_run b/rofi/.local/bin/rofi/wifimanager_run new file mode 100755 index 000000000..9cac356cc --- /dev/null +++ b/rofi/.local/bin/rofi/wifimanager_run @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +#-*-coding:utf-8 -*- +#Auto updated? +# Yes +#File: +# wifimanager_run +#Author: +# The-Repo-Club [wayne6324@gmail.com] +#Github: +# https://github.com/The-Repo-Club/ +# +#Created: +# Wed 07 December 2022, 11:01:52 PM [GMT] +#Modified: +# Sat 16 September 2023, 07:42:10 PM [UTC] +# +#Description: +# +# +#Dependencies: +# +# +# shellcheck disable=all + +rofi -show wifimanager -config ~/.config/rofi/wifimanager.rasi