screen settings

This commit is contained in:
2023-09-27 08:12:21 +02:00
parent 6028216665
commit b10d4b3f17
3 changed files with 25 additions and 10 deletions

View File

@@ -1,2 +1,2 @@
#!/bin/sh
xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --primary --mode 3440x1440 --pos 1440x475 --rotate normal --output DP-0 --mode 2560x1440 --pos 0x0 --rotate left --output DP-1 --off --output DVI-D-0 --off
xrandr --output DVI-I-0 --off --output DVI-I-1 --off --output HDMI-0 --primary --mode 3440x1440 --rate 99.99 --pos 1440x475 --rotate normal --output DP-0 --mode 2560x1440 --pos 0x0 --rotate left --output DP-1 --off --output DVI-D-0 --off

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
prefix=${PASSWORD_STORE_DIR-~/.config/screenlayout}
screen_files=( "$prefix"/*.sh )
screen_files=( "${screen_files[@]#"$prefix"/}" )
screen_files=( "${screen_files[@]%.sh}" )
screen_file=$(printf '%s\n' "${screen_files[@]}" | rofi -dmenu -theme nord -font 'pango:monospace 18'"$@")
[[ -n $screen_file ]] || exit
$("${prefix}/${screen_file}.sh")