fixed i3 problems

This commit is contained in:
Ingolf Wagner 2023-06-23 09:03:24 +02:00
parent 689a95d690
commit 18cc3c5a7a
Signed by: palo
GPG key ID: 76BF5F1928B9618B
2 changed files with 25 additions and 15 deletions

View file

@ -158,20 +158,6 @@ with lib;
image/jpeg=sxiv.desktop
'';
# todo : still needed?
# home.file.".xprofile".text = ''
# # to allow sudo commands to access X
# # todo : only allow the browsers and rambox access
# ${pkgs.xorg.xhost}/bin/xhost +
# # no shitty pcspkr crap
# ${pkgs.xorg.xset}/bin/xset -b
# # no sleeping monitor
# ${pkgs.xorg.xset}/bin/xset -dpms
# ${pkgs.xorg.xset}/bin/xset s off
# ${pkgs.flameshot}/bin/flameshot &
# # cleanup xmonad
# rm -f ~/.xmonad/xmonad.state
# '';
xdg.configFile."khal/config".text = ''
[calendars]

View file

@ -12,7 +12,7 @@ let
};
backgroundCommand = pkgs.writers.writeDash "background" ''
${pkgs.xorg.xrandr}/bin/xrandr | grep " connected" | \
${pkgs.xorg.xrandr}/bin/xrandr | grep " connected" | grep "primary" | \
${pkgs.gnused}/bin/sed -E "s/primary //" | \
${pkgs.coreutils-full}/bin/cut -d' ' -f 3 | \
${pkgs.gnused}/bin/sed -E 's/\+.*$//g' | \
@ -138,8 +138,32 @@ in
[
{ command = "${pkgs.albert}/bin/albert"; always = true; }
{ command = toString backgroundCommand; always = true; }
{
command = toString (pkgs.writers.writeDash "xsettings" ''
# to allow sudo commands to access X
${pkgs.xorg.xhost}/bin/xhost +
# no shitty pcspkr crap
${pkgs.xorg.xset}/bin/xset -b
# no sleeping monitor
${pkgs.xorg.xset}/bin/xset -dpms
${pkgs.xorg.xset}/bin/xset s off
'');
always = true;
}
# { command = "${pkgs.wireplumber}/bin/wireplumber"; always = true; }
# { command = "systemctl --user restart polybar"; always = true; notification = false; }
# todo : still needed?
# home.file.".xprofile".text = ''
# # todo : only allow the browsers and rambox access
#
# ${pkgs.flameshot}/bin/flameshot &
# # cleanup xmonad
# rm -f ~/.xmonad/xmonad.state
# '';
];
fonts = {
names = [ "JetBrains Mono" ];