mestrelion / scripts Goto Github PK
View Code? Open in Web Editor NEWPersonal scripts
Personal scripts
Saw your post and decided to give your script a try. It does not see my either of my primary monitors, one of which is the display BIOS/GRUB shows on.
$ monitor-switch --list
Connected monitors:
# DP-0 DisplayPort S22B300
# HDMI-0 HDMI DELL E2414H
$ grep NVIDIA /var/log/Xorg.0.log
[519989.444] (--) NVIDIA(GPU-0): CRT-0: disconnected
[519989.444] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
[519989.444] (--) NVIDIA(GPU-0):
[519989.489] (--) NVIDIA(GPU-0): HYO DUAL-DVI (DFP-0): connected
[519989.489] (--) NVIDIA(GPU-0): HYO DUAL-DVI (DFP-0): Internal TMDS
[519989.489] (--) NVIDIA(GPU-0): HYO DUAL-DVI (DFP-0): 330.0 MHz maximum pixel clock
[519989.489] (--) NVIDIA(GPU-0):
[519989.495] (--) NVIDIA(GPU-0): DELL E2414H (DFP-1): connected
[519989.496] (--) NVIDIA(GPU-0): DELL E2414H (DFP-1): Internal TMDS
[519989.496] (--) NVIDIA(GPU-0): DELL E2414H (DFP-1): 165.0 MHz maximum pixel clock
[519989.496] (--) NVIDIA(GPU-0):
[519989.525] (--) NVIDIA(GPU-0): Samsung S22B300 (DFP-2): connected
[519989.525] (--) NVIDIA(GPU-0): Samsung S22B300 (DFP-2): Internal TMDS
[519989.525] (--) NVIDIA(GPU-0): Samsung S22B300 (DFP-2): 165.0 MHz maximum pixel clock
[519989.525] (--) NVIDIA(GPU-0):
[519989.548] (--) NVIDIA(GPU-0): HYO DUAL-DVI (DFP-3): connected
[519989.548] (--) NVIDIA(GPU-0): HYO DUAL-DVI (DFP-3): Internal TMDS
[519989.548] (--) NVIDIA(GPU-0): HYO DUAL-DVI (DFP-3): 330.0 MHz maximum pixel clock
[519989.548] (--) NVIDIA(GPU-0):
[519989.548] (--) NVIDIA(GPU-0): DFP-4: disconnected
[519989.548] (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
[519989.548] (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
[519989.548] (--) NVIDIA(GPU-0):
[519989.565] (II) NVIDIA(0): Setting mode "DVI-I-1: nvidia-auto-select @2560x1440 +4480+0 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}, HDMI-0: nvidia-auto-select @1920x1080 +7040+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}, DP-0: nvidia-auto-select @1920x1080 +2560+0 {ViewPortIn=1920x1080, ViewPortOut=1920x1080+0+0}, DVI-D-0: nvidia-auto-select @2560x1440 +0+0 {ViewPortIn=2560x1440, ViewPortOut=2560x1440+0+0}
Hi,
Would just like to mention that the "-l" flag is defined twice but only applicable for "--list". Changing the flag to anything else should resolve the issue "-ls" for example.
Line 177 in fc864fe
Line 182 in fc864fe
Thanks for the script. Has been super useful to make use of VariableRefresh on X11 by disabling the secondary monitor.
I reported this bug here but was referred to your repository:
Error in script matchsubtitles.orig
Error:
./matchsubtitles.orig: line 96: ${ext,,}: bad substitution
Line 96:
case "${ext,,}" in avi|mpg|mpeg|mkv|mp4|ogv) ;; *) continue ;; esac
Correction:
case "${ext}" in avi|mpg|mpeg|mkv|mp4|ogv) ;; *) continue ;; esac
Also, running without --run
only echoes first file even though with --run
all files are processed.
With correction, script works great! Thanks!
It's something wrong in monitor-switch script. If we have connected two identically models of monitors script print only the one position.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.