From 86195264c1d06970ea34629db3e7b13920ebce0b Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 4 Apr 2024 09:33:51 +0200 Subject: [PATCH] Args on mkdir, position arg --- bin/x | 2 +- config/aliases.nu | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/x b/bin/x index 90127b8..5f4ce12 100755 --- a/bin/x +++ b/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 } diff --git a/config/aliases.nu b/config/aliases.nu index 901fcb7..680e03d 100644 --- a/config/aliases.nu +++ b/config/aliases.nu @@ -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 }