Files Added
250
README.md
@ -1,2 +1,248 @@
|
|||||||
# rofi
|
---
|
||||||
Rofi Based Custom Applets And Menus.
|
title: Rofi Applets & Menus
|
||||||
|
created: '2020-02-27T07:19:28.048Z'
|
||||||
|
modified: '2020-02-28T10:55:03.989Z'
|
||||||
|
---
|
||||||
|
|
||||||
|
# Rofi Applets & Menus
|
||||||
|
|
||||||
|
<p align="left">
|
||||||
|
<img src="https://img.shields.io/badge/Maintained%3F-Yes-blueviolet?style=flat-square">
|
||||||
|
<img src="https://img.shields.io/github/license/adi1090x/rofi?style=flat-square">
|
||||||
|
<img src="https://img.shields.io/github/stars/adi1090x/rofi?color=red&style=flat-square">
|
||||||
|
<img src="https://img.shields.io/github/forks/adi1090x/rofi?style=flat-square">
|
||||||
|
<img src="https://img.shields.io/github/issues/adi1090x/rofi?style=flat-square">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
A collection of custom *applets* and *menus* made using [rofi](https://github.com/davatorium/rofi) and its dmenu emulation, inspired by [rofi-menus](https://gitlab.com/vahnrr/rofi-menus).
|
||||||
|
|
||||||
|
|Menus|Applets|
|
||||||
|
|-|-|
|
||||||
|
|||
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
| Applets/Menus | Package(s) | Note |
|
||||||
|
|------------|--------------------------------------------------------------|-----------|
|
||||||
|
| Apps | `termite`, `thunar`, `geany`, `firefox`, `lxmusic`, `xfce4-settings-manager` | Or any other softwares you use most, just change this in *~/.config/rofi/scripts/apps.sh* & also in *menu*.|
|
||||||
|
| Backlight | `xbacklight`, `dunst` | Adjust brightness & Notify. |
|
||||||
|
| Battery | `acpi` & `xfce4-power-manager-settings` | To get battery info & launch power manager.|
|
||||||
|
| MPD | `mpd` and `mpc` | `mpc` is a cli based client for `mpd`.|
|
||||||
|
| Network | `nmcli`, `nmtui`, `bmon`, `nm-connection-editor` & `termite` | `Termite` is required to open `nmtui` & `bmon`, or any other terminal you use, just change this in *~/.config/rofi/scripts/network.sh* & also in *menu*. |
|
||||||
|
| Powermenu | `systemctl`, `i3lock` | By default `systemctl` is used for most actions, `i3lock` is used for locking, `openbox --exit` is used to log out. you might want to change these commands to match your setup. |
|
||||||
|
| Quicklinks | `firefox` (or `chromium`) | By default `firefox` is used to open links, you can use any other browser if you want, change accordingly. |
|
||||||
|
| Screenshot | `scrot` `maim` & `viewnior` | `scrot` to take shot & `viewnior` to open it after taking screenshot, you can change to whatever you use. |
|
||||||
|
| Time | - | - |
|
||||||
|
| Volume | `amixer` | To set the volume. |
|
||||||
|
|
||||||
|
### Fonts
|
||||||
|
|
||||||
|
+ **Comfortaa** Used for normal text, ([preview](https://www.dafont.com/comfortaa.font) and [source](https://www.deviantart.com/aajohan/art/Comfortaa-font-105395949)).
|
||||||
|
+ **Hurmit Nerd Font Mono** Used for icons, ([preview](https://app.programmingfonts.org/#hermit) and [source](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hermit)).
|
||||||
|
|
||||||
|
**Warning:** Do not change the `@icon-font` variable to another font, or you will end up messing with all applets/menus layout.
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
+ First of all make sure you have `rofi` installed:
|
||||||
|
``` bash
|
||||||
|
# Arch / Arch-based
|
||||||
|
pacman -S rofi
|
||||||
|
|
||||||
|
# Debian / Ubuntu
|
||||||
|
apt-get install rofi
|
||||||
|
|
||||||
|
# Fedora
|
||||||
|
dnf install rofi
|
||||||
|
```
|
||||||
|
|
||||||
|
+ Then, clone this repository
|
||||||
|
|
||||||
|
```
|
||||||
|
# 1. Go in rofi's config folder
|
||||||
|
cd ~/.config/rofi
|
||||||
|
|
||||||
|
# 2. Clone this repo
|
||||||
|
git clone https://github.com/adi1090x/rofi.git
|
||||||
|
|
||||||
|
# 3. Make sure the scripts are executables
|
||||||
|
cd rofi && chmod +x scripts/*
|
||||||
|
|
||||||
|
# 4. Copy necessary files to the right location
|
||||||
|
cp -r bin scripts themes config.rasi ~/.config/rofi
|
||||||
|
|
||||||
|
# 5. Clean up rofi's config folder
|
||||||
|
cd .. && rm -r rofi
|
||||||
|
|
||||||
|
# 6. Call the scripts (from the scripts folder)
|
||||||
|
cd scripts
|
||||||
|
./backlight.sh
|
||||||
|
|
||||||
|
# (or from anywhere)
|
||||||
|
. ~/.config/rofi/scripts/backlight.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
### Applets
|
||||||
|
|
||||||
|
<!-- <br />-->
|
||||||
|
|
||||||
|
- **Apps:** Shortcuts for most used applications.
|
||||||
|
- **Backlight:** Display and adjust screen brightness.
|
||||||
|
- **Battery:** Display battery percentage & charging-discharging status with dynamic icons.
|
||||||
|
- **MPD:** Control the song play through [mpd](https://github.com/MusicPlayerDaemon/).
|
||||||
|
- **Network:** Display Online-Offline status with dynamic icons.
|
||||||
|
- **Powermenu:** A classic power penu, with Uptime.
|
||||||
|
- **Quicklinks:** Bookmarks shortcuts for most used sites.
|
||||||
|
- **Screenshot:** Take screenshots using [scrot](https://github.com/dreamer/scrot).
|
||||||
|
- **Time:** Display Time, Day & Date.
|
||||||
|
- **Volume:** Display and control volume with dynamic icons for mute status.
|
||||||
|
|
||||||
|
|Powermenu|Time|Network|Battery|
|
||||||
|
|--|--|--|--|
|
||||||
|
|||||
|
||||||
|
|
||||||
|
|Volume|Backlight|Screenshot|MPD|
|
||||||
|
|--|--|--|--|
|
||||||
|
|||||
|
||||||
|
|
||||||
|
|Quicklinks|Apps|
|
||||||
|
|--|--|
|
||||||
|
|||
|
||||||
|
|
||||||
|
### Menus
|
||||||
|
|
||||||
|
<!-- <br />-->
|
||||||
|
|
||||||
|
- **Apps:** Shortcuts for most used applications.
|
||||||
|
- **Backlight:** Display and adjust screen brightness.
|
||||||
|
- **Battery:** Display battery percentage & charging-discharging status with dynamic icons.
|
||||||
|
- **MPD:** Control the song play through [mpd](https://github.com/MusicPlayerDaemon/).
|
||||||
|
- **Network:** Display SSID, IP, Online-Offline status with dynamic icons.
|
||||||
|
- **Powermenu:** A classic power penu, shows Uptime, CPU & Memory usages.
|
||||||
|
- **Quicklinks:** Bookmarks shortcuts for most used sites.
|
||||||
|
- **Screenshot:** Take screenshots using [scrot](https://github.com/dreamer/scrot).
|
||||||
|
- **Time:** Display Time, Day, Month, Date.
|
||||||
|
- **Volume:** Display and control volume with dynamic icons for mute status.
|
||||||
|
|
||||||
|
|Powermenu|Time|Network|Battery|
|
||||||
|
|--|--|--|--|
|
||||||
|
|||||
|
||||||
|
|
||||||
|
|Volume|Backlight|Screenshot|MPD|
|
||||||
|
|--|--|--|--|
|
||||||
|
|||||
|
||||||
|
|
||||||
|
|Quicklinks|Apps|
|
||||||
|
|--|--|
|
||||||
|
|||
|
||||||
|
|
||||||
|
### Colorschemes
|
||||||
|
|
||||||
|
The files are stored in *~/.config/rofi/themes/colorschemes*.
|
||||||
|
To change the active colorscheme simply change the import line in *~/.config/rofi/themes/colors.rasi*.
|
||||||
|
|
||||||
|
If you wish to change the colorscheme for only one specific applet/menu, you can add the line below after `@import "colors.rasi"` to the *~/.config/rofi/themes/<menu-name>.rasi* or *~/.config/rofi/themes/menu/<menu-name>.rasi* file.
|
||||||
|
|
||||||
|
``` css
|
||||||
|
@import "colorschemes/<colorscheme-name>.rasi"
|
||||||
|
```
|
||||||
|
|
||||||
|
|Material Dark|Material Light|
|
||||||
|
|--|--|
|
||||||
|
|||
|
||||||
|
|
||||||
|
|Adapta-Nokto|Adapta|Arc-Dark|Arc|
|
||||||
|
|--|--|--|--|
|
||||||
|
|||||
|
||||||
|
|
||||||
|
|adwaita|gruvbox|dark|armchair|darkpink|
|
||||||
|
|--|--|--|--|--|
|
||||||
|
||||||
|
||||||
|
|
||||||
|
|fresh|inside|party|sirin|minimo|
|
||||||
|
|--|--|--|--|--|
|
||||||
|
||||||
|
||||||
|
|
||||||
|
## Tips
|
||||||
|
|
||||||
|
### Simple way to execute applets/menus
|
||||||
|
|
||||||
|
You can copy links from `bin` folder to your `$PATH` variable so that entering `appsmenu` in the terminal (or executing this command) will summon the appsmenu. you can do it by -
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
mkdir ~/.bin
|
||||||
|
cp -r ~/.config/rofi/bin/* ~/.bin
|
||||||
|
# Add folder to the $PATH variable
|
||||||
|
echo "PATH=$PATH:~/.bin" >> ~/.profile
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note:** after doing this your `$PATH` variable won't be updated, so you will need to log out and then back in to be able to summon the menus this way.
|
||||||
|
|
||||||
|
### Use With polybar
|
||||||
|
|
||||||
|
This is a simple example on how can you use these applets with polybar by adding modules and giving full paths of selected applet like *~/.config/rofi/scripts/backlight.sh* or simply name if you followed the above method -
|
||||||
|
|
||||||
|
```bash
|
||||||
|
[module/backlight]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
|
||||||
|
content-background = ${color.bg}
|
||||||
|
content-foreground = ${color.cyan}
|
||||||
|
|
||||||
|
click-left = ~/.config/rofi/scripts/backlight.sh
|
||||||
|
|
||||||
|
## Or...
|
||||||
|
|
||||||
|
[module/backlight]
|
||||||
|
type = custom/text
|
||||||
|
content =
|
||||||
|
|
||||||
|
content-background = ${color.bg}
|
||||||
|
content-foreground = ${color.green}
|
||||||
|
|
||||||
|
click-left = backlightmenu
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Here's How it looks on polybar with different colorschemes for each applet...
|
||||||
|
|
||||||
|
<p align="left">
|
||||||
|
<img src=images/bar.gif>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
### Use With i3
|
||||||
|
|
||||||
|
You can call the scripts by giving their fulls paths like *~/.config/rofi/scripts/<script-name>.sh* or follow method above to call the menus in one word. Then add these lines to your i3 config file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
set $mod Mod4
|
||||||
|
set $Alt Mod1
|
||||||
|
bindsym $mod+m exec --no-startup-id mpdmenu
|
||||||
|
bindsym $mod+n exec --no-startup-id networkmenu
|
||||||
|
bindsym $mod+p exec --no-startup-id ~/.config/rofi/scripts/powermenu.sh
|
||||||
|
#etc
|
||||||
|
```
|
||||||
|
|
||||||
|
### Use With Openbox
|
||||||
|
|
||||||
|
Same thing can be done with openbox by adding these lines to rc.xml file:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<keybind key="W-m">
|
||||||
|
<action name="Execute">
|
||||||
|
<command>~/.config/rofi/scripts/mpd.sh</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
<!-- Or -->
|
||||||
|
<keybind key="W-m">
|
||||||
|
<action name="Execute">
|
||||||
|
<command>mpdmenu</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
<!-- etc -->
|
||||||
|
```
|
||||||
|
|
||||||
|
### Bottom Line
|
||||||
|
+ PR's, Issues, Contributions are welcome.
|
||||||
|
+ Have Fun!
|
||||||
|
|||||||
1
bin/appsmenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_apps.sh
|
||||||
1
bin/backlight
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/backlight.sh
|
||||||
1
bin/backlightmenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_backlight.sh
|
||||||
1
bin/battery
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/battery.sh
|
||||||
1
bin/batterymenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_battery.sh
|
||||||
1
bin/mpdmenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_mpd.sh
|
||||||
1
bin/network
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/network.sh
|
||||||
1
bin/networkmenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_network.sh
|
||||||
1
bin/powermenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_powermenu.sh
|
||||||
1
bin/quicklinks
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/quicklinks.sh
|
||||||
1
bin/quicklinksmenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_quicklinks.sh
|
||||||
1
bin/screenshot
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/screenshot.sh
|
||||||
1
bin/screenshotmenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_screenshot.sh
|
||||||
1
bin/timemenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_time.sh
|
||||||
53
bin/usedcpu
Executable file
@ -0,0 +1,53 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Source: http://askubuntu.com/a/450136
|
||||||
|
|
||||||
|
# I only slightly modify this script to add an option to show icon, useful for my tint2 executor
|
||||||
|
# Also useful for polybar custom script, dzen2 feeder, conkybar, lemonbar feeder, dunst notify, etc.
|
||||||
|
# 'usedcpu -i' = with icon, 'usedcpu' = text only
|
||||||
|
# Cheers!
|
||||||
|
# Addy
|
||||||
|
|
||||||
|
PREV_TOTAL=0
|
||||||
|
PREV_IDLE=0
|
||||||
|
|
||||||
|
cpuFile="/tmp/.cpu"
|
||||||
|
|
||||||
|
if [[ -f "${cpuFile}" ]]; then
|
||||||
|
fileCont=$(cat "${cpuFile}")
|
||||||
|
PREV_TOTAL=$(echo "${fileCont}" | head -n 1)
|
||||||
|
PREV_IDLE=$(echo "${fileCont}" | tail -n 1)
|
||||||
|
fi
|
||||||
|
|
||||||
|
CPU=(`cat /proc/stat | grep '^cpu '`) # Get the total CPU statistics.
|
||||||
|
unset CPU[0] # Discard the "cpu" prefix.
|
||||||
|
IDLE=${CPU[4]} # Get the idle CPU time.
|
||||||
|
|
||||||
|
# Calculate the total CPU time.
|
||||||
|
TOTAL=0
|
||||||
|
|
||||||
|
for VALUE in "${CPU[@]:0:4}"; do
|
||||||
|
let "TOTAL=$TOTAL+$VALUE"
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ "${PREV_TOTAL}" != "" ]] && [[ "${PREV_IDLE}" != "" ]]; then
|
||||||
|
# Calculate the CPU usage since we last checked.
|
||||||
|
let "DIFF_IDLE=$IDLE-$PREV_IDLE"
|
||||||
|
let "DIFF_TOTAL=$TOTAL-$PREV_TOTAL"
|
||||||
|
let "DIFF_USAGE=(1000*($DIFF_TOTAL-$DIFF_IDLE)/$DIFF_TOTAL+5)/10"
|
||||||
|
if [[ $1 = "-i" ]]; then
|
||||||
|
echo " ${DIFF_USAGE}%"
|
||||||
|
else
|
||||||
|
echo "${DIFF_USAGE}%"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ $1 = "-i" ]]; then
|
||||||
|
echo " ?"
|
||||||
|
else
|
||||||
|
echo "?"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remember the total and idle CPU times for the next check.
|
||||||
|
echo "${TOTAL}" > "${cpuFile}"
|
||||||
|
echo "${IDLE}" >> "${cpuFile}"
|
||||||
34
bin/usedram
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# this script is taken from screenfetch
|
||||||
|
# I only slightly modify this script to add an option to show icon, useful for my tint2 executor
|
||||||
|
# 'usedram -i' = with icon, 'usedram' = text only
|
||||||
|
# 'usedram -fi' = full summary with icon, 'usedram' = full summary text only
|
||||||
|
# Cheers!
|
||||||
|
# Addy
|
||||||
|
|
||||||
|
mem_info=$(</proc/meminfo)
|
||||||
|
mem_info=$(echo $(echo $(mem_info=${mem_info// /}; echo ${mem_info//kB/})))
|
||||||
|
for m in $mem_info; do
|
||||||
|
case ${m//:*} in
|
||||||
|
"MemTotal") usedmem=$((usedmem+=${m//*:})); totalmem=${m//*:} ;;
|
||||||
|
"ShMem") usedmem=$((usedmem+=${m//*:})) ;;
|
||||||
|
"MemFree"|"Buffers"|"Cached"|"SReclaimable") usedmem=$((usedmem-=${m//*:})) ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
usedmem=$((usedmem / 1024))
|
||||||
|
totalmem=$((totalmem / 1024))
|
||||||
|
mem="${usedmem}MB / ${totalmem}MB"
|
||||||
|
|
||||||
|
## Complete summary
|
||||||
|
if [[ $1 = "-fi" ]]; then
|
||||||
|
echo " $mem"
|
||||||
|
elif [[ $1 = "-f" ]]; then
|
||||||
|
echo "$mem"
|
||||||
|
|
||||||
|
## Only used RAM
|
||||||
|
elif [[ $1 = "-i" ]]; then
|
||||||
|
echo " $usedmem MB"
|
||||||
|
else
|
||||||
|
echo "$usedmem MB"
|
||||||
|
fi
|
||||||
1
bin/volume
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/volume.sh
|
||||||
1
bin/volumemenu
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/aditya/.config/rofi/scripts/menu_volume.sh
|
||||||
9
config.rasi
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
/** Configured For Applets **/
|
||||||
|
|
||||||
|
configuration {
|
||||||
|
show-icons: true;
|
||||||
|
icon-theme: "Papirus";
|
||||||
|
location: 5;
|
||||||
|
yoffset: -50;
|
||||||
|
xoffset: -20;
|
||||||
|
}
|
||||||
BIN
images/applets/0.gif
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
images/applets/1.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
images/applets/10.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
images/applets/2.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
images/applets/3.gif
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
BIN
images/applets/4.gif
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
images/applets/5.gif
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
images/applets/6.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
images/applets/7.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
images/applets/8.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
images/applets/9.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
images/bar.gif
Normal file
|
After Width: | Height: | Size: 834 KiB |
BIN
images/colors/1.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
images/colors/10.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
images/colors/11.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
images/colors/12.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
images/colors/13.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
images/colors/14.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
images/colors/2.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
images/colors/3.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
images/colors/4.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
images/colors/5.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
images/colors/6.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
images/colors/7.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
images/colors/8.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
images/colors/9.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
images/colors/md.gif
Normal file
|
After Width: | Height: | Size: 144 KiB |
BIN
images/colors/ml.gif
Normal file
|
After Width: | Height: | Size: 141 KiB |
BIN
images/menus/0.gif
Normal file
|
After Width: | Height: | Size: 2.1 MiB |
BIN
images/menus/1.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
images/menus/10.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
images/menus/2.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
images/menus/3.gif
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
images/menus/4.gif
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
images/menus/5.gif
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
images/menus/6.gif
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
images/menus/7.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
images/menus/8.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
images/menus/9.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
42
scripts/apps.sh
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## browser : @adi1090x
|
||||||
|
## music : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/apps.rasi"
|
||||||
|
|
||||||
|
# Links
|
||||||
|
terminal=""
|
||||||
|
files="ﱮ"
|
||||||
|
editor=""
|
||||||
|
browser=""
|
||||||
|
music=""
|
||||||
|
settings="漣"
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$terminal\n$files\n$editor\n$browser\n$music\n$settings"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "Most Used" -dmenu -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$terminal)
|
||||||
|
termite &
|
||||||
|
;;
|
||||||
|
$files)
|
||||||
|
thunar &
|
||||||
|
;;
|
||||||
|
$editor)
|
||||||
|
geany &
|
||||||
|
;;
|
||||||
|
$browser)
|
||||||
|
firefox &
|
||||||
|
;;
|
||||||
|
$music)
|
||||||
|
lxmusic &
|
||||||
|
;;
|
||||||
|
$settings)
|
||||||
|
xfce4-settings-manager &
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
44
scripts/backlight.sh
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/backlight.rasi"
|
||||||
|
|
||||||
|
## Get Brightness
|
||||||
|
VAR="$(xbacklight -get)"
|
||||||
|
BLIGHT="$(printf "%.0f\n" "$VAR")"
|
||||||
|
|
||||||
|
if [[ $BLIGHT -ge 1 ]] && [[ $BLIGHT -le 29 ]]; then
|
||||||
|
MSG="Low"
|
||||||
|
elif [[ $BLIGHT -ge 30 ]] && [[ $BLIGHT -le 49 ]]; then
|
||||||
|
MSG="Optimal"
|
||||||
|
elif [[ $BLIGHT -ge 50 ]] && [[ $BLIGHT -le 69 ]]; then
|
||||||
|
MSG="High"
|
||||||
|
elif [[ $BLIGHT -ge 70 ]] && [[ $BLIGHT -le 99 ]]; then
|
||||||
|
MSG="Too Much"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
ICON_UP=""
|
||||||
|
ICON_DOWN=""
|
||||||
|
ICON_OPT=""
|
||||||
|
|
||||||
|
options="$ICON_UP\n$ICON_OPT\n$ICON_DOWN"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$BLIGHT%" -dmenu -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$ICON_UP)
|
||||||
|
xbacklight -inc 10 && notify-send -u low -t 1500 "Brightness Up $ICON_UP"
|
||||||
|
;;
|
||||||
|
$ICON_DOWN)
|
||||||
|
xbacklight -dec 10 && notify-send -u low -t 1500 "Brightness Down $ICON_DOWN"
|
||||||
|
;;
|
||||||
|
$ICON_OPT)
|
||||||
|
xbacklight -set 35 && notify-send -u low -t 1500 "Optimal Brightness $ICON_OPT"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
59
scripts/battery.sh
Executable file
@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/battery.rasi"
|
||||||
|
|
||||||
|
## Get data
|
||||||
|
|
||||||
|
BATTERY="$(acpi | awk -F ' ' '{print $4}' | tr -d \%,)"
|
||||||
|
CHARGE="$(acpi | awk -F ' ' '{print $3}' | tr -d \,)"
|
||||||
|
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
if [[ $CHARGE = *"Charging"* ]]; then
|
||||||
|
active="-a 1"
|
||||||
|
ICON_CHRG=""
|
||||||
|
MSG=$CHARGE
|
||||||
|
else
|
||||||
|
urgent="-u 1"
|
||||||
|
ICON_CHRG="ﮤ"
|
||||||
|
MSG="Discharging"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Discharging
|
||||||
|
#if [[ $CHARGE -eq 1 ]] && [[ $BATTERY -eq 100 ]]; then
|
||||||
|
# ICON_DISCHRG=""
|
||||||
|
if [[ $BATTERY -ge 5 ]] && [[ $BATTERY -le 19 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 20 ]] && [[ $BATTERY -le 39 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 40 ]] && [[ $BATTERY -le 59 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 60 ]] && [[ $BATTERY -le 79 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 80 ]] && [[ $BATTERY -le 100 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
ICON_PMGR=""
|
||||||
|
|
||||||
|
options="$ICON_DISCHRG\n$ICON_CHRG\n$ICON_PMGR"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$BATTERY%" -dmenu $active $urgent -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$ICON_CHRG)
|
||||||
|
;;
|
||||||
|
$ICON_DISCHRG)
|
||||||
|
;;
|
||||||
|
$ICON_PMGR)
|
||||||
|
xfce4-power-manager-settings
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
42
scripts/menu_apps.sh
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## browser : @adi1090x
|
||||||
|
## music : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/apps.rasi"
|
||||||
|
|
||||||
|
# Links
|
||||||
|
terminal=""
|
||||||
|
files="ﱮ"
|
||||||
|
editor=""
|
||||||
|
browser=""
|
||||||
|
music=""
|
||||||
|
settings="漣"
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$terminal\n$files\n$editor\n$browser\n$music\n$settings"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "Most Used" -dmenu -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$terminal)
|
||||||
|
termite &
|
||||||
|
;;
|
||||||
|
$files)
|
||||||
|
thunar &
|
||||||
|
;;
|
||||||
|
$editor)
|
||||||
|
geany &
|
||||||
|
;;
|
||||||
|
$browser)
|
||||||
|
firefox &
|
||||||
|
;;
|
||||||
|
$music)
|
||||||
|
lxmusic &
|
||||||
|
;;
|
||||||
|
$settings)
|
||||||
|
xfce4-settings-manager &
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
44
scripts/menu_backlight.sh
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/backlight.rasi"
|
||||||
|
|
||||||
|
## Get Brightness
|
||||||
|
VAR="$(xbacklight -get)"
|
||||||
|
BLIGHT="$(printf "%.0f\n" "$VAR")"
|
||||||
|
|
||||||
|
if [[ $BLIGHT -ge 1 ]] && [[ $BLIGHT -le 29 ]]; then
|
||||||
|
MSG="Low"
|
||||||
|
elif [[ $BLIGHT -ge 30 ]] && [[ $BLIGHT -le 49 ]]; then
|
||||||
|
MSG="Optimal"
|
||||||
|
elif [[ $BLIGHT -ge 50 ]] && [[ $BLIGHT -le 69 ]]; then
|
||||||
|
MSG="High"
|
||||||
|
elif [[ $BLIGHT -ge 70 ]] && [[ $BLIGHT -le 99 ]]; then
|
||||||
|
MSG="Too Much"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
ICON_UP=""
|
||||||
|
ICON_DOWN=""
|
||||||
|
ICON_OPT=""
|
||||||
|
|
||||||
|
options="$ICON_UP\n$ICON_OPT\n$ICON_DOWN"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$BLIGHT% : $MSG" -dmenu -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$ICON_UP)
|
||||||
|
xbacklight -inc 10 && notify-send -u low -t 1500 "Brightness Up $ICON_UP"
|
||||||
|
;;
|
||||||
|
$ICON_DOWN)
|
||||||
|
xbacklight -dec 10 && notify-send -u low -t 1500 "Brightness Down $ICON_DOWN"
|
||||||
|
;;
|
||||||
|
$ICON_OPT)
|
||||||
|
xbacklight -set 35 && notify-send -u low -t 1500 "Optimal Brightness $ICON_OPT"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
58
scripts/menu_battery.sh
Executable file
@ -0,0 +1,58 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/battery.rasi"
|
||||||
|
|
||||||
|
## Get data
|
||||||
|
BATTERY="$(acpi | awk -F ' ' '{print $4}' | tr -d \%,)"
|
||||||
|
CHARGE="$(acpi | awk -F ' ' '{print $3}' | tr -d \,)"
|
||||||
|
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
if [[ $CHARGE = *"Charging"* ]]; then
|
||||||
|
active="-a 1"
|
||||||
|
ICON_CHRG=""
|
||||||
|
MSG=$CHARGE
|
||||||
|
else
|
||||||
|
urgent="-u 1"
|
||||||
|
ICON_CHRG="ﮤ"
|
||||||
|
MSG="Discharging"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Discharging
|
||||||
|
#if [[ $CHARGE -eq 1 ]] && [[ $BATTERY -eq 100 ]]; then
|
||||||
|
# ICON_DISCHRG=""
|
||||||
|
if [[ $BATTERY -ge 5 ]] && [[ $BATTERY -le 19 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 20 ]] && [[ $BATTERY -le 39 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 40 ]] && [[ $BATTERY -le 59 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 60 ]] && [[ $BATTERY -le 79 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
elif [[ $BATTERY -ge 80 ]] && [[ $BATTERY -le 100 ]]; then
|
||||||
|
ICON_DISCHRG=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
ICON_PMGR=""
|
||||||
|
|
||||||
|
options="$ICON_DISCHRG\n$ICON_CHRG\n$ICON_PMGR"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$MSG : $BATTERY%" -dmenu $active $urgent -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$ICON_CHRG)
|
||||||
|
;;
|
||||||
|
$ICON_DISCHRG)
|
||||||
|
;;
|
||||||
|
$ICON_PMGR)
|
||||||
|
xfce4-power-manager-settings
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
70
scripts/menu_mpd.sh
Executable file
@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/mpd.rasi"
|
||||||
|
|
||||||
|
# Gets the current status of mpd (for us to parse it later on)
|
||||||
|
status="$(mpc status)"
|
||||||
|
# Defines the Play / Pause option content
|
||||||
|
if [[ $status == *"[playing]"* ]]; then
|
||||||
|
play_pause=""
|
||||||
|
else
|
||||||
|
play_pause=""
|
||||||
|
fi
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
# Display if repeat mode is on / off
|
||||||
|
tog_repeat="凌"
|
||||||
|
if [[ $status == *"repeat: on"* ]]; then
|
||||||
|
active="-a 4"
|
||||||
|
elif [[ $status == *"repeat: off"* ]]; then
|
||||||
|
urgent="-u 4"
|
||||||
|
else
|
||||||
|
tog_repeat=" Parsing error"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Display if random mode is on / off
|
||||||
|
tog_random=""
|
||||||
|
if [[ $status == *"random: on"* ]]; then
|
||||||
|
[ -n "$active" ] && active+=",5" || active="-a 5"
|
||||||
|
elif [[ $status == *"random: off"* ]]; then
|
||||||
|
[ -n "$urgent" ] && urgent+=",5" || urgent="-u 5"
|
||||||
|
else
|
||||||
|
tog_random=" Parsing error"
|
||||||
|
fi
|
||||||
|
stop=""
|
||||||
|
next=""
|
||||||
|
previous=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$previous\n$play_pause\n$stop\n$next\n$tog_repeat\n$tog_random"
|
||||||
|
|
||||||
|
# Get the current playing song
|
||||||
|
current=$(mpc current)
|
||||||
|
# If mpd isn't running it will return an empty string, we don't want to display that
|
||||||
|
if [[ -z "$current" ]]; then
|
||||||
|
current="-"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Spawn the mpd menu with the "Play / Pause" entry selected by default
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p " $current" -dmenu $active $urgent -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$previous)
|
||||||
|
mpc -q prev && notify-send -u low -t 1800 " $(mpc current)"
|
||||||
|
;;
|
||||||
|
$play_pause)
|
||||||
|
mpc -q toggle && notify-send -u low -t 1800 " $(mpc current)"
|
||||||
|
;;
|
||||||
|
$stop)
|
||||||
|
mpc -q stop
|
||||||
|
;;
|
||||||
|
$next)
|
||||||
|
mpc -q next && notify-send -u low -t 1800 " $(mpc current)"
|
||||||
|
;;
|
||||||
|
$tog_repeat)
|
||||||
|
mpc -q repeat
|
||||||
|
;;
|
||||||
|
$tog_random)
|
||||||
|
mpc -q random
|
||||||
|
;;
|
||||||
|
esac
|
||||||
65
scripts/menu_network.sh
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/network.rasi"
|
||||||
|
|
||||||
|
## Get info
|
||||||
|
IFACE="$(nmcli | grep -i interface | awk '/interface/ {print $2}')"
|
||||||
|
#SSID="$(iwgetid -r)"
|
||||||
|
#LIP="$(nmcli | grep -i server | awk '/server/ {print $2}')"
|
||||||
|
#PIP="$(dig +short myip.opendns.com @resolver1.opendns.com )"
|
||||||
|
STATUS="$(nmcli radio wifi)"
|
||||||
|
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
if (ping -c 1 archlinux.org || ping -c 1 google.com || ping -c 1 bitbucket.org || ping -c 1 github.com || ping -c 1 sourceforge.net) &>/dev/null; then
|
||||||
|
if [[ $STATUS == *"enable"* ]]; then
|
||||||
|
if [[ $IFACE == e* ]]; then
|
||||||
|
connected=""
|
||||||
|
else
|
||||||
|
connected="直"
|
||||||
|
fi
|
||||||
|
active="-a 0"
|
||||||
|
SSID=" $(iwgetid -r)"
|
||||||
|
PIP="$(dig +short myip.opendns.com @resolver1.opendns.com )"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
urgent="-u 0"
|
||||||
|
SSID="Disconnected"
|
||||||
|
PIP="Not Available"
|
||||||
|
connected="睊"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
bmon="龍"
|
||||||
|
launch_cli=""
|
||||||
|
launch="歷"
|
||||||
|
|
||||||
|
options="$connected\n$bmon\n$launch_cli\n$launch"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$SSID : $PIP" -dmenu $active $urgent -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$connected)
|
||||||
|
if [[ $STATUS == *"enable"* ]]; then
|
||||||
|
nmcli radio wifi off
|
||||||
|
else
|
||||||
|
nmcli radio wifi on
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
$bmon)
|
||||||
|
termite -e bmon
|
||||||
|
;;
|
||||||
|
$launch_cli)
|
||||||
|
termite -e nmtui
|
||||||
|
;;
|
||||||
|
$launch)
|
||||||
|
nm-connection-editor
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
44
scripts/menu_powermenu.sh
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/powermenu.rasi"
|
||||||
|
uptime=$(uptime -p | sed -e 's/up //g')
|
||||||
|
#mem=$( free -h | grep -i mem | awk -F ' ' '{print $3}')
|
||||||
|
cpu=$(sh ~/.config/rofi/bin/usedcpu)
|
||||||
|
memory=$(sh ~/.config/rofi/bin/usedram)
|
||||||
|
|
||||||
|
# Options
|
||||||
|
shutdown="襤"
|
||||||
|
reboot="ﰇ"
|
||||||
|
lock=""
|
||||||
|
suspend="鈴"
|
||||||
|
logout=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$shutdown\n$reboot\n$lock\n$suspend\n$logout"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "祥 $uptime $cpu $memory " -dmenu -selected-row 2)"
|
||||||
|
case $chosen in
|
||||||
|
$shutdown)
|
||||||
|
systemctl poweroff
|
||||||
|
;;
|
||||||
|
$reboot)
|
||||||
|
systemctl reboot
|
||||||
|
;;
|
||||||
|
$lock)
|
||||||
|
i3lock
|
||||||
|
;;
|
||||||
|
$suspend)
|
||||||
|
mpc -q pause
|
||||||
|
amixer set Master mute
|
||||||
|
systemctl suspend
|
||||||
|
;;
|
||||||
|
$logout)
|
||||||
|
openbox --exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
42
scripts/menu_quicklinks.sh
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/quicklinks.rasi"
|
||||||
|
|
||||||
|
# Links
|
||||||
|
google=""
|
||||||
|
facebook=""
|
||||||
|
twitter=""
|
||||||
|
github=""
|
||||||
|
reddit=""
|
||||||
|
youtube=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$google\n$facebook\n$twitter\n$github\n$reddit\n$youtube"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "Open In : Firefox" -dmenu -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$google)
|
||||||
|
firefox --new-tab https://www.google.com
|
||||||
|
;;
|
||||||
|
$facebook)
|
||||||
|
firefox --new-tab https://www.facebook.com
|
||||||
|
;;
|
||||||
|
$twitter)
|
||||||
|
firefox --new-tab https://www.twitter.com
|
||||||
|
;;
|
||||||
|
$github)
|
||||||
|
firefox --new-tab https://www.github.com
|
||||||
|
;;
|
||||||
|
$reddit)
|
||||||
|
firefox --new-tab https://www.reddit.com
|
||||||
|
;;
|
||||||
|
$youtube)
|
||||||
|
firefox --new-tab https://www.youtube.com
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
30
scripts/menu_screenshot.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/screenshot.rasi"
|
||||||
|
|
||||||
|
# Options
|
||||||
|
screen=""
|
||||||
|
area=""
|
||||||
|
window=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$screen\n$area\n$window"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p 'scrot' -dmenu -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$screen)
|
||||||
|
sleep 1; scrot 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
|
||||||
|
;;
|
||||||
|
$area)
|
||||||
|
scrot -s 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
|
||||||
|
;;
|
||||||
|
$window)
|
||||||
|
sleep 1; scrot -u 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
21
scripts/menu_time.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/time.rasi"
|
||||||
|
|
||||||
|
## Get time and date
|
||||||
|
TIME="$(date +"%I:%M %p")"
|
||||||
|
DN=$(date +"%A")
|
||||||
|
MN=$(date +"%B")
|
||||||
|
DAY="$(date +"%d")"
|
||||||
|
MONTH="$(date +"%m")"
|
||||||
|
YEAR="$(date +"%Y")"
|
||||||
|
|
||||||
|
options="$DAY\n$MONTH\n$YEAR"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p " at $TIME on $DN in $MN" -dmenu -selected-row 1)"
|
||||||
49
scripts/menu_volume.sh
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/menu/volume.rasi"
|
||||||
|
|
||||||
|
## Get Volume
|
||||||
|
#VOLUME=$(amixer get Master | tail -n 1 | awk -F ' ' '{print $5}' | tr -d '[]%')
|
||||||
|
MUTE=$(amixer get Master | tail -n 1 | awk -F ' ' '{print $6}' | tr -d '[]%')
|
||||||
|
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
if [[ $MUTE == *"off"* ]]; then
|
||||||
|
active="-a 1"
|
||||||
|
else
|
||||||
|
urgent="-u 1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $MUTE == *"on"* ]]; then
|
||||||
|
VOLUME="$(amixer get Master | tail -n 1 | awk -F ' ' '{print $5}' | tr -d '[]%')%"
|
||||||
|
else
|
||||||
|
VOLUME="Muted"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
ICON_UP="ﱛ"
|
||||||
|
ICON_DOWN="ﱜ"
|
||||||
|
ICON_MUTED="ﱝ"
|
||||||
|
|
||||||
|
options="$ICON_UP\n$ICON_MUTED\n$ICON_DOWN"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$VOLUME" -dmenu $active $urgent -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$ICON_UP)
|
||||||
|
amixer -Mq set Master,0 5%+ unmute && notify-send -u low -t 1500 "Volume Up $ICON_UP"
|
||||||
|
;;
|
||||||
|
$ICON_DOWN)
|
||||||
|
amixer -Mq set Master,0 5%- unmute && notify-send -u low -t 1500 "Volume Down $ICON_DOWN"
|
||||||
|
;;
|
||||||
|
$ICON_MUTED)
|
||||||
|
amixer -q set Master toggle
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
70
scripts/mpd.sh
Executable file
@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/mpd.rasi"
|
||||||
|
|
||||||
|
# Gets the current status of mpd (for us to parse it later on)
|
||||||
|
status="$(mpc status)"
|
||||||
|
# Defines the Play / Pause option content
|
||||||
|
if [[ $status == *"[playing]"* ]]; then
|
||||||
|
play_pause=""
|
||||||
|
else
|
||||||
|
play_pause=""
|
||||||
|
fi
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
# Display if repeat mode is on / off
|
||||||
|
tog_repeat="凌"
|
||||||
|
if [[ $status == *"repeat: on"* ]]; then
|
||||||
|
active="-a 4"
|
||||||
|
elif [[ $status == *"repeat: off"* ]]; then
|
||||||
|
urgent="-u 4"
|
||||||
|
else
|
||||||
|
tog_repeat=" Parsing error"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Display if random mode is on / off
|
||||||
|
tog_random=""
|
||||||
|
if [[ $status == *"random: on"* ]]; then
|
||||||
|
[ -n "$active" ] && active+=",5" || active="-a 5"
|
||||||
|
elif [[ $status == *"random: off"* ]]; then
|
||||||
|
[ -n "$urgent" ] && urgent+=",5" || urgent="-u 5"
|
||||||
|
else
|
||||||
|
tog_random=" Parsing error"
|
||||||
|
fi
|
||||||
|
stop=""
|
||||||
|
next=""
|
||||||
|
previous=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$previous\n$play_pause\n$stop\n$next\n$tog_repeat\n$tog_random"
|
||||||
|
|
||||||
|
# Get the current playing song
|
||||||
|
current=$(mpc -f %title% current)
|
||||||
|
# If mpd isn't running it will return an empty string, we don't want to display that
|
||||||
|
if [[ -z "$current" ]]; then
|
||||||
|
current="-"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Spawn the mpd menu with the "Play / Pause" entry selected by default
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p " $current" -dmenu $active $urgent -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$previous)
|
||||||
|
mpc -q prev && notify-send -u low -t 1800 " $(mpc current)"
|
||||||
|
;;
|
||||||
|
$play_pause)
|
||||||
|
mpc -q toggle && notify-send -u low -t 1800 " $(mpc current)"
|
||||||
|
;;
|
||||||
|
$stop)
|
||||||
|
mpc -q stop
|
||||||
|
;;
|
||||||
|
$next)
|
||||||
|
mpc -q next && notify-send -u low -t 1800 " $(mpc current)"
|
||||||
|
;;
|
||||||
|
$tog_repeat)
|
||||||
|
mpc -q repeat
|
||||||
|
;;
|
||||||
|
$tog_random)
|
||||||
|
mpc -q random
|
||||||
|
;;
|
||||||
|
esac
|
||||||
65
scripts/network.sh
Executable file
@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/network.rasi"
|
||||||
|
|
||||||
|
## Get info
|
||||||
|
IFACE="$(nmcli | grep -i interface | awk '/interface/ {print $2}')"
|
||||||
|
#SSID="$(iwgetid -r)"
|
||||||
|
#LIP="$(nmcli | grep -i server | awk '/server/ {print $2}')"
|
||||||
|
#PIP="$(dig +short myip.opendns.com @resolver1.opendns.com )"
|
||||||
|
STATUS="$(nmcli radio wifi)"
|
||||||
|
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
if (ping -c 1 archlinux.org || ping -c 1 google.com || ping -c 1 bitbucket.org || ping -c 1 github.com || ping -c 1 sourceforge.net) &>/dev/null; then
|
||||||
|
if [[ $STATUS == *"enable"* ]]; then
|
||||||
|
if [[ $IFACE == e* ]]; then
|
||||||
|
connected=""
|
||||||
|
else
|
||||||
|
connected="直"
|
||||||
|
fi
|
||||||
|
active="-a 0"
|
||||||
|
MSG=" Online"
|
||||||
|
PIP="$(dig +short myip.opendns.com @resolver1.opendns.com )"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
urgent="-u 0"
|
||||||
|
MSG="Offline"
|
||||||
|
PIP="Not Available"
|
||||||
|
connected="睊"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
bmon="龍"
|
||||||
|
launch_cli=""
|
||||||
|
launch="歷"
|
||||||
|
|
||||||
|
options="$connected\n$bmon\n$launch_cli\n$launch"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$MSG" -dmenu $active $urgent -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$connected)
|
||||||
|
if [[ $STATUS == *"enable"* ]]; then
|
||||||
|
nmcli radio wifi off
|
||||||
|
else
|
||||||
|
nmcli radio wifi on
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
$bmon)
|
||||||
|
termite -e bmon
|
||||||
|
;;
|
||||||
|
$launch_cli)
|
||||||
|
termite -e nmtui
|
||||||
|
;;
|
||||||
|
$launch)
|
||||||
|
nm-connection-editor
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
41
scripts/powermenu.sh
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/powermenu.rasi"
|
||||||
|
uptime=$(uptime -p | sed -e 's/up //g')
|
||||||
|
|
||||||
|
# Options
|
||||||
|
shutdown="襤"
|
||||||
|
reboot="ﰇ"
|
||||||
|
lock=""
|
||||||
|
suspend="鈴"
|
||||||
|
logout=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$shutdown\n$reboot\n$lock\n$suspend\n$logout"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "UP - $uptime" -dmenu -selected-row 2)"
|
||||||
|
case $chosen in
|
||||||
|
$shutdown)
|
||||||
|
systemctl poweroff
|
||||||
|
;;
|
||||||
|
$reboot)
|
||||||
|
systemctl reboot
|
||||||
|
;;
|
||||||
|
$lock)
|
||||||
|
i3lock
|
||||||
|
;;
|
||||||
|
$suspend)
|
||||||
|
mpc -q pause
|
||||||
|
amixer set Master mute
|
||||||
|
systemctl suspend
|
||||||
|
;;
|
||||||
|
$logout)
|
||||||
|
openbox --exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
42
scripts/quicklinks.sh
Executable file
@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/quicklinks.rasi"
|
||||||
|
|
||||||
|
# Links
|
||||||
|
google=""
|
||||||
|
facebook=""
|
||||||
|
twitter=""
|
||||||
|
github=""
|
||||||
|
reddit=""
|
||||||
|
youtube=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$google\n$facebook\n$twitter\n$github\n$reddit\n$youtube"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "Open In : Firefox" -dmenu -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$google)
|
||||||
|
firefox --new-tab https://www.google.com
|
||||||
|
;;
|
||||||
|
$facebook)
|
||||||
|
firefox --new-tab https://www.facebook.com
|
||||||
|
;;
|
||||||
|
$twitter)
|
||||||
|
firefox --new-tab https://www.twitter.com
|
||||||
|
;;
|
||||||
|
$github)
|
||||||
|
firefox --new-tab https://www.github.com
|
||||||
|
;;
|
||||||
|
$reddit)
|
||||||
|
firefox --new-tab https://www.reddit.com
|
||||||
|
;;
|
||||||
|
$youtube)
|
||||||
|
firefox --new-tab https://www.youtube.com
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
30
scripts/screenshot.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/screenshot.rasi"
|
||||||
|
|
||||||
|
# Options
|
||||||
|
screen=""
|
||||||
|
area=""
|
||||||
|
window=""
|
||||||
|
|
||||||
|
# Variable passed to rofi
|
||||||
|
options="$screen\n$area\n$window"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p '' -dmenu -selected-row 1)"
|
||||||
|
case $chosen in
|
||||||
|
$screen)
|
||||||
|
sleep 1; scrot 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
|
||||||
|
;;
|
||||||
|
$area)
|
||||||
|
scrot -s 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
|
||||||
|
;;
|
||||||
|
$window)
|
||||||
|
sleep 1; scrot -u 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
19
scripts/time.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/time.rasi"
|
||||||
|
|
||||||
|
## Get time and date
|
||||||
|
TIME="$(date +"%A, %I:%M %p")"
|
||||||
|
DAY="$(date +"%d")"
|
||||||
|
MONTH="$(date +"%m")"
|
||||||
|
YEAR="$(date +"%Y")"
|
||||||
|
|
||||||
|
options="$DAY\n$MONTH\n$YEAR"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p " $TIME" -dmenu -selected-row 1)"
|
||||||
55
scripts/volume.sh
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Author : Aditya Shakya (adi1090x)
|
||||||
|
## Mail : adi1090x@gmail.com
|
||||||
|
## Github : @adi1090x
|
||||||
|
## Reddit : @adi1090x
|
||||||
|
|
||||||
|
rofi_command="rofi -theme themes/volume.rasi"
|
||||||
|
|
||||||
|
## Get Volume
|
||||||
|
#VOLUME=$(amixer get Master | tail -n 1 | awk -F ' ' '{print $5}' | tr -d '[]%')
|
||||||
|
MUTE=$(amixer get Master | tail -n 1 | awk -F ' ' '{print $6}' | tr -d '[]%')
|
||||||
|
|
||||||
|
active=""
|
||||||
|
urgent=""
|
||||||
|
|
||||||
|
if [[ $MUTE == *"off"* ]]; then
|
||||||
|
active="-a 1"
|
||||||
|
else
|
||||||
|
urgent="-u 1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $MUTE == *"off"* ]]; then
|
||||||
|
active="-a 1"
|
||||||
|
else
|
||||||
|
urgent="-u 1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $MUTE == *"on"* ]]; then
|
||||||
|
VOLUME="$(amixer get Master | tail -n 1 | awk -F ' ' '{print $5}' | tr -d '[]%')%"
|
||||||
|
else
|
||||||
|
VOLUME="Mu..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
ICON_UP="ﱛ"
|
||||||
|
ICON_DOWN="ﱜ"
|
||||||
|
ICON_MUTED="ﱝ"
|
||||||
|
|
||||||
|
options="$ICON_UP\n$ICON_MUTED\n$ICON_DOWN"
|
||||||
|
|
||||||
|
## Main
|
||||||
|
chosen="$(echo -e "$options" | $rofi_command -p "$VOLUME" -dmenu $active $urgent -selected-row 0)"
|
||||||
|
case $chosen in
|
||||||
|
$ICON_UP)
|
||||||
|
amixer -Mq set Master,0 5%+ unmute && notify-send -u low -t 1500 "Volume Up $ICON_UP"
|
||||||
|
;;
|
||||||
|
$ICON_DOWN)
|
||||||
|
amixer -Mq set Master,0 5%- unmute && notify-send -u low -t 1500 "Volume Down $ICON_DOWN"
|
||||||
|
;;
|
||||||
|
$ICON_MUTED)
|
||||||
|
amixer -q set Master toggle
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
124
themes/apps.rasi
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
/*
|
||||||
|
*
|
||||||
|
* Author : Aditya Shakya (adi1090x)
|
||||||
|
* Mail : adi1090x@gmail.com
|
||||||
|
* Github : @adi1090x
|
||||||
|
* Reddit : @adi1090x
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import "colors.rasi"
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
/* General */
|
||||||
|
text-font: "Comfortaa 12";
|
||||||
|
icon-font: "Hurmit Nerd Font Mono 32";
|
||||||
|
icon-font-small: "Hurmit Nerd Font Mono 24";
|
||||||
|
|
||||||
|
option-6-listview-spacing: 10px;
|
||||||
|
|
||||||
|
menu-window-padding: 5px 15px;
|
||||||
|
menu-inputbar-margin: 10px 0px;
|
||||||
|
menu-prompt-padding: 10px 20px 10px 20px;
|
||||||
|
menu-prompt-margin: 0px 0px 0px -2px;
|
||||||
|
menu-element-border: 10px;
|
||||||
|
menu-element-padding: 3px 8px -1px -40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
#window {
|
||||||
|
width: 34.5%;
|
||||||
|
height: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
font: @icon-font;
|
||||||
|
}
|
||||||
|
|
||||||
|
#horibox {
|
||||||
|
children: [ listview ];
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
layout: horizontal;
|
||||||
|
}
|
||||||
|
#element {
|
||||||
|
padding: @option-element-padding;
|
||||||
|
background-color: @background-light;
|
||||||
|
}
|
||||||
|
#element.selected {
|
||||||
|
background-color: @accent;
|
||||||
|
text-color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
font: @text-font;
|
||||||
|
}
|
||||||
|
#window {
|
||||||
|
padding: @menu-window-padding;
|
||||||
|
children: [ inputbar, horibox ];
|
||||||
|
}
|
||||||
|
#inputbar {
|
||||||
|
children: [ textbox-prompt-colon, prompt ];
|
||||||
|
margin: @menu-inputbar-margin;
|
||||||
|
}
|
||||||
|
prompt,
|
||||||
|
textbox-prompt-colon {
|
||||||
|
padding: @menu-prompt-padding;
|
||||||
|
border: 2px;
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
#prompt {
|
||||||
|
margin: @menu-prompt-margin;
|
||||||
|
background-color: @background-light;
|
||||||
|
text-color: @accent;
|
||||||
|
}
|
||||||
|
#textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: "Apps";
|
||||||
|
background-color: @accent;
|
||||||
|
text-color: @background;
|
||||||
|
}
|
||||||
|
#horibox {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
spacing: @option-6-listview-spacing;
|
||||||
|
lines: 6;
|
||||||
|
}
|
||||||
|
#element {
|
||||||
|
font: @icon-font;
|
||||||
|
border: @menu-element-border;
|
||||||
|
padding: @menu-element-padding;
|
||||||
|
border-color: @background-light;
|
||||||
|
}
|
||||||
|
#element.selected {
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
element.active,
|
||||||
|
element.selected.urgent {
|
||||||
|
background-color: @on;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @on;
|
||||||
|
}
|
||||||
|
element.selected.urgent {
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
element.urgent,
|
||||||
|
element.selected.active {
|
||||||
|
background-color: @off;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @off;
|
||||||
|
}
|
||||||
|
element.selected.active {
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
|
||||||
124
themes/backlight.rasi
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
/*
|
||||||
|
*
|
||||||
|
* Author : Aditya Shakya (adi1090x)
|
||||||
|
* Mail : adi1090x@gmail.com
|
||||||
|
* Github : @adi1090x
|
||||||
|
* Reddit : @adi1090x
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import "colors.rasi"
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
/* General */
|
||||||
|
text-font: "Comfortaa 12";
|
||||||
|
icon-font: "Hurmit Nerd Font Mono 32";
|
||||||
|
icon-font-small: "Hurmit Nerd Font Mono 24";
|
||||||
|
|
||||||
|
option-6-listview-spacing: 10px;
|
||||||
|
|
||||||
|
menu-window-padding: 5px 15px;
|
||||||
|
menu-inputbar-margin: 10px 0px;
|
||||||
|
menu-prompt-padding: 10px 20px 10px 20px;
|
||||||
|
menu-prompt-margin: 0px 0px 0px -2px;
|
||||||
|
menu-element-border: 10px;
|
||||||
|
menu-element-padding: 3px 8px -1px -40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
#window {
|
||||||
|
width: 18%;
|
||||||
|
height: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
font: @icon-font;
|
||||||
|
}
|
||||||
|
|
||||||
|
#horibox {
|
||||||
|
children: [ listview ];
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
layout: horizontal;
|
||||||
|
}
|
||||||
|
#element {
|
||||||
|
padding: @option-element-padding;
|
||||||
|
background-color: @background-light;
|
||||||
|
}
|
||||||
|
#element.selected {
|
||||||
|
background-color: @accent;
|
||||||
|
text-color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
font: @text-font;
|
||||||
|
}
|
||||||
|
#window {
|
||||||
|
padding: @menu-window-padding;
|
||||||
|
children: [ inputbar, horibox ];
|
||||||
|
}
|
||||||
|
#inputbar {
|
||||||
|
children: [ textbox-prompt-colon, prompt ];
|
||||||
|
margin: @menu-inputbar-margin;
|
||||||
|
}
|
||||||
|
prompt,
|
||||||
|
textbox-prompt-colon {
|
||||||
|
padding: @menu-prompt-padding;
|
||||||
|
border: 2px;
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
#prompt {
|
||||||
|
margin: @menu-prompt-margin;
|
||||||
|
background-color: @background-light;
|
||||||
|
text-color: @accent;
|
||||||
|
}
|
||||||
|
#textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: "Brightness";
|
||||||
|
background-color: @accent;
|
||||||
|
text-color: @background;
|
||||||
|
}
|
||||||
|
#horibox {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
spacing: @option-6-listview-spacing;
|
||||||
|
lines: 3;
|
||||||
|
}
|
||||||
|
#element {
|
||||||
|
font: @icon-font;
|
||||||
|
border: @menu-element-border;
|
||||||
|
padding: @menu-element-padding;
|
||||||
|
border-color: @background-light;
|
||||||
|
}
|
||||||
|
#element.selected {
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
element.active,
|
||||||
|
element.selected.urgent {
|
||||||
|
background-color: @on;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @on;
|
||||||
|
}
|
||||||
|
element.selected.urgent {
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
element.urgent,
|
||||||
|
element.selected.active {
|
||||||
|
background-color: @off;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @off;
|
||||||
|
}
|
||||||
|
element.selected.active {
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
|
||||||
127
themes/battery.rasi
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
/*
|
||||||
|
*
|
||||||
|
* Author : Aditya Shakya (adi1090x)
|
||||||
|
* Mail : adi1090x@gmail.com
|
||||||
|
* Github : @adi1090x
|
||||||
|
* Reddit : @adi1090x
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import "colors.rasi"
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
/* General */
|
||||||
|
text-font: "Comfortaa 12";
|
||||||
|
icon-font: "Hurmit Nerd Font Mono 32";
|
||||||
|
icon-font-small: "Hurmit Nerd Font Mono 24";
|
||||||
|
|
||||||
|
option-6-listview-spacing: 10px;
|
||||||
|
|
||||||
|
menu-window-padding: 5px 15px;
|
||||||
|
menu-inputbar-margin: 10px 0px;
|
||||||
|
menu-prompt-padding: 10px 20px 10px 20px;
|
||||||
|
menu-prompt-margin: 0px 0px 0px -2px;
|
||||||
|
menu-element-border: 0px;
|
||||||
|
menu-element-padding: 10px 15px 5px -35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
#window {
|
||||||
|
width: 16.5%;
|
||||||
|
height: 19%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
font: @icon-font;
|
||||||
|
}
|
||||||
|
|
||||||
|
#horibox {
|
||||||
|
children: [ listview ];
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
layout: horizontal;
|
||||||
|
}
|
||||||
|
#element {
|
||||||
|
padding: @option-element-padding;
|
||||||
|
background-color: @background-light;
|
||||||
|
}
|
||||||
|
#element.selected {
|
||||||
|
background-color: @accent;
|
||||||
|
text-color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ########### */
|
||||||
|
|
||||||
|
* {
|
||||||
|
font: @text-font;
|
||||||
|
}
|
||||||
|
#window {
|
||||||
|
padding: @menu-window-padding;
|
||||||
|
children: [ inputbar, horibox ];
|
||||||
|
}
|
||||||
|
#inputbar {
|
||||||
|
children: [ textbox-prompt-colon, prompt ];
|
||||||
|
margin: @menu-inputbar-margin;
|
||||||
|
}
|
||||||
|
prompt,
|
||||||
|
textbox-prompt-colon {
|
||||||
|
padding: @menu-prompt-padding;
|
||||||
|
border: 2px;
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
#prompt {
|
||||||
|
margin: @menu-prompt-margin;
|
||||||
|
background-color: @background-light;
|
||||||
|
text-color: @accent;
|
||||||
|
}
|
||||||
|
#textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: "Battery";
|
||||||
|
background-color: @accent;
|
||||||
|
text-color: @background;
|
||||||
|
}
|
||||||
|
#horibox {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
spacing: @option-6-listview-spacing;
|
||||||
|
lines: 3;
|
||||||
|
}
|
||||||
|
#element {
|
||||||
|
font: @icon-font;
|
||||||
|
border: @menu-element-border;
|
||||||
|
padding: @menu-element-padding;
|
||||||
|
border-color: @background-light;
|
||||||
|
}
|
||||||
|
#element.selected {
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
element.active {
|
||||||
|
background-color: @on;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @on;
|
||||||
|
}
|
||||||
|
element.selected.urgent {
|
||||||
|
background-color: @off;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
element.urgent,
|
||||||
|
element.selected.active {
|
||||||
|
background-color: @off;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @off;
|
||||||
|
}
|
||||||
|
element.selected.active {
|
||||||
|
background-color: @on;
|
||||||
|
text-color: @background;
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
||||||
|
|
||||||
22
themes/colors.rasi
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Change the colorscheme for every menu simply by editing this file...
|
||||||
|
*
|
||||||
|
* Available Color Schemes
|
||||||
|
* // Dark
|
||||||
|
* material-dark/amber material-dark/blue material-dark/blue_grey material-dark/brown material-dark/cyan material-dark/deep_orange
|
||||||
|
* material-dark/deep_purple material-dark/green material-dark/grey material-dark/indigo material-dark/light_blue material-dark/light_green
|
||||||
|
* material-dark/lime material-dark/orange material-dark/pink material-dark/purple material-dark/red material-dark/teal
|
||||||
|
* material-dark/yellow
|
||||||
|
* // Light
|
||||||
|
* material-light/amber material-light/blue material-light/blue_grey material-light/brown material-light/cyan material-light/deep_orange
|
||||||
|
* material-light/deep_purple material-light/green material-light/grey material-light/indigo material-light/light_blue material-light/light_green
|
||||||
|
* material-light/lime material-light/orange material-light/pink material-light/purple material-light/red material-light/teal
|
||||||
|
* material-light/yellow
|
||||||
|
*
|
||||||
|
* // Other
|
||||||
|
* adapta, adapta-nokto, arc, arc-dark, adwaita, gruvbox, dark
|
||||||
|
* armchair, darkpink, fresh, inside, party, sirin
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import "colorschemes/dark.rasi"
|
||||||
8
themes/colorschemes/adapta-nokto.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #00BCD4;
|
||||||
|
background: #263238;
|
||||||
|
background-light: #293840;
|
||||||
|
foreground: #E7E8EB;
|
||||||
|
on: #44ad4d;
|
||||||
|
off: #e34039;
|
||||||
|
}
|
||||||
8
themes/colorschemes/adapta.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #00ADC2;
|
||||||
|
background: #FFFFFF;
|
||||||
|
background-light: #E7E7E7;
|
||||||
|
foreground: #535353;
|
||||||
|
on: #44ad4d;
|
||||||
|
off: #e34039;
|
||||||
|
}
|
||||||
8
themes/colorschemes/adwaita.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #2E6BB6;
|
||||||
|
background: #2D2D2D;
|
||||||
|
background-light: #353535;
|
||||||
|
foreground: #E7E8EB;
|
||||||
|
on: #44ad4d;
|
||||||
|
off: #e34039;
|
||||||
|
}
|
||||||
8
themes/colorschemes/arc-dark.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #6BA0DE;
|
||||||
|
background: #383C4A;
|
||||||
|
background-light: #404552;
|
||||||
|
foreground: #E4E4E4;
|
||||||
|
on: #44ad4d;
|
||||||
|
off: #e34039;
|
||||||
|
}
|
||||||
8
themes/colorschemes/arc.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #5294E2;
|
||||||
|
background: #FFFFFF;
|
||||||
|
background-light: #E7E8EB;
|
||||||
|
foreground: #333333;
|
||||||
|
on: #44ad4d;
|
||||||
|
off: #e34039;
|
||||||
|
}
|
||||||
8
themes/colorschemes/armchair.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #E85A50;
|
||||||
|
background: #EAE8DC;
|
||||||
|
background-light: #E4D9C8;
|
||||||
|
foreground: #8E8D89;
|
||||||
|
on: #66bb6a;
|
||||||
|
off: #F68887;
|
||||||
|
}
|
||||||
8
themes/colorschemes/dark.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #A9C03F;
|
||||||
|
background: #141c21;
|
||||||
|
background-light: #1C252A;
|
||||||
|
foreground: #93a1a1;
|
||||||
|
on: #5BB462;
|
||||||
|
off: #DE635E;
|
||||||
|
}
|
||||||
8
themes/colorschemes/darkpink.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #F75176;
|
||||||
|
background: #414656;
|
||||||
|
background-light: #4B5060;
|
||||||
|
foreground: #F2F7E3;
|
||||||
|
on: #CDF0D9;
|
||||||
|
off: #FF796A;
|
||||||
|
}
|
||||||
8
themes/colorschemes/fresh.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #043968;
|
||||||
|
background: #5CDB94;
|
||||||
|
background-light: #59C78A;
|
||||||
|
foreground: #303030;
|
||||||
|
on: #2e7d32;
|
||||||
|
off: #d32f2f;
|
||||||
|
}
|
||||||
8
themes/colorschemes/gruvbox.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #83a598;
|
||||||
|
background: #282828;
|
||||||
|
background-light: #303030;
|
||||||
|
foreground: #ebdbb2;
|
||||||
|
on: #44ad4d;
|
||||||
|
off: #fb4934;
|
||||||
|
}
|
||||||
8
themes/colorschemes/inside.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #C7493A;
|
||||||
|
background: #151515;
|
||||||
|
background-light: #202020;
|
||||||
|
foreground: #AD8174;
|
||||||
|
on: #689775;
|
||||||
|
off: #A33327;
|
||||||
|
}
|
||||||
8
themes/colorschemes/material-dark/amber.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #ffc107;
|
||||||
|
background: #212121;
|
||||||
|
background-light: #272727;
|
||||||
|
foreground: #bdbdbd;
|
||||||
|
on: #66bb6a;
|
||||||
|
off: #ef5350;
|
||||||
|
}
|
||||||
8
themes/colorschemes/material-dark/blue.rasi
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
* {
|
||||||
|
accent: #1e88e5;
|
||||||
|
background: #212121;
|
||||||
|
background-light: #272727;
|
||||||
|
foreground: #bdbdbd;
|
||||||
|
on: #66bb6a;
|
||||||
|
off: #ef5350;
|
||||||
|
}
|
||||||