Browse Source

Stabilize adapter name with udev. Disown non-deamon processes on startup.

master
SolitudeSF 1 year ago
parent
commit
3b6ccc3f70
No known key found for this signature in database
3 changed files with 7 additions and 13 deletions
  1. 2
    8
      nim.nim
  2. 1
    1
      ntr/templates/polybar
  3. 4
    4
      sx.sh

+ 2
- 8
nim.nim View File

@@ -9,19 +9,13 @@ proc setCompiler(s: string) =
switch "gcc.exe", c
switch "gcc.linkerexe", c

when defined(win):
setCompiler "x86_64-w64-mingw32-gcc"
switch "gcc.options.linker", ""
switch "os", "windows"
switch "define", "windows"

when defined(musl):
setCompiler "x86_64-linux-musl-gcc"
switch "passL", "-static"

when defined(release):
switch "nimcache", "/tmp/nim/" & projectName() & "/r"
switch "nimcache", "/tmp/nim/" & projectName() & "_r"
switch "passC", "-flto"
switch "passL", "-s"
else:
switch "nimcache", "/tmp/nim/" & projectName() & "/d"
switch "nimcache", "/tmp/nim/" & projectName() & "_d"

+ 1
- 1
ntr/templates/polybar View File

@@ -86,7 +86,7 @@ label = %notifications%

[module/wlan]
type = internal/network
interface = wlp0s29u1u6
interface = wlan0
format-connected = <ramp-signal> <label-connected>
label-connected = %downspeed%
format-disconnected =

+ 4
- 4
sx.sh View File

@@ -4,10 +4,10 @@ setxkbmap -layout us,ru -variant ,ruu -option 'grp:shifts_toggle,grp:shift_caps_
start-pulseaudio-x11 &
setroot --restore &
mpd &
sxhkd &
devmon &
dunst &
perWindowLayoutD &
syncthing -no-browser &
polybar -q main &
disown sxhkd &
disown devmon &
disown syncthing -no-browser &
disown polybar -q main &
exec bspwm

Loading…
Cancel
Save