Args on mkdir, position arg

This commit is contained in:
Thomas Forgione 2024-04-04 09:33:51 +02:00
parent 248bd3c2f4
commit 86195264c1
2 changed files with 3 additions and 3 deletions

2
bin/x
View File

@ -17,7 +17,7 @@ def "main b" [] {
}
let res = $screens | where name == $env.PRIMARY_SCREEN | get resolutions | get 0 | get 0
xrandr --output $env.PRIMARY_SCREEN --mode $res --primary --output $env.SECONDARY_SCREEN --mode 1920x1080 --right-of $env.PRIMARY_SCREEN --output HDMI-0 --off
xrandr --output $env.PRIMARY_SCREEN --mode $res --primary --output $env.SECONDARY_SCREEN --mode 1920x1080 $env.SECONDARY_SCREEN_POSITION $env.PRIMARY_SCREEN --output HDMI-0 --off
}

View File

@ -99,7 +99,7 @@ def pdf [arg: string] {
alias rg = rg -uu
# mkdir && cd
def --env mkcd [dir: string] { mkdir $dir; chmod 755 $dir; cd $dir }
def --env mkcd [dir: string] { ^mkdir $dir; chmod 755 $dir; cd $dir }
# run command in background
alias pa = pueue add --immediate
@ -163,6 +163,6 @@ def m [arg: string@_meme] {
# mkdir with correct rights
def mkdir [arg: string] {
mkdir $arg
^mkdir $arg
chmod 755 $arg
}