qtile
This commit is contained in:
parent
7a1488860b
commit
b07d950147
27 changed files with 3330 additions and 169 deletions
|
@ -60,12 +60,8 @@ in {
|
|||
|
||||
mpv
|
||||
|
||||
river
|
||||
|
||||
gtk-engine-murrine
|
||||
|
||||
persway
|
||||
flashfocus
|
||||
]
|
||||
++ pkgs.rice.fonts.pkgs
|
||||
++ pkgs.rice.icons.pkgs;
|
||||
|
@ -90,7 +86,7 @@ in {
|
|||
};
|
||||
|
||||
programs.ironbar = with pkgs.rice; {
|
||||
enable = true;
|
||||
# enable = true;
|
||||
config = {
|
||||
anchor_to_edges = true;
|
||||
position = "top";
|
||||
|
@ -205,7 +201,7 @@ in {
|
|||
{command = "${lib.getExe' ckb-next "ckb-next"} -c -b";}
|
||||
{command = "${lib.getExe' mullvad "mullvad"} connect";}
|
||||
{command = "${lib.getExe' xorg.xrdb "xrdb"} -l ~/.Xresources";}
|
||||
{command = "${lib.getExe' flashfocus "flashfocus"} -o 0.97 -t 175 -n 30 --no-flash-fullscreen -l on_open_close";}
|
||||
{command = "${lib.getExe' flashfocus "flashfocus"} -o 0.95 -t 175 -n 30 --no-flash-fullscreen -l on_open_close";}
|
||||
{command = "${lib.getExe' glib.bin "gsettings"} set org.gnome.desktop.interface gtk-theme '${rice.gtk-theme.name}'";}
|
||||
{command = "${lib.getExe' glib.bin "gsettings"} set org.gnome.desktop.interface font-name '${rice.fonts.sans.name}'";}
|
||||
{command = "${lib.getExe' glib.bin "gsettings"} set org.gnome.desktop.interface icon-theme '${rice.icons.name}'";}
|
||||
|
@ -310,26 +306,31 @@ in {
|
|||
builtins.mapAttrs (name: cmd: {
|
||||
Unit = {
|
||||
Description = "${name}";
|
||||
Requires = ["sway-session.target"];
|
||||
Requires = [ "graphical-session.target" "qtile-session.target" ];
|
||||
After = [ "graphical-session.target" "qtile-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = cmd;
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["sway-session.target"];
|
||||
WantedBy = ["qtile-session.target"];
|
||||
};
|
||||
})
|
||||
{
|
||||
swaybg = "${lib.getExe swaybg} -i ${rice.bg.image} -m fill";
|
||||
# QT APPS CANT THEME PROPERLY HOW EMBARASSING
|
||||
# keepassxc = "${lib.getExe' keepassxc "keepassxc"}";
|
||||
# ckb-next = "${lib.getExe' ckb-next "ckb-next"} -c -b";
|
||||
swayosd = "${lib.getExe' swayosd "swayosd"} --max-volume 100";
|
||||
swaync = "${lib.getExe swaynotificationcenter}";
|
||||
persway = "${lib.getExe' persway "persway"} daemon -d spiral";
|
||||
# PYTHON APP CANT RUN AS SYSTEMD SERVICE HOW EMBARASSING
|
||||
flashfocus = "${lib.getExe flashfocus} -o 0.95 -t 175 -n 30 --no-flash-fullscreen -l on_open_close";
|
||||
# persway = "${lib.getExe' persway "persway"} daemon -d spiral";
|
||||
# nb. python or qt apps fail as sd services, use wm to launch
|
||||
};
|
||||
systemd.user.targets.qtile-session = {
|
||||
Unit = {
|
||||
BindsTo = [ "graphical-session.target" ];
|
||||
Wants = [ "graphical-session-pre.target" "xdg-desktop-autostart.target" ];
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
Before = [ "xdg-desktop-autostart.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
xdg.enable = true;
|
||||
xresources.properties = with palette-hex; {
|
||||
|
@ -358,11 +359,13 @@ in {
|
|||
xdg.configFile =
|
||||
builtins.mapAttrs (name: value: {
|
||||
enable = true;
|
||||
text = builtins.readFile value;
|
||||
source = value;
|
||||
})
|
||||
{
|
||||
"swaync/config.json" = dots/swaync/config.json;
|
||||
"swaync/configSchema.json" = dots/swaync/configSchema.json;
|
||||
"qtile/config.py" = dots/qtile/config.py;
|
||||
"qtile/autostart.sh" = dots/qtile/autostart.sh;
|
||||
}
|
||||
// {
|
||||
"swaync/style.css" = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue