Browse Source

Add pulse config. Guard nim options behind version check. misc bspwm.

master
SolitudeSF 6 months ago
parent
commit
f9669a326e
Signed by: SolitudeSF <solitudesf@protonmail.com> GPG Key ID: 789B06817C385387
5 changed files with 28 additions and 9 deletions
  1. 6
    6
      bspwm
  2. 7
    3
      nim.nim
  3. 2
    0
      pulse/daemon.conf
  4. 9
    0
      pulse/default.pa
  5. 4
    0
      setup

+ 6
- 6
bspwm View File

@@ -4,17 +4,17 @@ bspc monitor -d 0 1 2 3 4 5 6 7 8 9
bspc config border_width 1
bspc config window_gap 3
bspc config split_ratio 0.5
bspc config removal_adjustment longest_side
bspc config removal_adjustment false
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
bspc config click_to_focus button1

bspc rule -a Firefox desktop='^2'
bspc rule -a Firefox desktop=^2
bspc rule -a mpv state=floating
bspc rule -a Peek state=floating
bspc rule -a kittyfloat state=floating
bspc rule -a TelegramDesktop desktop='^3'
bspc rule -a Hexchat desktop='^3'
bspc rule -a Ripcord desktop='^3'
bspc rule -a Steam desktop='^4'
bspc rule -a TelegramDesktop desktop=^3
bspc rule -a Hexchat desktop=^3
bspc rule -a Ripcord desktop=^3
bspc rule -a Steam desktop=^4

+ 7
- 3
nim.nim View File

@@ -2,7 +2,7 @@ from macros import error

type Compiler = enum gcc = "gcc", clang = "clang"

switch "styleCheck", "hint"
const is199 = (NimMajor, NimMinor, NimPatch) >= (0, 19, 9)

proc setCompiler(s: string, compiler = gcc, cpp = false) =
let c = findExe s
@@ -34,11 +34,15 @@ when defined(musl):
setCompiler "x86_64-linux-musl-gcc"
switch "passL", "-static"

when is199:
switch "styleCheck", "hint"

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

when defined(hotcodereloading):

+ 2
- 0
pulse/daemon.conf View File

@@ -0,0 +1,2 @@
allow-module-loading = no
use-pid-file = no

+ 9
- 0
pulse/default.pa View File

@@ -0,0 +1,9 @@
#!/usr/bin/pulseaudio -nF

.fail
load-module module-alsa-sink
load-module module-alsa-source
load-module module-null-sink
load-module module-always-sink
load-module module-native-protocol-unix auth-cookie-enabled=0
load-module module-suspend-on-idle

+ 4
- 0
setup View File

@@ -33,6 +33,7 @@ zathura
neofetch
gtk
user-dirs
pulse
fontconfig'
}

@@ -124,6 +125,9 @@ for arg; do
_install $arg/settings.ini "$CONF/gtk-3.0/settings.ini";;
user-dirs)
_install $arg "$CONF/user-dirs.dirs";;
pulse)
_install $arg/default.pa "$CONF/pulse/default.pa"
_install $arg/daemon.conf "$CONF/pulse/daemon.conf";;
fontconfig)
_install $arg "$CONF/fontconfig/fonts.conf";;
*)

Loading…
Cancel
Save