diff --git a/config.org b/config.org index 7dbc3d1..49fdd9a 100644 --- a/config.org +++ b/config.org @@ -1502,6 +1502,21 @@ keys.extend([ Key([], 'XF86AudioMicMute', lazy.spawn('amixer set Capture toggle'), desc="toggle mic mute"), ]) #+end_src +***** Add User to Audio Group +#+begin_src shell :tangle update.sh +groupname="audio" + +# Add the current user to the group if not already a member +if ! groups "$USER" | grep -q "\b$groupname\b"; then + echo "Adding user $USER to group $groupname" + sudo usermod -aG "$groupname" "$USER" + if [ $? -eq 0 ]; then + echo "User $USER added to group $groupname successfully." + else + echo "Failed to add user $USER to group $groupname." + fi +fi +#+end_src **** Media Playback #+begin_src conf :tangle pkg-list.txt playerctl @@ -1526,6 +1541,21 @@ keys.extend([ Key([], 'XF86MonBrightnessDown', lazy.spawn('xbacklight -dec 5')), ]) #+end_src +***** Add User to Video Group +#+begin_src shell :tangle update.sh +groupname="video" + +# Add the current user to the group if not already a member +if ! groups "$USER" | grep -q "\b$groupname\b"; then + echo "Adding user $USER to group $groupname" + sudo usermod -aG "$groupname" "$USER" + if [ $? -eq 0 ]; then + echo "User $USER added to group $groupname successfully." + else + echo "Failed to add user $USER to group $groupname." + fi +fi +#+end_src **** App Launch Hotkeys ***** Terminal #+begin_src python :tangle ~/.config/qtile/config.py :mkdirp yes @@ -2710,10 +2740,11 @@ inkscape #+end_src * Manual Tasks after tangling 1. run ~update.sh~ -2. setup Nextcloud sync directories -3. sign into Bitwarden -4. add Firefox Account -5. configure networks +2. log out and back in to update group permissions +3. setup Nextcloud sync directories +4. sign into Bitwarden +5. add Firefox Account +6. configure networks - [[https://www.scc.kit.edu/dienste/7181.php][eduroam]] * Other TODOs