floating popups
This commit is contained in:
parent
52b81fb68a
commit
2e0074eea4
4
REDME.md
4
REDME.md
@ -1,9 +1,7 @@
|
||||
# TODO
|
||||
- [ ] more widgets
|
||||
- [ ] popup
|
||||
- [ ] notifications
|
||||
- [ ] notifications - dunst
|
||||
- [ ] borders and separation of colors
|
||||
|
||||
# Bugs
|
||||
- [ ] Deflout not working
|
||||
- [ ] add jq as dependencies
|
||||
|
||||
30
config.py
30
config.py
@ -15,8 +15,8 @@ alt = "mod1"
|
||||
home = os.path.expanduser('~')
|
||||
|
||||
keys = [
|
||||
# A list of available commands that can be bound to keys can be found
|
||||
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
|
||||
#Kills focused window
|
||||
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
|
||||
# Switch between windows
|
||||
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
|
||||
Key([mod], "l", lazy.layout.right(), desc="Move focus to right"),
|
||||
@ -46,7 +46,6 @@ keys = [
|
||||
lazy.layout.toggle_split(),
|
||||
desc="Toggle between split and unsplit sides of stack",
|
||||
),
|
||||
Key([mod], "Return", lazy.spawn('alacritty'), desc="Launch terminal"),
|
||||
# Toggle between different layouts as defined below
|
||||
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
||||
Key([mod], "f", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
|
||||
@ -70,7 +69,7 @@ keys = [
|
||||
Key([mod, "control"], "Up", lazy.spawn("wlr-randr --output VGA-1 --transform 180"), desc="sets second monitor to 180 rotation"),
|
||||
Key([mod, "control"], "Right", lazy.spawn("wlr-randr --output VGA-1 --transform 270"), desc="sets second monitor to 270 rotation"),
|
||||
|
||||
# Change keyboard leyout
|
||||
# Change keyboard layout
|
||||
Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"),
|
||||
|
||||
]
|
||||
@ -116,10 +115,7 @@ for i in groups:
|
||||
)
|
||||
|
||||
layouts = [
|
||||
layout.Columns(
|
||||
border_focus_stack=["#d75f5f", "#8f3d3d"],
|
||||
border_width=4
|
||||
),
|
||||
layout.Columns(),
|
||||
# layout.Max(),
|
||||
# layout.Stack(num_stacks=2),
|
||||
# layout.Bsp(),
|
||||
@ -189,7 +185,7 @@ icon = widget.TextBox(
|
||||
|
||||
group_box = widget.GroupBox(
|
||||
highlight_method='line',
|
||||
highlight_color= colors[1],
|
||||
highlight_color= colors[11],
|
||||
background = colors[2],
|
||||
other_current_screen_border = colors[6],
|
||||
other_screen_border = colors[6],
|
||||
@ -204,14 +200,15 @@ spacer = widget.Spacer(
|
||||
kb_layout = widget.KeyboardLayout(
|
||||
configured_keyboards=['us', 'cz qwerty'],
|
||||
display_map={'us':'US', 'cz qwerty':'CZ'},
|
||||
fmt=" {}",
|
||||
fmt=" {} ",
|
||||
background=colors[4],
|
||||
**rounded_right,
|
||||
)
|
||||
|
||||
wifi = widget.Wlan(
|
||||
#!TODO configure
|
||||
format = " {essid} {percent:2.0%} ",
|
||||
interface = "wlp2s0",
|
||||
mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e nmcli device wifi")},
|
||||
background=colors[2],
|
||||
**rounded_right,
|
||||
)
|
||||
@ -225,8 +222,8 @@ vpn = widget.GenPollCommand(
|
||||
)
|
||||
|
||||
ram = widget.Memory(
|
||||
format = " {MemFree:.0f} {SwapFree:.0f}",
|
||||
mouse_callbacks={"Button1":lazy.spawn("alacritty -e btop")},
|
||||
format = " {MemFree:.0f} {SwapFree:.0f} ",
|
||||
mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e btop ")},
|
||||
background=colors[6],
|
||||
mesure_mem="M",
|
||||
mesure_swap="M",
|
||||
@ -234,9 +231,9 @@ ram = widget.Memory(
|
||||
)
|
||||
|
||||
battery = widget.Battery(
|
||||
format="{char} {percent:2.0%} {hour:d}:{min:02d}",
|
||||
format="{char} {percent:2.0%} {hour:d}:{min:02d} ",
|
||||
background=colors[8],
|
||||
# low_background=colors[10],
|
||||
low_background=colors[10],
|
||||
charge_char = "",
|
||||
discharge_char = "",
|
||||
empty_char= "",
|
||||
@ -244,7 +241,7 @@ battery = widget.Battery(
|
||||
)
|
||||
|
||||
clock = widget.Clock(
|
||||
format=" %y-%m-%d %a %H:%M",
|
||||
format=" %y-%m-%d %a %H:%M ",
|
||||
background=colors[0],
|
||||
padding = 5,
|
||||
)
|
||||
@ -321,6 +318,7 @@ floating_layout = layout.Floating(
|
||||
Match(wm_class="ssh-askpass"), # ssh-askpass
|
||||
Match(title="branchdialog"), # gitk
|
||||
Match(title="pinentry"), # GPG key password entry
|
||||
Match(wm_class="float"), #onclick widget
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user