fix autostart
This commit is contained in:
parent
69fd726451
commit
ddebfefef9
|
@ -85,3 +85,4 @@ tags
|
|||
__pycache__/
|
||||
|
||||
venv/
|
||||
nohup.out
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
scripts=$(ls -1 ~/.config/qtile/autostart.d/*.sh)
|
||||
for i in $scripts
|
||||
do
|
||||
source $i
|
||||
done
|
|
@ -1,6 +1,13 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
from typing import List # noqa: F401
|
||||
|
||||
from libqtile import bar, layout, widget
|
||||
from libqtile import bar
|
||||
from libqtile import hook
|
||||
from libqtile import layout
|
||||
from libqtile import widget
|
||||
|
||||
from libqtile.config import Click, Drag, Group, Key, Match, Screen
|
||||
from libqtile.lazy import lazy
|
||||
from libqtile.utils import guess_terminal
|
||||
|
@ -29,7 +36,7 @@ keys = [
|
|||
Key([mod], "d", lazy.spawn("rofi -show drun")),
|
||||
Key([mod], "e", lazy.spawn("nautilus")),
|
||||
Key([mod], "p", lazy.spawn("autorandr -c")),
|
||||
Key([mod], "r", lazy.spawn("rofi -matching-negate-char \0 -show run")),
|
||||
Key([mod], "r", lazy.spawn("rofi -matching-negate-char '\0' -show run")),
|
||||
Key([mod], "w", lazy.spawn("firefox")),
|
||||
|
||||
Key([mod], "Tab", lazy.spawn("rofi -show window")),
|
||||
|
@ -192,6 +199,13 @@ cursor_warp = False
|
|||
auto_fullscreen = True
|
||||
focus_on_window_activation = "smart"
|
||||
|
||||
|
||||
@hook.subscribe.startup_once
|
||||
def autostart():
|
||||
home = os.path.expanduser('~/.config/qtile/autostart.sh')
|
||||
subprocess.run([home])
|
||||
|
||||
|
||||
floating_layout = layout.Floating(float_rules=[
|
||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||
*layout.Floating.default_float_rules,
|
||||
|
|
|
@ -35,7 +35,8 @@
|
|||
programs.git.userEmail = "andreas@zweili.ch";
|
||||
|
||||
# raw config files
|
||||
home.file.".config/qtile".source = ./configs/qtile;
|
||||
home.file.".config/qtile/config.py".source = ./configs/qtile/config.py;
|
||||
home.file.".config/qtile/autostart.sh".source = ./configs/qtile/autostart.sh;
|
||||
home.file.".config/terminator".source = ./configs/terminator;
|
||||
home.file.".local/share/applications/steam.desktop".source = ./desktop/applications/steam.desktop;
|
||||
|
||||
|
|
|
@ -4,18 +4,5 @@
|
|||
keeweb
|
||||
];
|
||||
|
||||
systemd.user.services.keeweb = {
|
||||
Unit = {
|
||||
description = "KeeWeb";
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.keeweb}/bin/keeweb";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
home.file.".config/qtile/autostart.d/keeweb.sh".source = ./keeweb.sh;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
nohup keeweb &
|
|
@ -4,18 +4,5 @@
|
|||
unstable.signal-desktop
|
||||
];
|
||||
|
||||
systemd.user.services.signal-desktop = {
|
||||
Unit = {
|
||||
description = "Signal Desktop";
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.unstable.signal-desktop}/bin/signal-desktop";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
home.file.".config/qtile/autostart.d/signal.sh".source = ./signal.sh;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
nohup signal-desktop &
|
|
@ -4,18 +4,6 @@
|
|||
unstable.tdesktop
|
||||
];
|
||||
|
||||
systemd.user.services.telegram-desktop = {
|
||||
Unit = {
|
||||
description = "Telegram Desktop";
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.unstable.tdesktop}/bin/telegram-desktop";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
home.file.".config/qtile/autostart.d/telegram.sh".source = ./telegram.sh;
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
nohup telegram-desktop &
|
Loading…
Reference in New Issue