Compare commits
2 Commits
75b9ea4893
...
128d397518
| Author | SHA1 | Date | |
|---|---|---|---|
| 128d397518 | |||
| 6c56acd97b |
@ -3,5 +3,11 @@
|
||||
- [ ] popup
|
||||
- [ ] notifications - dunst
|
||||
- [ ] borders and separation of colors
|
||||
- [ ] focus, multiple on one group, floating
|
||||
- [ ] function that calls for change on wallpaper
|
||||
|
||||
# Bugs
|
||||
|
||||
|
||||
# NextTime
|
||||
- [ ] transparent color [0]
|
||||
|
||||
66
config.py
66
config.py
@ -1,5 +1,5 @@
|
||||
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 qtile_extras import widget
|
||||
@ -14,6 +14,25 @@ shift = "shift"
|
||||
alt = "mod1"
|
||||
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 = [
|
||||
#Kills 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], "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
|
||||
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"),
|
||||
@ -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:
|
||||
keys.extend(
|
||||
@ -136,20 +175,6 @@ widget_defaults = dict(
|
||||
)
|
||||
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
|
||||
|
||||
rounded_left = {
|
||||
@ -192,6 +217,7 @@ group_box = widget.GroupBox(
|
||||
**rounded_left,
|
||||
)
|
||||
|
||||
#spacer needs fixed length so 1 for every screen
|
||||
spacer_main = widget.Spacer(
|
||||
background = colors[11], #transparent
|
||||
**rounded_right,
|
||||
@ -228,7 +254,7 @@ vpn = widget.GenPollCommand(
|
||||
|
||||
ram = widget.Memory(
|
||||
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],
|
||||
mesure_mem="M",
|
||||
mesure_swap="M",
|
||||
@ -259,8 +285,8 @@ clock = widget.Clock(
|
||||
|
||||
screens = [
|
||||
Screen(
|
||||
wallpaper='~/.config/qtile/wallpapers/theater_by_flaviobollo.jpg',
|
||||
wallpaper_mode='fill',
|
||||
wallpaper = tapeta,
|
||||
wallpaper_mode ='stretch' ,
|
||||
|
||||
left=bar.Gap(5),
|
||||
right=bar.Gap(5),
|
||||
@ -283,7 +309,7 @@ screens = [
|
||||
),
|
||||
),
|
||||
Screen(
|
||||
wallpaper='~/.config/qtile/wallpapers/theater_by_flaviobollo.jpg',
|
||||
wallpaper= tapeta,
|
||||
wallpaper_mode= 'fill',
|
||||
|
||||
left=bar.Gap(5),
|
||||
|
||||
BIN
wallpapers/McEscher-Street.jpg
Normal file
BIN
wallpapers/McEscher-Street.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 344 KiB |
Loading…
x
Reference in New Issue
Block a user