Add files via upload

This commit is contained in:
Sankalp Tharu authored and GitHub committed 2023-02-21 14:33:17 +05:45
1 parent 326c2d8820
commit 19741e568a
26 files changed
+1213

No files matched your search

@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #161320;
fg: #96CDF8;
button: #1E1E2E;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #161320;
fg: #ABE9B3;
button: #1E1E2E;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #161320;
fg: #DDB6f2;
button: #1E1E2E;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #161320;
fg: #F28FAD;
button: #1E1E2E;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #2E3440;
fg: #81A1C1;
button: #3B4252;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #2E3440;
fg: #A3BE8C;
button: #3B4252;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #2E3440;
fg: #D08770;
button: #3B4252;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #2E3440;
fg: #BF616A;
button: #3B4252;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #2E3440;
fg: #B48EAD;
button: #3B4252;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #1E222A;
fg: #61AFEF;
button: #353845;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #1E222A;
fg: #7EC7A2;
button: #353845;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
+45
View File
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #1E222A;
fg: #7EC7A2;
button: #353845;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #161320;
fg: #96CDF8;
button: #1E1E2E;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @bg;
text-color: @bg;
}
@@ -0,0 +1,45 @@
@theme "/dev/null"
* {
bg: #0C0F09;
fg: #05E289;
button: #1B1E25;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: #05E289;
text-color: #1B1E25;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

+44
View File
@@ -0,0 +1,44 @@
@theme "/dev/null"
* {
bg: #0C0F09;
fg: #05E289;
bgAlt: #1B1E25;
background-color: @bg;
text-color: @fg;
}
@import "../Themes/style.rasi"
window {
transparency: "real";
width: 100px;
height: 260px;
location: east;
x-offset: -10px;
}
mainbox { children: [ listview ]; }
listview {
cycle: true;
dynamic: true;
layout: vertical;
padding: 10px;
}
element {
padding: 0px 0px 0px 0px;
border-radius: 8px;
}
element-text {
margin: 5px 8px 5px 12px;
padding: 4px 5px 4px 5px;
font: "FiraCode Nerd Font 35";
background-color: inherit;
text-color: inherit;
}
element selected {
background-color: @fg;
text-color: @bgAlt;
}
+67
View File
@@ -0,0 +1,67 @@
#!/bin/sh
# ┌─┐┌─┐┬─┐┌─┐┌─┐┌┐┌┌─┐┬ ┬┌─┐┌┬┐
# └─┐│ ├┬┘├┤ ├┤ │││└─┐├─┤│ │ │
# └─┘└─┘┴└─└─┘└─┘┘└┘└─┘┴ ┴└─┘ ┴
# author Sankalp
# github S4NAKLP
# ┌─┐┌─┐┌┐┌┌─┐┬┌─┐┬ ┬┬─┐┌─┐┌┬┐┬┌─┐┌┐┌┌─┐
# │ │ ││││├┤ ││ ┬│ │├┬┘├─┤ │ ││ ││││└─┐
# └─┘└─┘┘└┘└ ┴└─┘└─┘┴└─┴ ┴ ┴ ┴└─┘┘└┘└─┘
# Save Screenshots here
screenshotdir=~/media/Pictures/Screenshots
# file name
file=$screenshotdir/$(date '+%y%m%d-%H%M-%S').png
# icon for notification
icon=~/.config/rofi/screenshot/camera.png
# rofi config
roficonfig=~/.config/rofi/screenshot/config.rasi
#make sure you have directory
[ -d "$screenshotdir" ] || mkdir -pv "$screenshotdir"
# ┬─┐┌─┐┌─┐┬
# ├┬┘│ │├┤ │
# ┴└─└─┘└ ┴
area=""
cwin=""
full=""
copy=""
save=""
rofiopt="$area\n$cwin\n$full"
rofi=$(printf "$rofiopt" | rofi -config $roficonfig -dmenu -i )
[ -z "$rofi" ] && exit
option="$save\n$copy"
saveopt=$(printf "$option" | rofi -config $roficonfig -dmenu -i )
case $rofi in
"$area")
if [ "$saveopt" = "$copy" ]; then
notify-send -i $icon --urgency low 'Select Area'
maim -u -m 5 -s | xclip -selection clipboard -t image/png && notify-send -i $icon --urgency low 'Screenshot copied' || notify-send -i $icon 'failed to take screenshot'
elif [ "$saveopt" = "$save" ]; then
notify-send -i $icon --urgency low 'Select Area'
maim -u -m 5 -s $file && notify-send -i $icon --urgency low 'Screenshot Taken' || notify-send -i $icon 'failed to take screenshot'
fi
;;
"$cwin")
if [ "$saveopt" = "$copy" ]; then
maim -u -m 5 -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png && notify-send -i $icon --urgency low 'Screenshot copied' || notify-send -i $icon 'failed to take screenshot'
elif [ "$saveopt" = "$save" ]; then
maim -u -m 5 -i "$(xdotool getactivewindow)" $file && notify-send -i $icon --urgency low 'Screenshot Taken' || notify-send -i $icon 'failed to take screenshot'
fi
;;
"$full")
if [ "$saveopt" = "$copy" ]; then
sleep 2
maim -u -m 5 | xclip -selection clipboard -t image/png && notify-send -i $icon --urgency low 'Screenshot copied' || notify-send -i $icon 'failed to take screenshot'
elif [ "$saveopt" = "$save" ]; then
sleep 2
maim -u -m 5 $file && notify-send -i $icon --urgency low 'Screenshot Taken' || notify-send -i $icon 'failed to take screenshot'
fi
;;
esac