From 38002f0b63035aa0ef2d2583ea41c564506880b2 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 26 Jun 2022 17:32:09 +0200 Subject: Separate sxhkd config and add host-specific config --- hosts/luna/home.nix | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) (limited to 'hosts/luna') diff --git a/hosts/luna/home.nix b/hosts/luna/home.nix index 43aecfd..1523495 100644 --- a/hosts/luna/home.nix +++ b/hosts/luna/home.nix @@ -1,4 +1,7 @@ { config, lib, pkgs, inputs, user, hostname, secrets, ... }: +let + dotfiles = ../../dotfiles; +in { home.packages = with pkgs; [ #minecraft @@ -42,6 +45,79 @@ LEFT_PADDING=" " ''; + "sxhkd/sxhkdrc".text = + builtins.readFile (dotfiles + "/sxhkd/dwm") + + builtins.readFile (dotfiles + "/sxhkd/base") + + '' + #enter and leave game mode + alt + shift + F11: ctrl + shift + F11 + pkill -ALRM sxhkd + + # Make sxhkd reload its configuration files + alt + Escape + pkill -USR1 -x sxhkd + + #Screenshot + alt + grave + bash ~/.scripts/screenshot + + + ################## + ##### VOLUME ##### + ################## + + # Raise volume + XF86AudioRaiseVolume + amixer sset Master 5%+ + #pactl set-sink-volume 0 +5% + + # Lower volume + XF86AudioLowerVolume + amixer sset Master 5%- + #pactl set-sink-volume 0 -5% + + # Mute audio + # note: mute always sets audio off (toggle) + XF86AudioMute + amixer sset Master toggle + #pactl set-sink-mute 0 toggle + + + ###################### + ##### BRIGHTNESS ##### + ###################### + + XF86MonBrightnessUp + light -A 5 + + XF86MonBrightnessDown + light -U 5 + + ###################### + ######## MEDIA ####### + ###################### + + XF86AudioPlay + playerctl play + + XF86AudioPause + playerctl pause + + XF86AudioNext + playerctl next + + XF86AudioPrev + playerctl previous + + ###################### + ######## OTHER ####### + ###################### + + XF86TouchpadToggle + exec ~/.config/i3/scripts/toggletouchpad.sh + + ''; + "mpv/mpv.conf".text = '' ytdl-format=bestvideo[height<=?720][fps<=?60][vcodec!=?vp9]+bestaudio/best hwdec -- cgit 1.4.1