diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi new file mode 100644 index 0000000..7980da4 --- /dev/null +++ b/.config/rofi/config.rasi @@ -0,0 +1,4 @@ +configuration { + show-icons: true; + icon-theme: "Papirus"; +} diff --git a/.config/rofi/scripts/screenshot b/.config/rofi/scripts/screenshot new file mode 100755 index 0000000..ed700f2 --- /dev/null +++ b/.config/rofi/scripts/screenshot @@ -0,0 +1,44 @@ +#!/bin/bash + +DIR="$HOME/.config/rofi" +rofi_command="rofi -theme $DIR/themes/screenshot.rasi" + +time=`date +%Y-%m-%d-%H-%M-%S` +dir="$HOME/Pictures/Screenshots" +file="Screenshot_${time}.png" + +screenleft="< " +area="" +screenright=" >" + +shotscreenleft() { + cd ${dir} && sleep 0.5 && maim -u -f png -g 2560x1440+0+0 | tee "$file" | xclip -selection clipboard -t image/png +} + +shotscreenright() { + cd ${dir} && sleep 0.5 && maim -u -f png -g 2560x1440+2560+0 | tee "$file" | xclip -selection clipboard -t image/png +} + +shotarea() { + cd ${dir} && sleep 0.5 && maim -u -f png -s -b 2 -c 0.35,0.55,0.85,0.25 -l | tee "$file" | xclip -selection clipboard -t image/png +} + +if [[ ! -d "$dir" ]]; then + mkdir -p "$dir" +fi + +options="$screenleft\n$area\n$screenright" + +chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)" +case $chosen in + $screenleft) + shotscreenleft + ;; + $area) + shotarea + ;; + $screenright) + shotscreenright + ;; +esac + diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-45-23_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-45-23_5120x1440.png new file mode 100644 index 0000000..e69de29 diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-45-46_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-45-46_5120x1440.png new file mode 100644 index 0000000..9eead5f Binary files /dev/null and b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-45-46_5120x1440.png differ diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-46-47_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-46-47_5120x1440.png new file mode 100644 index 0000000..e1b751c Binary files /dev/null and b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-46-47_5120x1440.png differ diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-47-04_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-47-04_5120x1440.png new file mode 100644 index 0000000..32c378f Binary files /dev/null and b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-47-04_5120x1440.png differ diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-51-45_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-51-45_5120x1440.png new file mode 100644 index 0000000..3844dd4 Binary files /dev/null and b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-51-45_5120x1440.png differ diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-51-57_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-51-57_5120x1440.png new file mode 100644 index 0000000..8851924 Binary files /dev/null and b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-51-57_5120x1440.png differ diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-55-35_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-12-55-35_5120x1440.png new file mode 100644 index 0000000..e69de29 diff --git a/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-14-31-31_5120x1440.png b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-14-31-31_5120x1440.png new file mode 100644 index 0000000..4abfe8b Binary files /dev/null and b/.config/rofi/scripts/~/Pictures/Screenshots/Screenshot_2022-06-12-14-31-31_5120x1440.png differ diff --git a/.config/rofi/themes/colors.rasi b/.config/rofi/themes/colors.rasi new file mode 100644 index 0000000..c69cf79 --- /dev/null +++ b/.config/rofi/themes/colors.rasi @@ -0,0 +1,9 @@ +* { +background: #21201E; +foreground: #EAD17F; +selected: #F0C674; +highlight: #8ABEB7; +urgent: #BF616A; +on: #3E2441; +off: #76573A; +} diff --git a/.config/rofi/themes/screenshot.rasi b/.config/rofi/themes/screenshot.rasi new file mode 100644 index 0000000..3f6b756 --- /dev/null +++ b/.config/rofi/themes/screenshot.rasi @@ -0,0 +1,86 @@ +configuration { + font: "Font Awesome 5 Free 20"; + show-icons: false; + disable-history: false; + click-to-exit: true; +} + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + background-color: inherit; + text-color: inherit; + font: "Font Awesome 5 Free 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 48px 0px 48px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @selected; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @highlight; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +}