Compare commits

...

2 Commits

Author SHA1 Message Date
128d397518 scratpads learned 2025-01-01 23:19:50 +01:00
6c56acd97b new wallpaper 2024-12-26 11:44:49 +01:00
3 changed files with 54 additions and 22 deletions

View File

@ -3,5 +3,11 @@
- [ ] popup - [ ] popup
- [ ] notifications - dunst - [ ] notifications - dunst
- [ ] borders and separation of colors - [ ] borders and separation of colors
- [ ] focus, multiple on one group, floating
- [ ] function that calls for change on wallpaper
# Bugs # Bugs
# NextTime
- [ ] transparent color [0]

View File

@ -1,5 +1,5 @@
from libqtile import bar, layout, qtile, widget, hook from libqtile import bar, layout, qtile, widget, hook
from libqtile.config import Click, Drag, Group, Key, Match, Screen, KeyChord from libqtile.config import Click, Drag, Group, Key, Match, Screen, KeyChord, ScratchPad, DropDown
from libqtile.lazy import lazy from libqtile.lazy import lazy
from qtile_extras import widget from qtile_extras import widget
@ -14,6 +14,25 @@ shift = "shift"
alt = "mod1" alt = "mod1"
home = os.path.expanduser('~') home = os.path.expanduser('~')
tapeta = '/home/godot/.config/qtile/wallpapers/theater_by_flaviobollo.jpg'
#tapeta = '/home/godot/.config/qtile/wallpapers/McEscher-Street.jpg'
colors = [["#293136", "#293136"], #bg_dim [0]
["#333C43", "#333C43"], #bg_0 [1]
["#3A464C", "#3A464C"], #bg_1 [2]
["#434F55", "#434F55"], #bg_2 [3]
["#4D5960", "#4D5960"], #bg_3 [4]
["#555F66", "#555F66"], #bg_4 [5]
["#7FBBB3", "#7FBBB3"], #blue [6]
["#A7C080", "#A7C080"], #green [7]
["#DBBC7F", "#DBBC7F"], #yellow [8]
["#E69875", "#E69875"], #orange [9]
['#ED8082', '#ED8080'], #red [10]
['#00000000', '#00000000'], #transparent [11]
]
keys = [ keys = [
#Kills focused window #Kills focused window
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"), Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
@ -63,6 +82,10 @@ keys = [
Key([mod], "s", lazy.spawn('rofi -show ssh'), desc="Spawn rofi SSH"), Key([mod], "s", lazy.spawn('rofi -show ssh'), desc="Spawn rofi SSH"),
Key([mod], "r", lazy.spawn("rofi -show drun -show-icons"), desc="Spawn rofi drun"), Key([mod], "r", lazy.spawn("rofi -show drun -show-icons"), desc="Spawn rofi drun"),
# Scratchpads
Key([mod], 'c', lazy.group['scratchpad'].dropdown_toggle('term')),
Key([mod], 'v', lazy.group['scratchpad'].dropdown_toggle('btop')),
# WLR-RANDR for second screen # WLR-RANDR for second screen
Key([mod, "control"], "Down", lazy.spawn("wlr-randr --output VGA-1 --transform normal"), desc="sets second monitor to normal rotation"), Key([mod, "control"], "Down", lazy.spawn("wlr-randr --output VGA-1 --transform normal"), desc="sets second monitor to normal rotation"),
Key([mod, "control"], "Left", lazy.spawn("wlr-randr --output VGA-1 --transform 90"), desc="sets second monitor to 90 rotation"), Key([mod, "control"], "Left", lazy.spawn("wlr-randr --output VGA-1 --transform 90"), desc="sets second monitor to 90 rotation"),
@ -88,7 +111,23 @@ for vt in range(1, 8):
) )
groups = [Group(i) for i in "1234567890"] groups = [
ScratchPad("scratchpad", [
DropDown("term", "alacritty", width=0.8, height=0.8, x=0.1, y=0.1, opacity=1),
DropDown("btop", "alacritty -e btop", width=0.8, height=0.8, x=0.1, y=0.1, opacity=1),
]),
Group("1"),
Group("2"),
Group("3"),
Group("4"),
Group("5"),
Group("6"),
Group("7"),
Group("8"),
Group("9"),
Group("0"),
]
for i in groups: for i in groups:
keys.extend( keys.extend(
@ -136,20 +175,6 @@ widget_defaults = dict(
) )
extension_defaults = widget_defaults.copy() extension_defaults = widget_defaults.copy()
colors = [["#293136", "#293136"], #bg_dim [0]
["#333C43", "#333C43"], #bg_0 [1]
["#3A464C", "#3A464C"], #bg_1 [2]
["#434F55", "#434F55"], #bg_2 [3]
["#4D5960", "#4D5960"], #bg_3 [4]
["#555F66", "#555F66"], #bg_4 [5]
["#7FBBB3", "#7FBBB3"], #blue [6]
["#A7C080", "#A7C080"], #green [7]
["#DBBC7F", "#DBBC7F"], #yellow [8]
["#E69875", "#E69875"], #orange [9]
['#ED8082', '#ED8080'], #red [10]
['#00000000', '#00000000'], #transparent [11]
]
# Eye candy widgets # Eye candy widgets
rounded_left = { rounded_left = {
@ -192,6 +217,7 @@ group_box = widget.GroupBox(
**rounded_left, **rounded_left,
) )
#spacer needs fixed length so 1 for every screen
spacer_main = widget.Spacer( spacer_main = widget.Spacer(
background = colors[11], #transparent background = colors[11], #transparent
**rounded_right, **rounded_right,
@ -228,7 +254,7 @@ vpn = widget.GenPollCommand(
ram = widget.Memory( ram = widget.Memory(
format = "{MemFree:.0f} 󰓡 {SwapFree:.0f}", format = "{MemFree:.0f} 󰓡 {SwapFree:.0f}",
mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e btop ")}, mouse_callbacks={"Button1":lazy.group['scratchpad'].dropdown_toggle('btop')},
background=colors[6], background=colors[6],
mesure_mem="M", mesure_mem="M",
mesure_swap="M", mesure_swap="M",
@ -259,8 +285,8 @@ clock = widget.Clock(
screens = [ screens = [
Screen( Screen(
wallpaper='~/.config/qtile/wallpapers/theater_by_flaviobollo.jpg', wallpaper = tapeta,
wallpaper_mode='fill', wallpaper_mode ='stretch' ,
left=bar.Gap(5), left=bar.Gap(5),
right=bar.Gap(5), right=bar.Gap(5),
@ -283,7 +309,7 @@ screens = [
), ),
), ),
Screen( Screen(
wallpaper='~/.config/qtile/wallpapers/theater_by_flaviobollo.jpg', wallpaper= tapeta,
wallpaper_mode= 'fill', wallpaper_mode= 'fill',
left=bar.Gap(5), left=bar.Gap(5),

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB