From f0767b4618d4b6b432ba1170dfffc34cb0eab2b2 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 6 Sep 2020 00:18:31 +0200 Subject: [PATCH] Add scripts --- .bin/aurpac | 2 ++ .bin/brave-launcher | 9 +++++++++ .bin/laptop-only | 2 ++ 3 files changed, 13 insertions(+) create mode 100755 .bin/aurpac create mode 100755 .bin/brave-launcher create mode 100755 .bin/laptop-only diff --git a/.bin/aurpac b/.bin/aurpac new file mode 100755 index 0000000..87a0cb1 --- /dev/null +++ b/.bin/aurpac @@ -0,0 +1,2 @@ +#!/bin/bash +git clone https://aur.archlinux.org/$1.git diff --git a/.bin/brave-launcher b/.bin/brave-launcher new file mode 100755 index 0000000..6931abc --- /dev/null +++ b/.bin/brave-launcher @@ -0,0 +1,9 @@ +#!/bin/bash + +XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +BRAVE_USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf" +if [[ -f $BRAVE_USER_FLAGS_FILE ]]; then + USER_FLAGS="$(cat $BRAVE_USER_FLAGS_FILE | sed 's/#.*//')" +fi + +/usr/bin/brave $@ $USER_FLAGS diff --git a/.bin/laptop-only b/.bin/laptop-only new file mode 100755 index 0000000..160e004 --- /dev/null +++ b/.bin/laptop-only @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output eDP --dpi 180 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --off