mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-28 18:28:39 -05:00
Update
This commit is contained in:
parent
8c5858764a
commit
0db6e954c7
Binary file not shown.
@ -12,7 +12,7 @@
|
|||||||
#Created:
|
#Created:
|
||||||
# Mon 22 November 2021, 03:15:54 PM [GMT+1]
|
# Mon 22 November 2021, 03:15:54 PM [GMT+1]
|
||||||
#Modified:
|
#Modified:
|
||||||
# Sun 06 August 2023, 06:58:02 PM [GMT+1]
|
# Mon 07 August 2023, 09:45:19 PM [GMT+1]
|
||||||
#
|
#
|
||||||
#Description:
|
#Description:
|
||||||
# <Todo>
|
# <Todo>
|
||||||
@ -60,26 +60,27 @@ if [[ $DESKTOP_SESSION == "i3" ]]; then
|
|||||||
else
|
else
|
||||||
echo "i3-autolayout can not be found"
|
echo "i3-autolayout can not be found"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v xroot &>/dev/null; then
|
if command -v xroot &>/dev/null; then
|
||||||
if ! pgrep -f "xroot" >/dev/null; then
|
if ! pgrep -f "xroot" >/dev/null; then
|
||||||
if command -v xmenu_desktop &>/dev/null; then
|
if command -v xmenu_desktop &>/dev/null; then
|
||||||
if ! pgrep -f "xmenu_desktop" >/dev/null; then
|
if ! pgrep -f "xmenu_desktop" >/dev/null; then
|
||||||
(
|
(
|
||||||
sleep 2s
|
sleep 2s
|
||||||
xroot -r xmenu_desktop
|
xroot -r xmenu_desktop
|
||||||
) &
|
) &
|
||||||
else
|
else
|
||||||
echo "xroot already Running"
|
echo "xroot already Running"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "xroot already Running"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "xroot can not be found"
|
echo "xroot already Running"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "xroot can not be found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v clipmenu-daemon &>/dev/null; then
|
if command -v clipmenu-daemon &>/dev/null; then
|
||||||
if ! pgrep -f "clipmenu-daemon" >/dev/null; then
|
if ! pgrep -f "clipmenu-daemon" >/dev/null; then
|
||||||
(
|
(
|
||||||
|
@ -163,7 +163,8 @@ rounded-corners-exclude = [
|
|||||||
# Window Manager Stuff
|
# Window Manager Stuff
|
||||||
"class_g = 'repowm'",
|
"class_g = 'repowm'",
|
||||||
"class_g = 'repowmsystray'",
|
"class_g = 'repowmsystray'",
|
||||||
"class_g = 'scratchpad_terminal'"
|
"class_g = 'scratchpad_terminal'",
|
||||||
|
"QTILE_INTERNAL:32c = 1"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,10 +21,8 @@
|
|||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import json
|
|
||||||
import locale
|
import locale
|
||||||
import subprocess
|
import subprocess
|
||||||
from os.path import expanduser
|
|
||||||
|
|
||||||
from widgets import Widgets
|
from widgets import Widgets
|
||||||
from groups import Groups
|
from groups import Groups
|
||||||
@ -32,10 +30,11 @@ from colors import colorScheme, currentColor
|
|||||||
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
|
|
||||||
from libqtile import bar, layout, hook
|
from libqtile import qtile, bar, layout, hook
|
||||||
from libqtile.config import Key, Click, Drag, Screen, Match, KeyChord, ScratchPad, DropDown
|
from libqtile.config import Key, Click, Drag, Screen, Match, KeyChord, ScratchPad, DropDown
|
||||||
from libqtile.lazy import lazy
|
from libqtile.lazy import lazy
|
||||||
from libqtile.dgroups import simple_key_binder
|
|
||||||
|
from typing import Callable
|
||||||
|
|
||||||
###################
|
###################
|
||||||
## Color Schemes ##
|
## Color Schemes ##
|
||||||
@ -47,6 +46,21 @@ from colors import foregroundColor, backgroundColor
|
|||||||
## Utils ##
|
## Utils ##
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
def go_to_group(name: str) -> Callable:
|
||||||
|
def _inner(qtile: qtile) -> None:
|
||||||
|
if len(qtile.screens) == 1:
|
||||||
|
qtile.groups_map[name].cmd_toscreen()
|
||||||
|
return
|
||||||
|
|
||||||
|
if name in '12345':
|
||||||
|
qtile.focus_screen(0)
|
||||||
|
qtile.groups_map[name].cmd_toscreen()
|
||||||
|
else:
|
||||||
|
qtile.focus_screen(1)
|
||||||
|
qtile.groups_map[name].cmd_toscreen()
|
||||||
|
|
||||||
|
return _inner
|
||||||
|
|
||||||
|
|
||||||
class Commands(object):
|
class Commands(object):
|
||||||
editor = 'code'
|
editor = 'code'
|
||||||
@ -120,9 +134,6 @@ keys = [
|
|||||||
Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -10")),
|
Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -10")),
|
||||||
]
|
]
|
||||||
|
|
||||||
dgroups_key_binder = simple_key_binder(MOD)
|
|
||||||
dgroups_app_rules = [] # type: list
|
|
||||||
|
|
||||||
keys.extend([
|
keys.extend([
|
||||||
################
|
################
|
||||||
## Key Chords ##
|
## Key Chords ##
|
||||||
@ -173,22 +184,30 @@ groups = Groups.groups
|
|||||||
|
|
||||||
# Define scratchpads
|
# Define scratchpads
|
||||||
groups.append(
|
groups.append(
|
||||||
ScratchPad("scratchpad", [
|
ScratchPad("TAB",
|
||||||
DropDown("term", "kitty --class=scratch", width=0.8, height=0.8, x=0.1, y=0.1, opacity=1),
|
[
|
||||||
DropDown("clifm", "kitty --class=clifm -e clifm", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
DropDown("term", "kitty --name=scratch", width=0.6, height=0.6, x=0.2, y=0.1, opacity=1),
|
||||||
DropDown("btop", "kitty --class=btop -e btop", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
DropDown("clifm", "kitty --name=clifm -e clifm", width=0.6, height=0.6, x=0.2, y=0.1, opacity=0.8),
|
||||||
DropDown("volume", "pavucontrol", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
DropDown("btop", "kitty --name=btop -e btop", width=0.6, height=0.6, x=0.2, y=0.1, opacity=0.8),
|
||||||
|
DropDown("volume", "pavucontrol", width=0.6, height=0.6, x=0.2, y=0.1, opacity=0.8),
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
|
|
||||||
|
for i in groups:
|
||||||
|
keys.extend([
|
||||||
|
Key([MOD], i.name, lazy.function(go_to_group(i.name))),
|
||||||
|
Key([MOD, "shift"], i.name, lazy.window.togroup(i.name)),
|
||||||
|
])
|
||||||
|
|
||||||
# Scratchpad keybindings
|
# Scratchpad keybindings
|
||||||
keys.extend([
|
keys.extend([
|
||||||
Key([CTRL], "Return", lazy.group['scratchpad'].dropdown_toggle('term')),
|
Key([CTRL], "Return", lazy.group['TAB'].dropdown_toggle('term')),
|
||||||
Key([ALT], "c", lazy.group['scratchpad'].dropdown_toggle('clifm')),
|
Key([ALT], "c", lazy.group['TAB'].dropdown_toggle('clifm')),
|
||||||
Key([ALT], "b", lazy.group['scratchpad'].dropdown_toggle('btop')),
|
Key([ALT], "b", lazy.group['TAB'].dropdown_toggle('btop')),
|
||||||
Key([ALT], "v", lazy.group['scratchpad'].dropdown_toggle('volume')),
|
Key([ALT], "v", lazy.group['TAB'].dropdown_toggle('volume')),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
## Layouts Config ##
|
## Layouts Config ##
|
||||||
####################
|
####################
|
||||||
@ -396,11 +415,25 @@ wl_input_rules = None
|
|||||||
#
|
#
|
||||||
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
||||||
# java that happens to be on java's whitelist.
|
# java that happens to be on java's whitelist.
|
||||||
wmname = "Qtile 0.22.1"
|
wmname = "Qtile"
|
||||||
|
|
||||||
|
@hook.subscribe.screens_reconfigured
|
||||||
|
async def _():
|
||||||
|
if len(qtile.screens) > 1:
|
||||||
|
Widgets.groupBox1.visible_groups = ['1', '2', '3', '4', '5']
|
||||||
|
Widgets.groupBox2.visible_groups = ['6', '7', '8', '9', '0']
|
||||||
|
else:
|
||||||
|
Widgets.groupBox1.visible_groups = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
|
||||||
|
|
||||||
|
|
||||||
@hook.subscribe.startup_once
|
@hook.subscribe.startup_once
|
||||||
def start_once():
|
def start_once():
|
||||||
|
if len(qtile.screens) > 1:
|
||||||
|
Widgets.groupBox1.visible_groups = ['1', '2', '3', '4', '5']
|
||||||
|
Widgets.groupBox2.visible_groups = ['6', '7', '8', '9', '0']
|
||||||
|
else:
|
||||||
|
Widgets.groupBox1.visible_groups = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
|
||||||
|
|
||||||
for configure in Commands.configure:
|
for configure in Commands.configure:
|
||||||
subprocess.Popen([configure], shell=True)
|
subprocess.Popen([configure], shell=True)
|
||||||
|
|
||||||
|
@ -9,5 +9,5 @@ if pgrep -x "picom" > /dev/null
|
|||||||
then
|
then
|
||||||
killall picom
|
killall picom
|
||||||
else
|
else
|
||||||
picom -CGb --config ~/.config/picom/picom.conf
|
picom --config ~/.config/picom/picom.conf &
|
||||||
fi
|
fi
|
||||||
|
@ -64,7 +64,6 @@ class Widgets(object):
|
|||||||
foreground=foregroundColor,
|
foreground=foregroundColor,
|
||||||
background=backgroundColor,
|
background=backgroundColor,
|
||||||
use_mouse_wheel=False,
|
use_mouse_wheel=False,
|
||||||
visible_groups=["1", "2", "3", "4", "5"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
groupBox2 = widget.GroupBox(
|
groupBox2 = widget.GroupBox(
|
||||||
@ -92,7 +91,6 @@ class Widgets(object):
|
|||||||
foreground=foregroundColor,
|
foreground=foregroundColor,
|
||||||
background=backgroundColor,
|
background=backgroundColor,
|
||||||
use_mouse_wheel=False,
|
use_mouse_wheel=False,
|
||||||
visible_groups=["6", "7", "8", "9", "0"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
windowName1 = widget.WindowName(
|
windowName1 = widget.WindowName(
|
||||||
|
Loading…
Reference in New Issue
Block a user