mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-24 16:28:41 -05:00
Update Dotfiles
This commit is contained in:
parent
a048546256
commit
51c2445b1a
Binary file not shown.
@ -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
|
||||
|
@ -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),
|
||||
]
|
||||
|
@ -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="",
|
||||
|
@ -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"),
|
||||
],
|
||||
|
@ -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",
|
||||
),
|
||||
],
|
||||
|
@ -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(),
|
||||
# ),
|
||||
]
|
||||
|
0
qtile/.config/qtile/scripts/xcompmgr-toggle.sh
Normal file → Executable file
0
qtile/.config/qtile/scripts/xcompmgr-toggle.sh
Normal file → Executable file
4
qtile/.config/qtile/scripts/xcompmgr.sh
Normal file → Executable file
4
qtile/.config/qtile/scripts/xcompmgr.sh
Normal file → Executable file
@ -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
|
||||
|
25
rofi/.local/bin/rofi/wifimanager_run
Executable file
25
rofi/.local/bin/rofi/wifimanager_run
Executable file
@ -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:
|
||||
# <Todo>
|
||||
#
|
||||
#Dependencies:
|
||||
# <None>
|
||||
#
|
||||
# shellcheck disable=all
|
||||
|
||||
rofi -show wifimanager -config ~/.config/rofi/wifimanager.rasi
|
Loading…
Reference in New Issue
Block a user