parent
7807d6435e
commit
d391fd360a
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -f "$1" ] || exit 1
|
||||
|
||||
if [ -d $1 ]; then
|
||||
bg=$(ls $1 | shuf -n 1)
|
||||
elif [ -f $1 ]; then
|
||||
bg=$1
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
feh --bg-fill "$bg"
|
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q dunst
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x dunst > /dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
|
||||
dunst &
|
||||
|
||||
echo "Dunst launched..."
|
||||
notify-send "Dunst launched"
|
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar > /dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
|
||||
polybar bar &
|
||||
|
||||
echo "Bar launched..."
|
||||
|
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
OPTIONS="Laptop\nHDMI\nVGA\nDual (Laptop main + HDMI)\nDual (HDMI main + laptop)\nDual (VGA main + laptop)\nDual (Laptop main + VGA)\nManual"
|
||||
|
||||
SELECTED=$(echo -e $OPTIONS | rofi -dmenu -i -p "xrandr")
|
||||
|
||||
case "$SELECTED" in
|
||||
Laptop) xrandr --output eDP-1 --auto --output HDMI-2 --off --output DP-1 --off;;
|
||||
HDMI) xrandr --output HDMI-2 --auto --output eDP-1 --off --output DP-1 --off;;
|
||||
VGA) xrandr --output DP-1 --auto --output HDMI-2 --off --output eDP-1 --off;;
|
||||
"Dual (Laptop main + HDMI)") xrandr --output eDP-1 --primary --auto --output HDMI-2 --auto --right-of eDP-1 --output DP-1 --off;;
|
||||
"Dual (Laptop main + VGA)") xrandr --output eDP-1 --primary --auto --output DP-1 --auto --right-of eDP-1 --output HDMI-2 --off;;
|
||||
"Dual (HDMI main + laptop)") xrandr --output eDP-1 --auto --output DP-1 --off --output HDMI-2 --auto --primary --left-of eDP-1;;
|
||||
"Dual (VGA main + laptop)") xrandr --output eDP-1 --auto --output DP-1 --auto --primary --left-of eDP-1;;
|
||||
Manual) arandr;;
|
||||
esac
|
||||
|
@ -0,0 +1,5 @@
|
||||
#! /bin/bash
|
||||
FILENAME=`date +%Y-%m-%d-%H-%M-%S`.png
|
||||
scrot -d 0.1 -selection $FILENAME -e 'xclip -selection clipboard -t image/png $f && mv $f ~/Pictures/screenshots/'
|
||||
notify-send "📷 Saved screenshot as $FILENAME"
|
||||
|
@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
FILENAME=`date +%Y-%m-%d-%H-%M-%S`.png
|
||||
scrot -d 0.1 "$FILENAME" -e 'xclip -selection clipboard -t image/png $f && mv $f ~/Pictures/screenshots/'
|
||||
notify-send "📷 Saved screenshot as $FILENAME"
|
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Enable switch between keyboard layouts using setxkbmap
|
||||
|
||||
setxkbmap -model pc105 -layout us,es -option grp:alt_shift_toggle
|
Loading…
Reference in new issue