added a new script for changing audio, made dwm border wider

This commit is contained in:
hnhx 2023-02-17 14:34:05 +01:00
parent 0bbb8f568b
commit 41ed415541
14 changed files with 26 additions and 6 deletions

View File

@ -2,12 +2,11 @@ all:
cp -f ./zshrc ~/.zshrc
cp -f ./xinitrc ~/.xinitrc
cp -f ./picom.conf ~/.config/
mkdir ~/sxhkd
cp -f ./sxhkdrc ~/sxhkd/
feh --bg-scale ./bg.jpg
chmod +x ./bar
chmod +x ./screenshot
install:
$(MAKE) -C suckless/st install
$(MAKE) -C suckless/dwm install
cp -f ./bar /usr/local/bin/
cp -f ./screenshot /usr/local/bin/
cp -f ./scripts/* /usr/local/bin/

View File

@ -13,4 +13,4 @@ sudo make install
chsh -s /bin/zsh (if zsh is not your default shell already)
```
The packages you will need: `zsh xclip scrot dmenu feh picom hack (font)`
The packages you will need: `zsh xclip scrot dmenu feh sxhkd picom hack (font)`

11
scripts/audio-switch Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
sink=$(pactl get-default-sink)
new_sink="alsa_output.pci-0000_0b_00.4.analog-stereo"
if [ "$sink" = "$new_sink" ]
then
new_sink="alsa_output.pci-0000_09_00.1.hdmi-stereo-extra3"
fi
pactl set-default-sink "$new_sink"

View File

View File

@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int borderpx = 3; /* border pixel of windows */
static const unsigned int gappx = 10; /* gaps between windows */
static const unsigned int baralpha = 0xd0;
static const unsigned int borderalpha = OPAQUE;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

9
sxhkdrc Normal file
View File

@ -0,0 +1,9 @@
XF86AudioRaiseVolume
pactl -- set-sink-volume 0 +3%
XF86AudioLowerVolume
pactl -- set-sink-volume 0 -3%
XF86AudioMute
audio-switch

View File

@ -5,5 +5,6 @@ fi
~/.fehbg &
picom &
sxhkd &
bar &
exec dwm