Args on mkdir, position arg
This commit is contained in:
parent
248bd3c2f4
commit
86195264c1
2
bin/x
2
bin/x
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue