Compare commits

..

No commits in common. "128d39751808c33fd7e247c48d6d1c2fa0ac0a88" and "75b9ea48932c8dbfccb23f2b8dc51ba5b5325259" have entirely different histories.

3 changed files with 22 additions and 54 deletions

View File

@ -3,11 +3,5 @@
- [ ] 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, ScratchPad, DropDown from libqtile.config import Click, Drag, Group, Key, Match, Screen, KeyChord
from libqtile.lazy import lazy from libqtile.lazy import lazy
from qtile_extras import widget from qtile_extras import widget
@ -14,25 +14,6 @@ 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"),
@ -82,10 +63,6 @@ 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"),
@ -111,23 +88,7 @@ for vt in range(1, 8):
) )
groups = [ groups = [Group(i) for i in "1234567890"]
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(
@ -175,6 +136,20 @@ 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 = {
@ -217,7 +192,6 @@ 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,
@ -254,7 +228,7 @@ vpn = widget.GenPollCommand(
ram = widget.Memory( ram = widget.Memory(
format = "{MemFree:.0f} 󰓡 {SwapFree:.0f}", format = "{MemFree:.0f} 󰓡 {SwapFree:.0f}",
mouse_callbacks={"Button1":lazy.group['scratchpad'].dropdown_toggle('btop')}, mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e btop ")},
background=colors[6], background=colors[6],
mesure_mem="M", mesure_mem="M",
mesure_swap="M", mesure_swap="M",
@ -285,8 +259,8 @@ clock = widget.Clock(
screens = [ screens = [
Screen( Screen(
wallpaper = tapeta, wallpaper='~/.config/qtile/wallpapers/theater_by_flaviobollo.jpg',
wallpaper_mode ='stretch' , wallpaper_mode='fill',
left=bar.Gap(5), left=bar.Gap(5),
right=bar.Gap(5), right=bar.Gap(5),
@ -309,8 +283,8 @@ screens = [
), ),
), ),
Screen( Screen(
wallpaper= tapeta, wallpaper='~/.config/qtile/wallpapers/theater_by_flaviobollo.jpg',
wallpaper_mode= 'fill', wallpaper_mode='fill',
left=bar.Gap(5), left=bar.Gap(5),
right=bar.Gap(5), right=bar.Gap(5),

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 KiB