diff --git a/.bash_aliases/all b/.bash_aliases/all index 3755a54..ee2cc32 100644 --- a/.bash_aliases/all +++ b/.bash_aliases/all @@ -68,19 +68,6 @@ alias pl="swipl" alias py="python" alias r="R" -reboot_windows () -{ - # Check if grub is installed by checking if the command exists, if it does - # not, then assume that the system is using systemd-boot - if grub-install --version &>/dev/null; then - windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) - sudo grub-reboot "$windows_title" - echo "Grub set to reboot to Windows" - else - sudo bootctl set-oneshot windows.conf - echo "Systemd set to reboot to Windows" - fi -} alias reboot-windows='reboot_windows' alias azerty="setxkbmap be" alias qwerty="setxkbmap us" diff --git a/.bash_aliases/desktop-arch b/.bash_aliases/desktop-arch index f228634..48e6085 100644 --- a/.bash_aliases/desktop-arch +++ b/.bash_aliases/desktop-arch @@ -1 +1,3 @@ +source "$HOME/.bash_aliases/dualboot" + alias lm='ddcutil setvcp 10' diff --git a/.bash_aliases/dualboot b/.bash_aliases/dualboot new file mode 100644 index 0000000..bfc4b48 --- /dev/null +++ b/.bash_aliases/dualboot @@ -0,0 +1,13 @@ +reboot_windows () +{ + # Check if grub is installed by checking if the command exists, if it does + # not, then assume that the system is using systemd-boot + if grub-install --version &>/dev/null; then + windows_title=$(grep -i windows /boot/grub/grub.cfg | cut -d "'" -f 2) + sudo grub-reboot "$windows_title" + echo "Grub set to reboot to Windows" + else + sudo bootctl set-oneshot windows.conf + echo "Systemd set to reboot to Windows" + fi +} diff --git a/.bash_aliases/flex-arch b/.bash_aliases/flex-arch index e94e303..6edac2c 100644 --- a/.bash_aliases/flex-arch +++ b/.bash_aliases/flex-arch @@ -1 +1,3 @@ +source "$HOME/.bash_aliases/dualboot" + alias lm='xbacklight -set'