Add set_audio_sink, weather, grade
This commit is contained in:
		| @@ -22,6 +22,7 @@ python = f'alacritty {opaque_config} -e python' | ||||
| vpn_vta = 'alacritty -e /home/roland/.local/bin/vpn' | ||||
| bjendal = 'alacritty -e /home/roland/.local/bin/bjendal' | ||||
| lumar = 'alacritty -e /home/roland/.local/bin/lumar' | ||||
| set_audio_sink = '/home/roland/.local/bin/set_audio_sink' | ||||
| cmatrix = 'alacritty -e cmatrix' | ||||
| rofi = 'rofi -combi-modi window,drun,ssh -theme nord -font "hack 12" -show drun -icon-theme "Papirus" -show-icons' | ||||
| qtile_dir = '/home/roland/.config/qtile/' | ||||
| @@ -156,6 +157,7 @@ keys = [ | ||||
|     Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), | ||||
|     Key([mod], "w", lazy.window.kill(), desc="Kill focused window"), | ||||
|     Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"), | ||||
|     Key([mod, "control"], "s", lazy.spawn(set_audio_sink), desc="Reset Audio Sink"), | ||||
|     Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), | ||||
|     Key([mod], "p", lazy.spawn('xset s activate'), desc="Lock Session"), | ||||
|     Key([mod], "r", lazy.spawn(rofi), desc="Launch rofi"), | ||||
|   | ||||
							
								
								
									
										6
									
								
								.local/bin/grade
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								.local/bin/grade
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| #!/usr/bin/env sh | ||||
|  | ||||
| git checkout -b grade | ||||
| git add grade.adoc | ||||
| git commit -m "Add grade" | ||||
| git push --set-upstream origin grade | ||||
							
								
								
									
										19
									
								
								.local/bin/set_audio_sink
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								.local/bin/set_audio_sink
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| # Load the module until it fails | ||||
| while pactl load-module module-detect; do | ||||
|   : | ||||
| done | ||||
|  | ||||
|  | ||||
| if [ "$DISPLAY" = ":0" ]; then | ||||
|   if ! pactl set-default-sink alsa_output.0.hdmi-stereo; then | ||||
|     pactl set-default-sink alsa_output.1.hdmi-stereo | ||||
|   fi | ||||
|   echo "$DISPLAY set audio" | ||||
| elif [ "$DISPLAY" = ":10.0" ]; then | ||||
|   pactl set-default-sink xrdp-sink | ||||
|   echo "$DISPLAY set audio" | ||||
| else | ||||
|     echo "The DISPLAY variable is set to: $DISPLAY, but not to :0 or :10.0" | ||||
| fi | ||||
							
								
								
									
										3
									
								
								.local/bin/weather
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								.local/bin/weather
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| #!/usr/bin/env sh | ||||
|  | ||||
| curl wttr.in/Grovetown | ||||
		Reference in New Issue
	
	Block a user