diff --git a/dconf/.config/dconf/user b/dconf/.config/dconf/user index b71d3a9a1..7540c201f 100644 Binary files a/dconf/.config/dconf/user and b/dconf/.config/dconf/user differ diff --git a/package-list/.config/package-list b/package-list/.config/package-list index 3d2c22817..f8a652bc0 100644 --- a/package-list/.config/package-list +++ b/package-list/.config/package-list @@ -28,9 +28,7 @@ ideapad-cm imagewriter jetbrains-toolbox kernel-install-mkinitcpio -lib32-libxft-bgra libart-lgpl -libxft-bgra linux-wifi-hotspot linuxrepos-keyring linuxrepos-mirrorlist diff --git a/qtile/.config/qtile/core/bar/bottom.py b/qtile/.config/qtile/core/bar/bottom.py index 78800965d..e9e0f8987 100644 --- a/qtile/.config/qtile/core/bar/bottom.py +++ b/qtile/.config/qtile/core/bar/bottom.py @@ -1,11 +1,11 @@ -from libqtile.bar import CALCULATED -from libqtile.lazy import lazy - from core.bar.base import base, icon_font, powerline, rectangle from extras import Clock, GroupBox, TextBox, modify, widget from utils.config import cfg from utils.palette import palette +from os.path import expanduser +import subprocess + bar = { "background": palette.backgroundColor, "border_color": palette.backgroundColor, @@ -53,10 +53,62 @@ def weather(bg, fg) -> list: ] +def chords(bg, fg) -> list: + return [ + widget.Chord( + **base(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