Skip to content
Snippets Groups Projects
Commit 53db17c8 authored by CALIN Alexis's avatar CALIN Alexis
Browse files

updated setup and added amixer command in dwm

parent fbe02675
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,20 @@ Auto Gnu/Linux setup ...@@ -3,7 +3,20 @@ Auto Gnu/Linux setup
This repository contains dots file for dwm with french keyboard shortcuts and a script to setup the system how I like. This repository contains dots file for dwm with french keyboard shortcuts and a script to setup the system how I like.
Programs # Installation
On a fresh debian or arch install the script can be executed:
```
bash setup.sh
```
if you just want to setup dwm you can launch:
```
bash install-dwm.sh
```
# Programs
Here are the main programs: Here are the main programs:
- dwm – the main graphical environment - dwm – the main graphical environment
......
...@@ -97,9 +97,9 @@ static Key keys[] = { ...@@ -97,9 +97,9 @@ static Key keys[] = {
TAGKEYS( 0xe7, 8) TAGKEYS( 0xe7, 8)
{ MODKEY|ShiftMask, XK_e, quit, {0} }, { MODKEY|ShiftMask, XK_e, quit, {0} },
{ 0, XF86XK_AudioMute, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44 $(pidof dwmblocks)") }, { 0, XF86XK_AudioMute, spawn, SHCMD("amixer set Master toggle") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; kill -44 $(pidof dwmblocks)") }, { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer -D default sset Master Playback 10%+") },
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%-; kill -44 $(pidof dwmblocks)") }, { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer -D default sset Master Playback 10%-") },
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "xbacklight", "-inc", "15", NULL } } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = (const char*[]){ "xbacklight", "-inc", "15", NULL } } },
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char*[]){ "xbacklight", "-dec", "15", NULL } } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = (const char*[]){ "xbacklight", "-dec", "15", NULL } } },
{ 0, XF86XK_Sleep, spawn, {.v = (const char*[]){ "systemctl", "suspend", NULL } } }, { 0, XF86XK_Sleep, spawn, {.v = (const char*[]){ "systemctl", "suspend", NULL } } },
......
No preview for this file type
No preview for this file type
...@@ -25,21 +25,23 @@ if [ "$distro" == "Debian" ]; then ...@@ -25,21 +25,23 @@ if [ "$distro" == "Debian" ]; then
# programs # programs
sudo apt install network-manager chromium newsboat thunderbird libreoffice pandoc texlive-full xss-lock slock xbacklight neofetch ranger htop sudo apt install network-manager chromium newsboat thunderbird libreoffice pandoc texlive-full xss-lock slock xbacklight neofetch ranger htop
sudo systemctl enable --now NetworkManager && echo 'Enabled Network Manager' sudo systemctl enable --now NetworkManager && echo 'Enabled Network Manager'
fi
echo 'Install VScode ? (y or n)' echo 'Install VScode ? (y or n)'
read yn read yn
if [ "$yn" == 'y' ]; then if [ "$yn" == 'y' ]; then
# vscode # vscode
curl https://go.microsoft.com/fwlink/?LinkID=760868 && sudo apt install ./code*.deb curl https://go.microsoft.com/fwlink/?LinkID=760868 && sudo apt install ./code*.deb
fi
echo 'Install Mullvad vpn ? (y or n)'
read yn
if [ "$yn" == 'y' ]; then
# vscode
curl https://mullvad.net/download/app/deb/latest/ && sudo apt install ./Mullvad*.deb && sudo systemctl enable --now mullvad-daemon
fi
fi fi
echo 'Install Mullvad vpn ? (y or n)'
read yn
if [ "$yn" == 'y' ]; then
# vscode
curl https://mullvad.net/download/app/deb/latest/ && sudo apt install ./Mullvad*.deb && sudo systemctl enable --now mullvad-daemon
fi
elif [ "$distro" == "Arch" ]; then elif [ "$distro" == "Arch" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment