This commit is contained in:
The-Repo-Club 2023-08-03 22:48:15 +01:00
parent 2aeb5f5b30
commit e4ce48e6e9
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
5 changed files with 3 additions and 21 deletions

View File

@ -79,7 +79,7 @@ conky.config = {
}; };
conky.text = [[ conky.text = [[
${alignc}${color0}${font2}${time %H:%M}${font} ${alignc}${color0}${font2}${time %I:%M %p}${font}
${voffset 6}${alignc}${color0}${font3}${time %b %d, %Y}${font}${color} ${voffset 6}${alignc}${color0}${font3}${time %b %d, %Y}${font}${color}
${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu% ${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu%
${color2}${goto 12}${cpubar 8,254} ${color2}${goto 12}${cpubar 8,254}

View File

@ -79,7 +79,7 @@ conky.config = {
}; };
conky.text = [[ conky.text = [[
${alignc}${color0}${font2}${time %H:%M}${font} ${alignc}${color0}${font2}${time %I:%M %p}${font}
${voffset 6}${alignc}${color0}${font3}${time %b %d, %Y}${font}${color} ${voffset 6}${alignc}${color0}${font3}${time %b %d, %Y}${font}${color}
${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu% ${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu%
${color2}${goto 12}${cpubar 8,254} ${color2}${goto 12}${cpubar 8,254}

Binary file not shown.

View File

@ -12,6 +12,6 @@ strings=bat, pkgbrowser, ly, zap, i3-gaps, microsoft edge, python3, python, pama
[window] [window]
central-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\0\0\0\x1>\0\xff\xff\xff\xff\x1\0\0\0\x1\0) central-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\0\0\0\x1>\0\xff\xff\xff\xff\x1\0\0\0\x1\0)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x87\0\0\0!\0\0\xe\xf8\0\0\x4\x16\0\0\a\x91\0\0\0+\0\0\xe\xee\0\0\x4\f\0\0\0\x1\0\0\0\0\a\x80\0\0\a\x91\0\0\0+\0\0\xe\xee\0\0\x4\f) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\a\0\0\0!\0\0\ax\0\0\x4\x16\0\0\0\x11\0\0\0+\0\0\an\0\0\x4\f\0\0\0\0\0\0\0\0\a\x80\0\0\0\x11\0\0\0+\0\0\an\0\0\x4\f)
left-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\x1\f\0\xff\xff\xff\xff\x1\0\0\0\x2\0) left-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\x1\f\0\xff\xff\xff\xff\x1\0\0\0\x2\0)
right-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\0\xee\0\xff\xff\xff\xff\x1\0\0\0\x2\0) right-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\0\xee\0\xff\xff\xff\xff\x1\0\0\0\x2\0)

View File

@ -1,5 +1,4 @@
import re import re
from libqtile import hook, qtile
from libqtile.config import Group, Match from libqtile.config import Group, Match
@ -108,20 +107,3 @@ class Groups(object):
name='0', name='0',
), ),
] ]
# Store the screen_affinity for each group in a dictionary
group_screen_affinities = {group.name: group.screen_affinity for group in Groups.groups}
@hook.subscribe.client_focus
def enforce_screen_affinity(window):
group_name = window.group.name
# If the group has a specified screen_affinity, enforce it
if group_name in group_screen_affinities:
desired_screen = group_screen_affinities[group_name]
current_screen = qtile.screens.index(qtile.current_screen)
# If the window is focused on a different screen than the desired screen,
# move the window back to the desired screen
if current_screen != desired_screen:
window.togroup(group_name)