#run

7 posts · Last used 8d

Back to Timeline
@trymeout@lemmy.world in linux · May 14, 2025

Simple Bash Script To Always Disable Laptop Internal Monitor When Using AR Glasses

EDIT I made a Nushell version of this script that is updated… lemmy.world/post/48010802 I created a simple Bash script that will always disable the default/internal monitor on your laptop when using AR glasses (or any other external monitor). I find this useful for when using AR glasses such as the XReal One which allows you to change the mode from regular mode to ultra-wide mode and when doing this, it will act as your unplugging the XReal ones and plugging in XReal one again in a new mode, causing the interal laptop display to become enabled. To keep the laptop display always off, weather the laptop lid is either closed or open, this simple bash script will always disable the laptop screen every X seconds (You can change it by changing the wait variable) Simply copy this script and create a new bash script such as disable-display.sh, make the script file executable and add it to your startup applications and it will run in the background. You will need to run xrandr command with all of your displays enabled to get the names of the displays and change the variable names in the script accordingly. NOTE: This script may not work with a full Wayland setup and may only work on X11. Enjoy #!/bin/bash #RUN xrandr TO GET THE NAMES OF THE DISPLAYS AND SET THE VARIABLES TO THESE NAMES readonly default_display="eDP" readonly external_display="USB-C-0" readonly wait=5 while true; do #Check if there is an external display connected if xrandr | grep -q "$external_display connected"; then #Disable the internal display xrandr --output $default_display --off fi sleep $wait done
0
0
0
jasaz
@jasaz@mindly.social · Apr 10, 2026
I left on my evening #run later than I planned. I was greeted with this sight on the final stretch of rolling hills. #sunset #Tucson
6
0
0
rolle
@rolle@mementomori.social · Mar 31, 2026
Kävin valtaamassa Jyväskylää! Jalka kulki hyvin tänään 👟 #RolleJuoksee #Running #Juokseminen #Run
17
0
0
pixelcats
@pixelcats@apobangpo.space · Mar 04, 2026
The way I am totally thrilled that they've grown up enough to have comeback trailers now! Let's go my Dragon Ponies .. it's nearly time! 🐉 🐎 https://www.youtube.com/watch?v=CvkVn1B2h88 #DragonPony #Run
1
0
0
Sapphire_neo
@Sapphire_neo@mastodon.com.pl · Feb 23, 2026
紅蓮の邪神 Багряний злий бог 蒼き空を駆け抜くイカズチ Грім мчить по синьому небу https://note.com/poison_raika/n/n34b3b99b4087 <> #lightning #run #through #blue #sky #white #veil #envelop #crimson #evil #god #floats #tsunami #across #earth #sweeping #away #every #like #horrifying #destruction #poisonous
0
0
1
KXAN_news__dup_32342
@KXAN_news__dup_32342@flipboard.social · Feb 15, 2026
Ukulele band serenades runners during Austin Marathon While the Austin Marathon draws in people from all over the nation, it also draws people in Austin out of their homes. https://www.kxan.com/news/local/austin/ukulele-band-serenades-runners-during-austin-marathon/ #Austin #Entertainment #Local #News #Texas #TopStories #AustinMarathon #Raceday #Run #Runclub #Running
0
0
0
rolle
@rolle@mementomori.social · Jan 31, 2026
My January running challenge is now completed - 31 days of running behind me. The rule was simple: run at least 2 km every day, any style. I definitely didn't always feel like running. Many times I ended up doing my 2 km on the treadmill (Zwift). It was nice not having to think "should I run today", but rather "what kind of run should I do today?". I decided to finish with a long trail run despite the freezing temperatures (approximately -16 °C, equivalent to 3.2 °F, got a bit colder during the run). My snacks and my body froze before we even reached the halfway point, but I still enjoyed it! Total distance In January: 163.1 km. Good people run 🫶 #RolleJuoksee #Juoksuhaaste #Juokseminen #Juoksu #Run #Running
55
1
4

You've seen all posts