From 96ce98be492cf74e01e863ad71eb8030c9f9b62d Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Wed, 5 Dec 2018 00:45:50 -0500 Subject: [PATCH] Make i3 service notify upon startup --- lain/.config/i3/config.ppi3 | 32 ++++++++++++++------------------ lain/.config/systemd/user/i3@.service | 3 ++- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/lain/.config/i3/config.ppi3 b/lain/.config/i3/config.ppi3 index 37aa779..e1f7d85 100644 --- a/lain/.config/i3/config.ppi3 +++ b/lain/.config/i3/config.ppi3 @@ -95,28 +95,24 @@ default_border pixel 2 default_floating_border none hide_edge_borders both -set_from_resource $color{1|0..7} color{1|0..7} -set_from_resource $fg foreground -set_from_resource $bg background +set_from_resource $bg color0 +set_from_resource $bg-alt color14 +set_from_resource $fg color15 +set_from_resource $fg-alt color2 +set_from_resource $hl color13 + +# class #border +client.focused $fg-alt $bg $hl $fg-alt $hl +client.focused_inactive $fg-alt $bg $fg $fg-alt $fg-alt +client.unfocused $fg-alt $bg $fg $fg-alt $fg-alt +client.urgent $fg-alt $bg $fg $fg-alt $fg-alt +client.placeholder $fg-alt $bg $fg $fg-alt $fg-alt +client.background $fg-alt $bg $fg $fg-alt $fg-alt -#client.focused $color2 $color2 $fg -#client.focused_inactive $color3 $color3 $fg -#client.unfocused $color3 $color3 $fg -#client.urgent $color2 $color2 $fg -#client.placeholder $color2 $color2 $fg -client.background $color2 ############################################################################### # STARTUP # ############################################################################### -exec --no-startup-id "setxkbmap -option caps:swapescape" -exec --no-startup-id "systemctl --user start ch-wall" - -exec --no-startup-id "compton --config ~/.config/compton/config -b" - -exec --no-startup-id "polybar top" -exec --no-startup-id "polybar bottom" - -exec --no-startup-id "ibus-daemon --xim" +exec --no-startup-id systemd-notify --ready diff --git a/lain/.config/systemd/user/i3@.service b/lain/.config/systemd/user/i3@.service index 996a2ad..e4d3900 100644 --- a/lain/.config/systemd/user/i3@.service +++ b/lain/.config/systemd/user/i3@.service @@ -5,7 +5,8 @@ Requisite=x11@%i.target [Service] Environment=DISPLAY=:%i -Type=simple +Type=notify +NotifyAccess=all ExecStart=/usr/bin/env bash -c 'exec 8>%t/x11-wm@%i; exec i3' SyslogIdentifier=i3