Moved rofi mostly into awesome directory
This commit is contained in:
@@ -313,13 +313,10 @@ local globalkeys = mytable.join(
|
||||
-- check https://github.com/DaveDavenport/rofi for more details
|
||||
-- rofi
|
||||
awful.key({ modkey }, 'y', function()
|
||||
os.execute('rofi -show drun -theme fancy')
|
||||
awful.spawn('rofi -show drun -theme "' .. os.getenv('HOME') .. '/.config/awesome/rofi/launcher.rasi"')
|
||||
end, { description = 'show rofi', group = 'launcher' }),
|
||||
awful.key({ modkey, 'Shift' }, 'y', function()
|
||||
os.execute('rofi -show ssh -theme fancy')
|
||||
end, { description = 'show rofi', group = 'launcher' }),
|
||||
awful.key({ modkey, 'Control' }, 'y', function()
|
||||
os.execute('rofi -show window -theme fancy')
|
||||
awful.spawn(os.getenv('HOME') .. '/.config/awesome/rofi/launcher_launcher.sh')
|
||||
end, { description = 'show rofi', group = 'launcher' }),
|
||||
|
||||
-- Prompt
|
||||
|
||||
26
awesome/rofi/everforest.rasi
Normal file
26
awesome/rofi/everforest.rasi
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Colors
|
||||
**/
|
||||
|
||||
/*
|
||||
* {
|
||||
background: #323D43FF;
|
||||
background-alt: #3C474DFF;
|
||||
foreground: #DAD1BEFF;
|
||||
selected: #7FBBB3FF;
|
||||
active: #A7C080FF;
|
||||
urgent: #E67E80FF;
|
||||
}
|
||||
*/
|
||||
* {
|
||||
background: #2b3339;
|
||||
background-alt: #323d43;
|
||||
foreground: #a7c080;
|
||||
selected: #7fbbb3;
|
||||
active: #a7c080;
|
||||
urgent: #e67e80;
|
||||
}
|
||||
6
awesome/rofi/kaomoji.sh
Executable file
6
awesome/rofi/kaomoji.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
current_wid=$(xdo id)
|
||||
selection=$(rofi -i -dmenu -theme-str 'listview{columns: 6; lines: 11;}' -theme-str 'window {fullscreen: true;}' $@ < $(dirname $0)/kaomoji.txt)
|
||||
kaomoji=$(echo $selection | sed "s|$(echo -e "\ufeff").*||")
|
||||
echo -n "$kaomoji" | xclip -selection clipboard
|
||||
355
awesome/rofi/kaomoji.txt
Normal file
355
awesome/rofi/kaomoji.txt
Normal file
@@ -0,0 +1,355 @@
|
||||
>.< Upset
|
||||
>_> Looking
|
||||
<( ・ェ-)<} Bow and Arrow
|
||||
<(; ̄ ・ ̄) Scratching
|
||||
<(^oo^)> Pig
|
||||
<コ:彡 Squid
|
||||
(#^.^#) Embarrassed
|
||||
(#×_×) Dead
|
||||
(>^_^)><(^o^<) Hugging
|
||||
(>_<) Painful
|
||||
( --)/ ==卍 Ninja Star
|
||||
( -_-)旦~ Drinking
|
||||
( ^_^)/ Waving
|
||||
( `_)?(_' ) Dueling
|
||||
( `_)乂(_' ) Arm wrestle
|
||||
( ° ᴗ°)~ð Proposal
|
||||
( ´-ω・)︻┻┳══━一 Sniper
|
||||
( ˇ෴ˇ ) Hipster
|
||||
( ˘ ³˘)♥ Kiss me
|
||||
( ͡° ͜ʖ ͡°) Smiling
|
||||
( • ∀•)っθΘʘ Hiding Easter eggs
|
||||
( •_•)O °Q(•_• ) Playing Ping Pong
|
||||
( `o´)_θ☆ Kicking
|
||||
( `皿´)。ミ/ Hitting
|
||||
(  ̄┏_┓ ̄) Mustache
|
||||
(( _ _)☆ ≡〇 Header
|
||||
((((((^_^;) Evading
|
||||
(((((^_^) Teleporting
|
||||
(((༼•̫͡•༽))) Ghost
|
||||
(((☎))) Phone
|
||||
(*  ̄)( ̄ *) Kissing
|
||||
(*@_*#) Beaten Up
|
||||
(*^o^)人(^o^*) Buddies
|
||||
(*°∀°)=3 Infatuated
|
||||
(*’(OO)’*) Piggy
|
||||
(*≧m≦*) Enraged
|
||||
(*▿▿* ƪ) Vampire
|
||||
(*・)σσ(*゜O゜) Poking
|
||||
(*・_・)ノ⌒* Throwing Away
|
||||
(* ̄m ̄) Dissatisfied
|
||||
(+.+)(-.-)(_ _) Falling Asleep
|
||||
(+[__]∙:∙) PlayStation Portable
|
||||
(- o - ) zzZ ☽ Sleepy
|
||||
(-_-)# Girl
|
||||
(-_ゞ Groggy
|
||||
(-ε- ) Pucker up
|
||||
(-□-)︵* Blowing a Kiss
|
||||
(.〜◍`皿′◍〜.) Livid
|
||||
(//_^) Emo
|
||||
(/ω・\) Peering
|
||||
(:3 っ)っ Walrus
|
||||
(;-_-)ノ Giving up
|
||||
(;´ρ`) Yawning
|
||||
(;´Д`) Giving Up
|
||||
(;´༎ຶД༎ຶ`) Weeping
|
||||
(=^_^=) Bunny
|
||||
(=^ェ^=) Cat
|
||||
(=^・ェ・^=) Kitty
|
||||
(^ _ ^)/~~ Goodbye
|
||||
(^^)// Applause
|
||||
(^_^) Laughing
|
||||
(^o^) Singing
|
||||
(^‿◕) Winking
|
||||
(_ _)..ooOO Dreaming
|
||||
(`_^) Wink
|
||||
(o^-^o) Pikachu
|
||||
(o´・Υ・)ノ・ Help
|
||||
(o ̄∇ ̄)=◯)`ν゜)・ Punching
|
||||
(p_-) Thinking
|
||||
(ToT) Crying
|
||||
(V) (°,,,,°) (V) Zoidberg
|
||||
(z_z~.) Tired
|
||||
(~_(]=--Z(◡˘) Pie Fight
|
||||
(¬_¬") Annoyed
|
||||
(¬_¬ ) Neglected
|
||||
(¬‿¬) Cunning
|
||||
(¬、¬) Shifty
|
||||
(°̥̥̥̥̥̥̥̥ᴗ°̥̥̥̥̥̥̥̥) Happy crying
|
||||
(´>_●)メ(●_<`) Sword Fighting
|
||||
(´~`) Weary
|
||||
(´∪`*) Friendly
|
||||
(´╹〽╹`) Worried
|
||||
(´・ω・)っ由 Gift
|
||||
(´ー`)┌フッ Golf Clap
|
||||
(´・ω・`) Snubbing
|
||||
(ò_ó) Furious
|
||||
(ó ì_í)=óò=(ì_í ò) Bro Pound
|
||||
(ɔˆ ³(ˆ⌣ˆc) Loving couple
|
||||
(ɔ˘з˘)ɔ Romantic
|
||||
(ʘ‿ʘ) Smile
|
||||
(о^ω^о) Giggling
|
||||
(ू˃̣̣̣̣̣̣︿˂̣̣̣̣̣̣ ू) Sobbing
|
||||
(ಥ﹏ಥ) Devastated
|
||||
(ง •̀_•́)ง Feisty
|
||||
(ง •̀ゝ•́)ง Fighting
|
||||
(๑´•.̫ • `๑) Blushing
|
||||
(๑≖ิิ益≖ิ๑) Evil Laugh
|
||||
(๑╹ڡ╹๑) Tasty
|
||||
(•͡.•͡) Skeptical
|
||||
(•ᴥ• )́`́'́`́'́⻍ Porcupine
|
||||
(‥;) Depressed
|
||||
(″・ิ_・ิ)っ Wait
|
||||
(‾ʖ̫‾) Lethargic
|
||||
(∩`-´)⊃━☆゚.*・。゚ Wizard
|
||||
(∩`-´)⊃━☆゚.*・。゚ Magic Attack
|
||||
(∿°○°)∿ ︵ ǝʌol Heartbroken
|
||||
(≧∇≦)/ Joyful
|
||||
(⊃‿⊂) Anticipation
|
||||
(⊙_◎) Crazed
|
||||
(⌒ ͜ʖ⌒)b Attentive
|
||||
(⓪益⓪) Staring
|
||||
(─‿‿─) Pleased
|
||||
(╬☉Д⊙ฺ) Cyborg
|
||||
(╯3╰) Kiss
|
||||
(╯_╰) Bummed out
|
||||
(╯°□°)╯︵ ʞooqǝɔɐɟ Flipping Facebook
|
||||
(╯°□°)╯︵ ┻━┻ Flipping Table
|
||||
(╯°□°)╯︵ ┻━┻ Flipping table
|
||||
(╯˘ -˘ )╯ Praying
|
||||
(╯ნ_㇁ნ)╯ Defeated
|
||||
(╯‵Д′)╯ Scary
|
||||
(▀̿Ĺ̯▀̿ ̿) Deal with it
|
||||
(▰˘◡˘▰) Satisfied
|
||||
(○`д´)ノシ Σ(っ゚Д゚)っ Chasing
|
||||
(●´ノω`)コ Whispering
|
||||
(●∈∋●) Bird
|
||||
(◐‿◑) Crazy
|
||||
(◣_◢) Angry
|
||||
(☄ฺ◣д◢)☄ฺ Scaring
|
||||
(★▼▼)o┳*-- Shooting
|
||||
(☉__☉”) Yikes
|
||||
(♥_♥) In Love
|
||||
(✖╭╮✖) Deceased
|
||||
(。_°)☆ Punched
|
||||
(。。;)\(-_-) Comforting
|
||||
(。・_・)ノ”【】 Painting
|
||||
(っ^‿^)っ Kirby
|
||||
(っ˘ڡ˘ς) Yummy
|
||||
(っ⌒‿⌒)っ Hug
|
||||
(づ ̄ ³ ̄)づ Smooch
|
||||
(シ_ _)シ Apology
|
||||
(*☉౪ ⊙。)ノ Imbecile
|
||||
(-‸ლ) Whoops
|
||||
(/o^)/°⊥\(^o\) Volleyball
|
||||
(/。\) Frightened
|
||||
(;^_^)ッ☆( ゜o゜) Slapping
|
||||
(;一_一) Ashamed
|
||||
(^▽^) Cheerful
|
||||
(。▼皿▼) Darth Vader
|
||||
(。♥‿♥。) Smitten
|
||||
(。・ˇдˇ・。) Pompous
|
||||
(ノ-o-)ノ 中 Olympic Hammer Throw
|
||||
(ノ_ _)ノ Surrender
|
||||
(ノ゚0゚)ノ~ Yoo- Hoo
|
||||
( ̄┏∞┓ ̄) Fu Manchu Man
|
||||
( ̄▼ ̄) Big Grin
|
||||
( ̄ー ̄)//”” Clapping
|
||||
( ̄ー ̄(_ _( Nodding
|
||||
---(o_ _)o Tripping
|
||||
-_-* Frustrated
|
||||
-_-; Anime Sweat Drop
|
||||
-{'''|'''|'''|''']=[] Syringe
|
||||
-ˆ ω ˆ- Kitten
|
||||
.∵・(゚Д゚) Scared
|
||||
/( _0_) ̄θ☆≡≡○ Scissor Kick
|
||||
/|\( ;,; )/|\ Bat
|
||||
8(>_<)8 Jealous
|
||||
:(¦) Frog
|
||||
:-{ -__-: Stinky
|
||||
:-Þ Teasing
|
||||
:þ Playful
|
||||
@( o・ω・)@ Monkey
|
||||
[ ± _ ± ] Sick
|
||||
[-_-]~ Ninja
|
||||
[]゛7(∀゜*) Dialing
|
||||
[^._.^]ノ彡 Nyan Cat
|
||||
[¬º-°]¬ Zombie
|
||||
[•.•ิ] Huh
|
||||
\\(<.<|>.>)// Panicking
|
||||
\m/d(^_^)b\m/ Rocking Out
|
||||
\_(´▽`)♪_/ Bathtub
|
||||
^(#`∀´)_Ψ Demon
|
||||
^)_(^ Chubby
|
||||
^-^ Happy
|
||||
^;;^ Spider
|
||||
^^ Blissful
|
||||
^_^ Overjoyed
|
||||
^_^/ High Five
|
||||
^_^; Guilty
|
||||
^o^ Mog
|
||||
___ψ(‥ ) Studying
|
||||
d(^_^)b Listening to Music
|
||||
d-(^.^)z Thumbs Up
|
||||
d^_^b DJ
|
||||
L(´□`L) Oh No!
|
||||
m( ゚皿゚)m★━━ Laser
|
||||
o(>< )o⌒* Mad
|
||||
O(<>'<>)O Aang
|
||||
o(^^o)(o^^)o Hopeful
|
||||
o(^_-)O Boxer
|
||||
o(^▽^)o Pumped
|
||||
o(´^`)o Reluctant
|
||||
Q('.'Q) Put Em Up
|
||||
T.T Sad
|
||||
U=・ x ・=U Rabbit
|
||||
uwu Happy Anime Face
|
||||
U^ェ^U Puppy
|
||||
v(^_^)v Victory
|
||||
V=(° °)=V Crab
|
||||
V●ᴥ●V Doggy
|
||||
{{|└(>o< )┘|}} Up In Arms
|
||||
{♥‿♥} Lovestruck
|
||||
|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅| Stereo
|
||||
|д・) Hiding
|
||||
|∴め ϖ め∴| SpongeBob SquarePants
|
||||
¤\( `⌂´ )/¤ Lifting weights
|
||||
¥[*.*]¥ Robot
|
||||
¬.¬ Whatever
|
||||
¯(°_o)/¯ Confused shrug
|
||||
¯\(°_o)/¯ Confused
|
||||
¯\_(ツ)_/¯ Shrugging
|
||||
ƪ(˘⌣˘)ʃ Raise the roof
|
||||
ƪ(˘▽˘ƪ) Worshiping
|
||||
Ƹ̵̡Ӝ̵̨̄Ʒ Butterfly
|
||||
ʕ •́؈•̀) Winnie the Pooh
|
||||
ʕ •ᴥ•ʔ Koala
|
||||
ʕʔ Bread
|
||||
ʕु•̫͡•ʔु Bear cub
|
||||
ʕ•͡ᴥ•ʔ Polar bear
|
||||
ʘ‿ʘ Eager
|
||||
˙ ͜ʟ˙ Content
|
||||
ε-(´・`) フ Phew
|
||||
ε=(☉_☉) Accidental farting
|
||||
ε=ε=ε=┌(๑ʘ∀ʘ)┘ Sprinting
|
||||
ε=┌( ≧▽)┘ Elated
|
||||
ε=┌(^-^)┘ Skipping
|
||||
ε=┏( >_<)┛ Running
|
||||
ϵ( 'Θ' )϶ Fish
|
||||
٩◔̯◔۶ Eye Roll With Hands Up
|
||||
੯ू•́ू ໒꒱⁼³₌₃ Sonic the Hedgehog
|
||||
੯ू‵ू ໒꒱ Poodle
|
||||
ಠ_ಠ Disapproval
|
||||
ಠ_ರೃ Monocle
|
||||
ಠᴗಠ Scheming
|
||||
ಥ_ಥ Bawling
|
||||
๏-) Cyclops
|
||||
༼ ༎ຶ ෴ ༎ຶ༽ Distraught
|
||||
༼ つ ◕_◕ ༽つ Take my energy
|
||||
༼ つ ◕_◕ ༽つ Gimme
|
||||
༼ঢ_༽ঢ༽ Perplexed
|
||||
༼ঢ_㇁ঢ༽ Bad hair day
|
||||
ლ(´ڡ`ლ) Licking
|
||||
ლ(ಠ益ಠ)ლ Anger
|
||||
ლ(ಠ益ಠლ) But At What Cost
|
||||
ᒄ₍⁽ˆ⁰ˆ⁾₎ᒃ♪♬ Frosty the Snowman
|
||||
ᕕ( ᐛ )ᕗ Celebrating
|
||||
ᕦ(ò_óˇ)ᕤ Flexing
|
||||
ᕦ◉▿◉ᕤ Owl
|
||||
ᕦ❍ᴗ❍ᕤ Muscular Person
|
||||
ᘛ⁐̤ᕐᐷ Chameleon
|
||||
ᡊ|◔じ◔|ᡊ Woody Allen
|
||||
ᶘ ᵒᴥᵒᶅ Seal
|
||||
(>o<)ρミ┳┷┳゜ Table Tennis
|
||||
†_(゚ー゚*)β Exorcism
|
||||
•:_:• Nagato
|
||||
←~(o `▽´ )oΨ Satan
|
||||
∊ಠ_ಠ∍ Distressed
|
||||
∊♡_ᴥ_♡∍ Puppy Love
|
||||
∋(°O°)∈ Blowfish
|
||||
∋∞(●゚v゚)∞∈ Pigtails
|
||||
⊂ •͡˘∠•͡˘ ⊃ Suspicious
|
||||
⊂((・▽・))⊃ Hug me
|
||||
⊂(^(工)^)⊃ Teddy bear
|
||||
⊂(◜ᴥ◝)つ Teddy Bear
|
||||
⊆☉ᴥ☉⊇ Bear
|
||||
⊙▂⊙ Shocked
|
||||
⋟^≏^⋞ Kitty Cat
|
||||
⎰≀.☮-☮≀⎰ John Lennon
|
||||
─=≡Σ(([ ⊐•̀⌂•́]⊐ Superhero
|
||||
┌|°з°|┘ Cutting a rug
|
||||
└(^o^ )X( ^o^)┘ Best buddies
|
||||
└(^o^)┐ Grooving
|
||||
└@(・ェ・)@┐ Beefcake
|
||||
┗( ●-﹏ `。)づ Hurt
|
||||
┗(・ω・;)┛ How Should I Know
|
||||
┬─┬ノ( º _ ºノ) Putting Table Back
|
||||
┬─┬︵/(.□.)╯ Table Flips You
|
||||
┬┴┬┴┤(・_├┬┴┬┴ Snooper
|
||||
┳┻┳° Ping Pong table
|
||||
╹﹏╹ Cold
|
||||
▼o・_・o▼ Hello
|
||||
◔̯◔ Rolling Eyes
|
||||
◖ර◞ʖ◟ර◗ Grandma
|
||||
◖⎚∠⎚◗ Geek
|
||||
◖㈠ ω ㈠◗ Panda
|
||||
◤◡ᴥ◡◥ Dog
|
||||
◦°˚\☺/˚°◦ Playing in the snow
|
||||
◯0o。(ー。ー)y Smoking
|
||||
☉ϖ☉ Lobster
|
||||
♥‿♥ Enamored
|
||||
♪(●′▽`)ノ Good Night
|
||||
♪┏(・o・)┛♪ Dancing
|
||||
♪~( ̄ε ̄;) Whistling
|
||||
♫.(◠౪◠).♫ Jamming to music
|
||||
✌(გ_㇁გ)✌ Ringo Starr
|
||||
✌(◕‿-)✌ Peace
|
||||
✖‿✖ Dead person
|
||||
❆❅❉ Snowing
|
||||
⨌⨀_⨀⨌ Benjamin Franklin
|
||||
⪿ ↂ ˒̫̮ ↂ ⫀ Elton John
|
||||
⫷ °⧭° ⫸ Clown
|
||||
「(°ヘ°) Puzzled
|
||||
〜〜(/ ̄▽)/ 〜ф Chasing A Butterfly
|
||||
ヘ(。□°)ヘ Psycho
|
||||
ヽ( ★ω★)ノ Pumped up
|
||||
ヽ(´Д`ヽミノ´Д`)ノ Frantic
|
||||
ヽ(⌐■_■)ノ♪♬ Boogie down
|
||||
ヽ(★ω★)ノ Excited
|
||||
ヽ(゚Д゚)ノ Freak Out
|
||||
ヽ(´ー`)┌ Mellow
|
||||
ヾ(* ̄O ̄)ツ Yelling
|
||||
ヾ(`ε´)ノ Booing
|
||||
㐈⦁ཽし⦁ཽ㐈 Larry David
|
||||
且_(゚◇゚;)ノ゙ Waiter
|
||||
꒡ᘦ̲꒡ Sleeping
|
||||
( つ Д `) Wiping Tears
|
||||
(*・)「」「」 Magic Casting
|
||||
(/。\) Shy
|
||||
(´Д゜)/゜⌒。 Discarding
|
||||
( ^)/占~~~ Banksy
|
||||
( ^^)人(^^ ) Best Buds
|
||||
(。_°☆\(- – ) Punch
|
||||
(。々°) Herp Derp
|
||||
(・д・)} On The Phone
|
||||
(人’∀’) Precious
|
||||
(^~^) Meh
|
||||
(_ε_) Kiss my butt
|
||||
(¬з¬)σ Pointing
|
||||
( ̄□ ̄;) Surprised
|
||||
( ̄へ ̄) Discontent
|
||||
( ̄~ ̄) Unimpressed
|
||||
/人◕ ‿‿ ◕人\ Kyubey
|
||||
=( ^o^)ノ___o Bowling
|
||||
\(-_- ) Thank You
|
||||
\(^o)(^0^)(o^)/ Caroling
|
||||
\(^O^)/ Celebrate
|
||||
\(`0´)/ Fed Up
|
||||
\(^ ^)/ Glad
|
||||
\(~O~)/ Good Morning
|
||||
_φ( °-°)/ Doing Homework
|
||||
_φ(°-°=) Doing homework
|
||||
_〆(。。) Writing
|
||||
C:。ミ Octopus
|
||||
~゜・_・゜~ Raving
|
||||
。◕‿◕。 Gleeful
|
||||
277
awesome/rofi/launcher.rasi
Normal file
277
awesome/rofi/launcher.rasi
Normal file
@@ -0,0 +1,277 @@
|
||||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
modi: "drun";
|
||||
show-icons: true;
|
||||
display-drun: "";
|
||||
display-run: "";
|
||||
display-filebrowser: "";
|
||||
display-window: "";
|
||||
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";
|
||||
window-format: "{w} · {c} · {t}";
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "everforest.rasi"
|
||||
|
||||
* {
|
||||
font: "Iosevka Nerd Font 10";
|
||||
}
|
||||
|
||||
* {
|
||||
border-colour: var(selected);
|
||||
handle-colour: var(selected);
|
||||
background-colour: var(background);
|
||||
foreground-colour: var(foreground);
|
||||
alternate-background: var(background-alt);
|
||||
normal-background: var(background);
|
||||
normal-foreground: var(foreground);
|
||||
urgent-background: var(urgent);
|
||||
urgent-foreground: var(background);
|
||||
active-background: var(active);
|
||||
active-foreground: var(background);
|
||||
selected-normal-background: var(selected);
|
||||
selected-normal-foreground: var(background);
|
||||
selected-urgent-background: var(active);
|
||||
selected-urgent-foreground: var(background);
|
||||
selected-active-background: var(urgent);
|
||||
selected-active-foreground: var(background);
|
||||
alternate-normal-background: var(background);
|
||||
alternate-normal-foreground: var(foreground);
|
||||
alternate-urgent-background: var(urgent);
|
||||
alternate-urgent-foreground: var(background);
|
||||
alternate-active-background: var(active);
|
||||
alternate-active-foreground: var(background);
|
||||
}
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
/* properties for window widget */
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 800px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
/* properties for all widgets */
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
cursor: "default";
|
||||
background-color: @background-colour;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 15px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px 0px 2px dash 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: @background-colour;
|
||||
text-color: @foreground-colour;
|
||||
children: [ "prompt", "entry" ];
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: true;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "::";
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
entry {
|
||||
enabled: true;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
cursor: text;
|
||||
placeholder: "Search...";
|
||||
placeholder-color: inherit;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 2;
|
||||
lines: 12;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 0px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
cursor: "default";
|
||||
}
|
||||
scrollbar {
|
||||
handle-width: 5px ;
|
||||
handle-color: @handle-colour;
|
||||
border-radius: 0px;
|
||||
background-color: @alternate-background;
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 5px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
cursor: pointer;
|
||||
}
|
||||
element normal.normal {
|
||||
background-color: var(normal-background);
|
||||
text-color: var(normal-foreground);
|
||||
}
|
||||
element normal.urgent {
|
||||
background-color: var(urgent-background);
|
||||
text-color: var(urgent-foreground);
|
||||
}
|
||||
element normal.active {
|
||||
background-color: var(active-background);
|
||||
text-color: var(active-foreground);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(alternate-background);
|
||||
text-color: var(selected-normal-background);
|
||||
}
|
||||
element selected.urgent {
|
||||
background-color: var(selected-urgent-background);
|
||||
text-color: var(selected-urgent-foreground);
|
||||
}
|
||||
element selected.active {
|
||||
background-color: var(selected-active-background);
|
||||
text-color: var(selected-active-foreground);
|
||||
}
|
||||
element alternate.normal {
|
||||
background-color: var(alternate-normal-background);
|
||||
text-color: var(alternate-normal-foreground);
|
||||
}
|
||||
element alternate.urgent {
|
||||
background-color: var(alternate-urgent-background);
|
||||
text-color: var(alternate-urgent-foreground);
|
||||
}
|
||||
element alternate.active {
|
||||
background-color: var(alternate-active-background);
|
||||
text-color: var(alternate-active-foreground);
|
||||
}
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
size: 24px;
|
||||
cursor: inherit;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Mode Switcher -----*****/
|
||||
mode-switcher{
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
}
|
||||
button {
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: @alternate-background;
|
||||
text-color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
button selected {
|
||||
background-color: var(selected-normal-background);
|
||||
text-color: var(selected-normal-foreground);
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
}
|
||||
textbox {
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: @alternate-background;
|
||||
text-color: @foreground-colour;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
highlight: none;
|
||||
placeholder-color: @foreground-colour;
|
||||
blink: true;
|
||||
markup: true;
|
||||
}
|
||||
error-message {
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: @background-colour;
|
||||
text-color: @foreground-colour;
|
||||
}
|
||||
310
awesome/rofi/launcher_launcher.rasi
Normal file
310
awesome/rofi/launcher_launcher.rasi
Normal file
@@ -0,0 +1,310 @@
|
||||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
modi: "drun";
|
||||
show-icons: false;
|
||||
display-drun: "";
|
||||
display-run: "";
|
||||
display-filebrowser: "";
|
||||
display-window: "";
|
||||
drun-display-format: "{name}";
|
||||
window-format: "{w} · {c} · {t}";
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "everforest.rasi"
|
||||
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
}
|
||||
|
||||
* {
|
||||
border-colour: var(selected);
|
||||
handle-colour: var(foreground);
|
||||
background-colour: var(background);
|
||||
foreground-colour: var(foreground);
|
||||
alternate-background: var(background-alt);
|
||||
normal-background: var(background);
|
||||
normal-foreground: var(foreground);
|
||||
urgent-background: var(urgent);
|
||||
urgent-foreground: var(background);
|
||||
active-background: var(active);
|
||||
active-foreground: var(background);
|
||||
selected-normal-background: var(selected);
|
||||
selected-normal-foreground: var(background);
|
||||
selected-urgent-background: var(active);
|
||||
selected-urgent-foreground: var(background);
|
||||
selected-active-background: var(urgent);
|
||||
selected-active-foreground: var(background);
|
||||
alternate-normal-background: var(background);
|
||||
alternate-normal-foreground: var(foreground);
|
||||
alternate-urgent-background: var(urgent);
|
||||
alternate-urgent-foreground: var(background);
|
||||
alternate-active-background: var(active);
|
||||
alternate-active-foreground: var(background);
|
||||
}
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
/* properties for window widget */
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 500px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
/* properties for all widgets */
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
cursor: "default";
|
||||
/* Backgroud Colors */
|
||||
background-color: @background-colour;
|
||||
/* Backgroud Image */
|
||||
//background-image: url("/path/to/image.png", none);
|
||||
/* Simple Linear Gradient */
|
||||
//background-image: linear-gradient(red, orange, pink, purple);
|
||||
/* Directional Linear Gradient */
|
||||
//background-image: linear-gradient(to bottom, pink, yellow, magenta);
|
||||
/* Angle Linear Gradient */
|
||||
//background-image: linear-gradient(45, cyan, purple, indigo);
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview", "mode-switcher" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
children: [ "prompt", "entry" ];
|
||||
}
|
||||
|
||||
prompt {
|
||||
enabled: true;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "::";
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
entry {
|
||||
enabled: true;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
cursor: text;
|
||||
placeholder: "search...";
|
||||
placeholder-color: inherit;
|
||||
}
|
||||
num-filtered-rows {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
textbox-num-sep {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "/";
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
num-rows {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
case-indicator {
|
||||
enabled: true;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 2;
|
||||
lines: 10;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 5px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
cursor: "default";
|
||||
}
|
||||
scrollbar {
|
||||
handle-width: 5px ;
|
||||
handle-color: @handle-colour;
|
||||
border-radius: 0px;
|
||||
background-color: @alternate-background;
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 8px;
|
||||
margin: 0px;
|
||||
padding: 8px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
cursor: pointer;
|
||||
}
|
||||
element normal.normal {
|
||||
background-color: var(normal-background);
|
||||
text-color: var(normal-foreground);
|
||||
}
|
||||
element normal.urgent {
|
||||
background-color: var(urgent-background);
|
||||
text-color: var(urgent-foreground);
|
||||
}
|
||||
element normal.active {
|
||||
background-color: var(active-background);
|
||||
text-color: var(active-foreground);
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: var(normal-foreground);
|
||||
text-color: var(normal-background);
|
||||
}
|
||||
element selected.urgent {
|
||||
background-color: var(selected-urgent-background);
|
||||
text-color: var(selected-urgent-foreground);
|
||||
}
|
||||
element selected.active {
|
||||
background-color: var(selected-active-background);
|
||||
text-color: var(selected-active-foreground);
|
||||
}
|
||||
element alternate.normal {
|
||||
background-color: var(alternate-normal-background);
|
||||
text-color: var(alternate-normal-foreground);
|
||||
}
|
||||
element alternate.urgent {
|
||||
background-color: var(alternate-urgent-background);
|
||||
text-color: var(alternate-urgent-foreground);
|
||||
}
|
||||
element alternate.active {
|
||||
background-color: var(alternate-active-background);
|
||||
text-color: var(alternate-active-foreground);
|
||||
}
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
size: 24px;
|
||||
cursor: inherit;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
}
|
||||
|
||||
/*****----- Mode Switcher -----*****/
|
||||
mode-switcher{
|
||||
enabled: false;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
}
|
||||
button {
|
||||
padding: 8px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: @alternate-background;
|
||||
text-color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
button selected {
|
||||
background-color: var(normal-foreground);
|
||||
text-color: var(normal-background);
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: transparent;
|
||||
text-color: @foreground-colour;
|
||||
}
|
||||
textbox {
|
||||
padding: 8px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: @alternate-background;
|
||||
text-color: @foreground-colour;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
highlight: none;
|
||||
placeholder-color: @foreground-colour;
|
||||
blink: true;
|
||||
markup: true;
|
||||
}
|
||||
error-message {
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @border-colour;
|
||||
background-color: @background-colour;
|
||||
text-color: @foreground-colour;
|
||||
}
|
||||
43
awesome/rofi/launcher_launcher.sh
Executable file
43
awesome/rofi/launcher_launcher.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Options
|
||||
power="Power menu"
|
||||
ssh="SSH Connect"
|
||||
window="Window switcher"
|
||||
kaomoji="Kaomoji"
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -dmenu \
|
||||
-window-title "Launcher" \
|
||||
-i \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$power\n$ssh\n$window\n$kaomoji" | rofi_cmd
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$power)
|
||||
$HOME/.config/awesome/rofi/powermenu.sh
|
||||
;;
|
||||
$ssh)
|
||||
rofi \
|
||||
-show ssh \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
|
||||
;;
|
||||
$window)
|
||||
rofi \
|
||||
-show window \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
|
||||
-theme-str 'listview {columns: 1; lines: 10;}'
|
||||
;;
|
||||
$kaomoji)
|
||||
$HOME/.config/awesome/rofi/kaomoji.sh \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
|
||||
;;
|
||||
esac
|
||||
170
awesome/rofi/powermenu.rasi
Normal file
170
awesome/rofi/powermenu.rasi
Normal file
@@ -0,0 +1,170 @@
|
||||
/**
|
||||
*
|
||||
* Author : Aditya Shakya (adi1090x)
|
||||
* Github : @adi1090x
|
||||
*
|
||||
* Rofi Theme File
|
||||
* Rofi Version: 1.7.3
|
||||
**/
|
||||
|
||||
/*****----- Configuration -----*****/
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
/*****----- Global Properties -----*****/
|
||||
@import "everforest.rasi"
|
||||
|
||||
* {
|
||||
font: "JetBrains Mono Nerd Font 10";
|
||||
}
|
||||
|
||||
/*****----- Main Window -----*****/
|
||||
window {
|
||||
/* properties for window widget */
|
||||
transparency: "real";
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 605px;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
/* properties for all widgets */
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
cursor: "default";
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Main Box -----*****/
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 20px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
children: [ "inputbar", "message", "listview" ];
|
||||
}
|
||||
|
||||
/*****----- Inputbar -----*****/
|
||||
inputbar {
|
||||
enabled: true;
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
children: [ "textbox-prompt-colon", dummy, "prompt"];
|
||||
}
|
||||
|
||||
dummy {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
textbox-prompt-colon {
|
||||
enabled: true;
|
||||
expand: false;
|
||||
str: "";
|
||||
padding: 10px 18px 10px 14px;
|
||||
border-radius: 0px;
|
||||
background-color: @urgent;
|
||||
text-color: @background;
|
||||
}
|
||||
prompt {
|
||||
enabled: true;
|
||||
padding: 10px;
|
||||
border-radius: 0px;
|
||||
background-color: @active;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
/*****----- Message -----*****/
|
||||
message {
|
||||
enabled: true;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
}
|
||||
textbox {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
placeholder-color: @foreground;
|
||||
blink: true;
|
||||
markup: true;
|
||||
}
|
||||
error-message {
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
/*****----- Listview -----*****/
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 5;
|
||||
lines: 1;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
|
||||
spacing: 10px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: transparent;
|
||||
text-color: @foreground;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
/*****----- Elements -----*****/
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
border: 0px solid;
|
||||
border-radius: 0px;
|
||||
border-color: @selected;
|
||||
background-color: @background-alt;
|
||||
text-color: @foreground;
|
||||
cursor: pointer;
|
||||
}
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
element selected.normal {
|
||||
border: 0px 2px 0px 2px;
|
||||
border-radius: 0px;
|
||||
background-color: var(selected);
|
||||
text-color: var(background);
|
||||
}
|
||||
102
awesome/rofi/powermenu.sh
Executable file
102
awesome/rofi/powermenu.sh
Executable file
@@ -0,0 +1,102 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## Author : Aditya Shakya (adi1090x)
|
||||
## Github : @adi1090x
|
||||
#
|
||||
## Rofi : Power Menu
|
||||
#
|
||||
## Available Styles
|
||||
#
|
||||
## style-1 style-2 style-3 style-4 style-5
|
||||
|
||||
# CMDs
|
||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
||||
host=`hostname`
|
||||
|
||||
# Options
|
||||
shutdown=' Shutdown'
|
||||
reboot=' Reboot'
|
||||
lock=' Lock'
|
||||
suspend=' Suspend'
|
||||
logout=' Logout'
|
||||
yes=' Yes'
|
||||
no=' No'
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -dmenu \
|
||||
-p "$host" \
|
||||
-mesg "Uptime: $uptime" \
|
||||
-theme $HOME/.config/awesome/rofi/powermenu.rasi
|
||||
}
|
||||
|
||||
# Confirmation CMD
|
||||
confirm_cmd() {
|
||||
rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 250px;}' \
|
||||
-theme-str 'mainbox {children: [ "message", "listview" ];}' \
|
||||
-theme-str 'listview {columns: 2; lines: 1;}' \
|
||||
-theme-str 'element-text {horizontal-align: 0.5;}' \
|
||||
-theme-str 'textbox {horizontal-align: 0.5;}' \
|
||||
-dmenu \
|
||||
-p 'Confirmation' \
|
||||
-mesg 'Are you Sure?' \
|
||||
-theme $HOME/.config/awesome/rofi/powermenu.rasi
|
||||
}
|
||||
|
||||
# Ask for confirmation
|
||||
confirm_exit() {
|
||||
echo -e "$yes\n$no" | confirm_cmd
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd
|
||||
}
|
||||
|
||||
# Execute Command
|
||||
run_cmd() {
|
||||
selected="$(confirm_exit)"
|
||||
if [[ "$selected" == "$yes" ]]; then
|
||||
if [[ $1 == '--shutdown' ]]; then
|
||||
systemctl poweroff
|
||||
elif [[ $1 == '--reboot' ]]; then
|
||||
systemctl reboot
|
||||
elif [[ $1 == '--suspend' ]]; then
|
||||
mpc -q pause
|
||||
amixer set Master mute
|
||||
systemctl suspend
|
||||
elif [[ $1 == '--logout' ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
|
||||
openbox --exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
|
||||
bspc quit
|
||||
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
|
||||
i3-msg exit
|
||||
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
|
||||
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
|
||||
fi
|
||||
fi
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$shutdown)
|
||||
run_cmd --shutdown
|
||||
;;
|
||||
$reboot)
|
||||
run_cmd --reboot
|
||||
;;
|
||||
$lock)
|
||||
$HOME/.config/awesome/scripts/lock.sh
|
||||
;;
|
||||
$suspend)
|
||||
run_cmd --suspend
|
||||
;;
|
||||
$logout)
|
||||
run_cmd --logout
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user