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 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 alias rg = rg -uu
# mkdir && cd # 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 # run command in background
alias pa = pueue add --immediate alias pa = pueue add --immediate
@ -163,6 +163,6 @@ def m [arg: string@_meme] {
# mkdir with correct rights # mkdir with correct rights
def mkdir [arg: string] { def mkdir [arg: string] {
mkdir $arg ^mkdir $arg
chmod 755 $arg chmod 755 $arg
} }