diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2021-09-04 12:04:53 +0200 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2021-09-04 12:04:53 +0200 |
commit | 65b7f91e51d90e93c3d7c6704c0a8265467a8ea7 (patch) | |
tree | 88301071c7f1840b502f33cbd3b0f7c5e81b0c66 /Common | |
parent | a77563ee1044ffa03f7c49e457a5f7c9f943188f (diff) | |
parent | e6df7072ab32493a561fc678eacc119b57981827 (diff) | |
download | dotfiles-65b7f91e51d90e93c3d7c6704c0a8265467a8ea7.tar.gz dotfiles-65b7f91e51d90e93c3d7c6704c0a8265467a8ea7.zip |
Merge branch 'master' of https://github.com/JakobS1n/dotfiles
Diffstat (limited to 'Common')
343 files changed, 23736 insertions, 1 deletions
diff --git a/Common/i3/Xresources b/Common/i3/Xresources new file mode 100755 index 0000000..043fa85 --- /dev/null +++ b/Common/i3/Xresources @@ -0,0 +1,130 @@ +! ------------------------------------------------------------------------------ +! Colour Configuration +! ------------------------------------------------------------------------------ + +! special +*.foreground: #d8dee8 +*.background: #2f343f +*.cursorColor: #b48ead + +! black +*.color0 : #4b5262 +*.color8 : #434a5a + +! red +*.color1 : #bf616a +*.color9 : #b3555e + +! green +*.color2 : #a3be8c +*.color10 : #93ae7c + +! yellow +*.color3 : #ebcb8b +*.color11 : #dbbb7b + +! blue +*.color4 : #81a1c1 +*.color12 : #7191b1 + +! magenta +*.color5 : #b48ead +*.color13 : #a6809f + +! cyan +*.color6 : #89d0bA +*.color14 : #7dbba8 + +! white +*.color7 : #e5e9f0 +*.color15 : #d1d5dc + +! ------------------------------------------------------------------------------ +! Font configuration +! ------------------------------------------------------------------------------ + +URxvt*font: xft:RobotoMono\ Nerd\ Font\ Mono:size=10 +URxvt*boldFont: xft:RobotoMono\ Nerd\ Font\ Mono:size=10 +URxvt*italicFont: xft:RobotoMono\ Nerd\ Font\ Mono:size=10 +URxvt*boldItalicFont: xft:RobotoMono\ Nerd\ Font\ Mono:size=10 + +! ------------------------------------------------------------------------------ +! Xft Font Configuration +! ------------------------------------------------------------------------------ + +Xft.autohint: 0 +Xft.lcdfilter: lcddefault +Xft.hintstyle: hintslight +Xft.hinting: 1 +Xft.antialias: 1 +Xft.rgba: rgb + +! ------------------------------------------------------------------------------ +! URxvt configs +! ------------------------------------------------------------------------------ + +! font spacing +URxvt*letterSpace: 0 +URxvt.lineSpace: 0 + +! general settings +URxvt*saveline: 15000 +URxvt*termName: rxvt-256color +URxvt*iso14755: false +URxvt*urgentOnBell: true + +! appearance +URxvt*depth: 0 +URxvt*scrollBar: false +URxvt*scrollBar_right: false +URxvt*internalBorder: 0 +URxvt*externalBorder: 0 +URxvt.geometry: 84x22 + +! perl extensions +URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select + +! macros for clipboard and selection +URxvt.copyCommand: xclip -i -selection clipboard +URxvt.pasteCommand: xclip -o -selection clipboard +URxvt.keysym.M-c: perl:clipboard:copy +URxvt.keysym.M-v: perl:clipboard:paste +URxvt.keysym.M-C-v: perl:clipboard:paste_escaped +URxvt.keysym.M-Escape: perl:keyboard-select:activate +URxvt.keysym.M-s: perl:keyboard-select:search +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.urlLauncher: firefox +URxvt.underlineURLs: true +URxvt.urlButton: 1 + +! scroll one line +URxvt.keysym.Shift-Up: command:\033]720;1\007 +URxvt.keysym.Shift-Down: command:\033]721;1\007 + +! control arrow +URxvt.keysym.Control-Up: \033[1;5A +URxvt.keysym.Control-Down: \033[1;5B +URxvt.keysym.Control-Right: \033[1;5C +URxvt.keysym.Control-Left: \033[1;5D + +! ------------------------------------------------------------------------------ +! Rofi configs +! ------------------------------------------------------------------------------ + +rofi.color-enabled: true +rofi.color-window: #2e3440, #f0d48b, #2e3440 +rofi.color-normal: #2e3440, #d8dee9, #2e3440, #2e3440, #bf616a +rofi.color-active: #2e3440, #b48ead, #2e3440, #2e3440, #93e5cc +rofi.color-urgent: #2e3440, #ebcb8b, #2e3440, #2e3440, #ebcb8b +rofi.bw: 2 +rofi.modi: run,drun,window + +! ------------------------------------------------------------------------------ +! Dmenu configs +! ------------------------------------------------------------------------------ + +dmenu.selforeground: #d8dee9 +dmenu.background: #2e3440 +dmenu.selbackground: #bf616a +dmenu.foreground: #d8dee9 + diff --git a/Common/i3/config/compton.conf b/Common/i3/config/compton.conf new file mode 100755 index 0000000..1062499 --- /dev/null +++ b/Common/i3/config/compton.conf @@ -0,0 +1,59 @@ +## shadow +#shadow = true; +#no-dnd-shadow = true; +#no-dock-shadow = true; +#clear-shadow = true; +#shadow-radius = 12; +#shadow-offset-x = -12; +#shadow-offset-y = -12; +#shadow-opacity = 0.95; +#shadow-red = 0.18; +#shadow-green = 0.20; +#shadow-blue = 0.25; +#shadow-exclude = [ "class_g = 'Cairo-clock'" , +# "class_g = 'CoverGloobus'", +# "class_g = 'Tilda'", +# "class_g = 'Conky'", +# "class_g ?= 'Notify-osd'", +# "class_g = 'Firefox'", +# "class_g = 'Firefox-esr'", +# "class_g = 'Dmenu'", +# "name = 'Notification'", +# "_GTK_FRAME_EXTENTS@:c" +#]; + +## fading +#fading = true; +#fade-delta = 0.25; +#fade-in-step = 0.02; +#fade-out-step = 0.02; +#fade-exclude = [ +#]; + +## other +#backend = "xrender"; +backend = "glx"; +vsync = "opengl-swc"; +glx-no-stencil = true; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +detect-rounded-corners = true; +#detect-client-opacity = true; +refresh-rate = 0; +dbe = false; +paint-on-overlay = true; +#focus-exclude = [ "class_g = 'Cairo-clock'" , +# "class_g = 'CoverGloobus'", +# "class_g = 'Tilda'", +# "class_g = 'Firefox'", +# "class_g = 'Firefox-esr'" +#]; +#detect-transient = true; +#detect-client-leader = true; +#invert-color-include = [ ]; +#glx-copy-from-front = false; +#glx-swap-method = "undefined"; +#wintypes: +#{ +# tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; }; +#}; diff --git a/Common/i3/config/dunst/dunstrc b/Common/i3/config/dunst/dunstrc new file mode 100755 index 0000000..5df67b7 --- /dev/null +++ b/Common/i3/config/dunst/dunstrc @@ -0,0 +1,52 @@ +[global] +monitor = 0 +follow = mouse +geometry = "250x50-24+24" +indicate_hidden = yes +shrink = no +separator_height = 0 +padding = 16 +horizontal_padding = 24 +frame_width = 2 +sort = no +idle_threshold = 120 +font = Noto Sans 8 +line_height = 4 +markup = full +format = "<b>%s</b>\n%b" +alignment = left +show_age_threshold = 60 +word_wrap = yes +ignore_newline = no +stack_duplicates = false +hide_duplicate_count = yes +show_indicators = no +icon_position = off +sticky_history = yes +history_length = 20 +browser = /usr/bin/firefox -new-tab +always_run_script = true +title = Dunst +class = Dunst + +[shortcuts] +close = ctrl+space +close_all = ctrl+shift+space +history = ctrl+grave +context = ctrl+shift+period + +[urgency_low] +background = "#2f343f" +foreground = "#d8dee8" +timeout = 2 + +[urgency_normal] +background = "#2f343f" +foreground = "#d8dee8" +timeout = 4 + +[urgency_critical] +background = "#2f343f" +foreground = "#d8dee8" +frame_color = "#bf616a" +timeout = 0 diff --git a/Common/i3/config/i3/config b/Common/i3/config/i3/config new file mode 100644 index 0000000..0aa62a0 --- /dev/null +++ b/Common/i3/config/i3/config @@ -0,0 +1,186 @@ +# set modifier +set $super Mod4 +set $alt Mod1 + +# set font +font pango: Noto Sans 8 + +# Use Mouse+$super to drag floating windows to their wanted position +floating_modifier $super + +#autostart +#exec --no-startup-id hsetroot -center ~/.wallpaper.png +#exec --no-startup-id feh --bg-scale ~/.wallpaper.png +exec --no-startup-id nitrogen --restore +#exec --no-startup-id xsettingsd & +exec --no-startup-id compton -b + +# Tru to run autosetup of displays +exec --not-startup-id xrandr --auto + +# start a terminal +bindsym $super+Return exec i3-sensible-terminal + +# start dmenu (a program launcher) +bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'" +bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8' + +# common apps keybinds +#bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.png' -e 'viewnior ~/$f' +bindsym $super+l exec i3lock -i ~/.wallpaper.jpg +#bindsym $super+Shift+w exec firefox +#bindsym $super+Shift+f exec thunar;workspace 3;focus +#bindsym $super+Shift+g exec geany +#bindsym $mod+Control+s exec --no-startup-id systemctl suspend + +#change volume +bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ +bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- +bindsym XF86AudioMute exec amixer set Master toggle +bindsym XF86AudioMicMute exec amixer set Capture toggle + +# music control +#bindsym XF86AudioNext exec mpc next +#bindsym XF86AudioPrev exec mpc prev +#bindsym XF86AudioPlay exec mpc toggle +#bindsym XF86AudioStop exec mpc stop + +# kill focused window +bindsym $super+c kill +bindsym $alt+F4 kill + +# change focus +bindsym $super+Left focus left +bindsym $super+Down focus down +bindsym $super+Up focus up +bindsym $super+Right focus right +focus_follows_mouse no + +# move focused window +bindsym $super+Shift+Left move left +bindsym $super+Shift+Down move down +bindsym $super+Shift+Up move up +bindsym $super+Shift+Right move right + +# split in horizontal orientation +bindsym $super+h split h + +# split in vertical orientation +bindsym $super+v split v + +# enter fullscreen mode for the focused container +bindsym $super+f fullscreen toggle + +# change container layout split +bindsym $super+s layout toggle split + +# toggle tiling / floating +bindsym $super+space floating toggle + +# change focus between tiling / floating windows +bindsym $super+Shift+space focus mode_toggle + +# switch to workspace +bindsym $alt+Control+Right workspace next +bindsym $alt+Control+Left workspace prev +bindsym $super+1 workspace 1 +bindsym $super+2 workspace 2 +bindsym $super+3 workspace 3 +bindsym $super+4 workspace 4 +bindsym $super+5 workspace 5 +bindsym $super+6 workspace 6 + +# move focused container to workspace +bindsym $super+Shift+1 move container to workspace 1 +bindsym $super+Shift+2 move container to workspace 2 +bindsym $super+Shift+3 move container to workspace 3 +bindsym $super+Shift+4 move container to workspace 4 +bindsym $super+Shift+5 move container to workspace 5 +bindsym $super+Shift+6 move container to workspace 6 + +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $super+Shift+r restart + +# exit i3 +bindsym $super+Shift+e exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'" +bindsym $super+p exec --no-startup-id ~/.config/rofi/bin/applet_powermenu + +# resize window (you can also use the mouse for that) +mode "resize" { + bindsym Left resize shrink width 5 px or 5 ppt + bindsym Down resize grow height 5 px or 5 ppt + bindsym Up resize shrink height 5 px or 5 ppt + bindsym Right resize grow width 5 px or 5 ppt + bindsym Return mode "default" +} +bindsym $super+r mode "resize" + +# Colors +set $blue #1b1e26 +set $yellow #f0d48b +set $grey #b0b287 +set $green #789073 + +# panel +bar { + colors { + #background #2f343f + statusline #2f343f + separator #4b5262 + + background $blue + #statusline $yellow + #separator $green + + # colour of border, background, and text + #focused_workspace #2f343f #bf616a #d8dee8 + #active_workspace #2f343f #2f343f #d8dee8 + #inactive_workspace #2f343f #2f343f #d8dee8 + #urgent_workspacei #2f343f #ebcb8b #2f343f + focused_workspace $blue $blue $yellow + active_workspace $blue $blue $yellow + inactive_workspace $blue $blue $green + urgent_workspacei $blue $blue $grey + } + status_command i3status +} + +# window rules, you can find the window class using xprop +for_window [class="^.*"] border pixel 2 +#assign [class=URxvt] 1 +#assign [class=Firefox|Transmission-gtk] 2 +#assign [class=Thunar|File-roller] 3 +#assign [class=Geany|Evince|Gucharmap|Soffice|libreoffice*] 4 +#assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] 5 +#assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr] 6 +for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol|Arandr|Nitrogen|Files] floating enable +for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus +for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr|Nitrogen] focus + +# colour of border, background, text, indicator, and child_border +#client.focused #bf616a #2f343f3 #d8dee8 #bf616a #d8dee8 +#client.focused_inactive #2f343f #2f343f #d8dee8 #2f343f #2f343f +#client.unfocused #2f343f #2f343f #d8dee8 #2f343f #2f343f +#client.urgent #2f343f #2f343f #d8dee8 #2f343f #2f343f +#client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f +#client.background #2f343f +client.focused #d1ae54 $blue $yellow $yellow #d1ae54 +client.focused_inactive #d1ae54 $blue $grey $yellow $yellow +client.unfocused $yellow $blue $grey $yellow $yellow +client.urgent $yellow $blue $yellow $yellow $yellow +client.placeholder $yellow $blue $yellow $yellow $yellow +client.background $blue + +# i3-gaps +gaps inner 7 + +# Keybinds for lenovo x1 carbon +#bindsym XF86MonBrightnessUp exec --no-startup-id "pkill rofi; xbacklight -inc 10; ~/.config/rofi/bin/applet_backlight > /dev/null 2>&1 &" +#bindsym XF86MonBrightnessDown exec --no-startup-id "pkill rofi; xbacklight -dec 10; ~/.config/rofi/bin/applet_backlight > /dev/null 2>&1 &" + +bindsym XF86MonBrightnessUp exec --no-startup-id "xbacklight -inc 10" +bindsym XF86MonBrightnessDown exec --no-startup-id "xbacklight -dec 10" + +bindsym XF86Display exec --no-startup-id "arandr" +#bindsym XF86WLAN exec --no-startup-id "~/.config/rofi/bin/menu_network" +bindsym Print exec --no-startup-id "gnome-screenshot --interactive" diff --git a/Common/i3/config/i3status/config b/Common/i3/config/i3status/config new file mode 100644 index 0000000..b3256a2 --- /dev/null +++ b/Common/i3/config/i3status/config @@ -0,0 +1,73 @@ +general { + output_format = "i3bar" + colors = false + markup = pango + interval = 5 + color_good = '#2f343f' + color_degraded = '#ebcb8b' + color_bad = '#ba5e57' +} + +order += "load" +order += "cpu_temperature 0" +#order += "disk /" +#order += "disk /home" +#order += "ethernet enp1s0" +order += "wireless wlp0s20f3" +order += "volume master" +order += "battery 0" +order += "tztime local" + +load { + format = "<span background='#f59335'> %5min Load </span>" +} + +cpu_temperature 0 { + format = "<span background='#bf616a'> %degrees °C </span>" + path = "/sys/class/thermal/thermal_zone0/temp" +} + +disk "/" { + format = "<span background='#fec7cd'> %free Free </span>" +} + +disk "/home" { + format = "<span background='#a1d569'> %free Free </span>" +} + +ethernet enp1s0 { + format_up = "<span background='#88c0d0'> %ip </span>" + format_down = "<span background='#88c0d0'> Disconnected </span>" +} + +wireless wlp0s20f3 { + format_up = "<span background='#b48ead'> %essid </span>" + format_down = "<span background='#b48ead'> Disconnected </span>" +} + +volume master { + format = "<span background='#ebcb8b'> %volume </span>" + format_muted = "<span background='#ebcb8b'> Muted </span>" + device = "default" + mixer = "Master" + mixer_idx = 0 +} + +battery 0 { + last_full_capacity = true + format = "<span background='#a3be8c'> %status %percentage </span>" + format_down = "No Battery" + status_chr = "Charging" + status_bat = "Battery" + status_unk = "Unknown" + status_full = "Charged" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 + #on_click 1 = "exec --no-startup-id ~/.config/rofi/bin/applet_battery" +} + +tztime local { + format = "<span background='#81a1c1'> %time </span>" + format_time = " %a %-d %b %H:%M" +} + diff --git a/Common/i3/urxvt/ext/clipboard b/Common/i3/urxvt/ext/clipboard new file mode 100755 index 0000000..05e1601 --- /dev/null +++ b/Common/i3/urxvt/ext/clipboard @@ -0,0 +1,115 @@ +#! perl -w +# Author: Bert Muennich +# Website: http://www.github.com/muennich/urxvt-perls +# License: GPLv2 + +# Use keyboard shortcuts to copy the selection to the clipboard and to paste +# the clipboard contents (optionally escaping all special characters). +# Requires xsel to be installed! + +# Usage: put the following lines in your .Xdefaults/.Xresources: +# URxvt.perl-ext-common: ...,clipboard +# URxvt.keysym.M-c: perl:clipboard:copy +# URxvt.keysym.M-v: perl:clipboard:paste +# URxvt.keysym.M-C-v: perl:clipboard:paste_escaped + +# Options: +# URxvt.clipboard.autocopy: If true, PRIMARY overwrites clipboard + +# You can also overwrite the system commands to use for copying/pasting. +# The default ones are: +# URxvt.clipboard.copycmd: xsel -ib +# URxvt.clipboard.pastecmd: xsel -ob +# If you prefer xclip, then put these lines in your .Xdefaults/.Xresources: +# URxvt.clipboard.copycmd: xclip -i -selection clipboard +# URxvt.clipboard.pastecmd: xclip -o -selection clipboard +# On Mac OS X, put these lines in your .Xdefaults/.Xresources: +# URxvt.clipboard.copycmd: pbcopy +# URxvt.clipboard.pastecmd: pbpaste + +# The use of the functions should be self-explanatory! + +use strict; + +sub on_start { + my ($self) = @_; + + $self->{copy_cmd} = $self->x_resource('clipboard.copycmd') || 'xsel -ib'; + $self->{paste_cmd} = $self->x_resource('clipboard.pastecmd') || 'xsel -ob'; + + if ($self->x_resource('clipboard.autocopy') eq 'true') { + $self->enable(sel_grab => \&sel_grab); + } + + () +} + +sub copy { + my ($self) = @_; + + if (open(CLIPBOARD, "| $self->{copy_cmd}")) { + my $sel = $self->selection(); + utf8::encode($sel); + print CLIPBOARD $sel; + close(CLIPBOARD); + } else { + print STDERR "error running '$self->{copy_cmd}': $!\n"; + } + + () +} + +sub paste { + my ($self) = @_; + + my $str = `$self->{paste_cmd}`; + if ($? == 0) { + $self->tt_paste($str); + } else { + print STDERR "error running '$self->{paste_cmd}': $!\n"; + } + + () +} + +sub paste_escaped { + my ($self) = @_; + + my $str = `$self->{paste_cmd}`; + if ($? == 0) { + $str =~ s/([!#\$%&\*\(\) ='"\\\|\[\]`~,<>\?])/\\\1/g; + $self->tt_paste($str); + } else { + print STDERR "error running '$self->{paste_cmd}': $!\n"; + } + + () +} + +sub on_action { + my ($self, $action) = @_; + + on_user_command($self, "clipboard:" . $action); +} + +sub on_user_command { + my ($self, $cmd) = @_; + + if ($cmd eq "clipboard:copy") { + $self->copy; + } elsif ($cmd eq "clipboard:paste") { + $self->paste; + } elsif ($cmd eq "clipboard:paste_escaped") { + $self->paste_escaped; + } + + () +} + +sub sel_grab { + my ($self) = @_; + + $self->copy; + + () +} diff --git a/Common/i3/urxvt/ext/keyboard-select b/Common/i3/urxvt/ext/keyboard-select new file mode 100755 index 0000000..78d4a7f --- /dev/null +++ b/Common/i3/urxvt/ext/keyboard-select @@ -0,0 +1,597 @@ +#! perl -w +# Author: Bert Muennich +# Website: http://www.github.com/muennich/urxvt-perls +# License: GPLv2 + +# Use keyboard shortcuts to select and copy text. + +# Usage: put the following lines in your .Xdefaults/.Xresources: +# URxvt.perl-ext-common: ...,keyboard-select +# URxvt.keysym.M-Escape: perl:keyboard-select:activate +# The following line overwrites the default Meta-s binding and allows to +# activate keyboard-select directly in backward search mode: +# URxvt.keysym.M-s: perl:keyboard-select:search + +# Use Meta-Escape to activate selection mode, then use the following keys: +# h/j/k/l: Move cursor left/down/up/right (also with arrow keys) +# g/G/0/^/$/H/M/L/f/F/;/,/w/W/b/B/e/E: More vi-like cursor movement keys +# '/'/?: Start forward/backward search +# n/N: Repeat last search, N: in reverse direction +# Ctrl-f/b: Scroll down/up one screen +# Ctrl-d/u: Scroll down/up half a screen +# v/V/Ctrl-v: Toggle normal/linewise/blockwise selection +# y/Return: Copy selection to primary buffer, Return: quit afterwards +# Y: Copy selected lines to primary buffer or cursor line and quit +# q/Escape: Quit keyboard selection mode + + +use strict; + +sub on_start{ + my ($self) = @_; + + $self->{patterns}{'w'} = qr/\w[^\w\s]|\W\w|\s\S/; + $self->{patterns}{'W'} = qr/\s\S/; + $self->{patterns}{'b'} = qr/.*(?:\w[^\w\s]|\W\w|\s\S)/; + $self->{patterns}{'B'} = qr/.*\s\S/; + $self->{patterns}{'e'} = qr/[^\w\s](?=\w)|\w(?=\W)|\S(?=\s|$)/; + $self->{patterns}{'E'} = qr/\S(?=\s|$)/; + + () +} + + +sub on_action { + my ($self, $action) = @_; + + on_user_command($self, "keyboard-select:" . $action); +} + + +sub on_user_command { + my ($self, $cmd) = @_; + + if (not $self->{active}) { + if ($cmd eq 'keyboard-select:activate') { + activate($self); + } elsif ($cmd eq 'keyboard-select:search') { + activate($self, 1); + } + } + + () +} + + +sub key_press { + my ($self, $event, $keysym, $char) = @_; + my $key = chr($keysym); + + if (lc($key) eq 'c' && $event->{state} & urxvt::ControlMask) { + deactivate($self); + } elsif ($self->{search}) { + if ($keysym == 0xff1b) { + if ($self->{search_mode}) { + deactivate($self); + } else { + $self->{search} = ''; + status_area($self); + } + } elsif ($keysym == 0xff08) { + $self->{search} = substr($self->{search}, 0, -1); + if (not $self->{search} and $self->{search_mode}) { + deactivate($self); + } else { + status_area($self); + } + } elsif ($keysym == 0xff0d || + (lc($key) eq 'm' && $event->{state} & urxvt::ControlMask)) { + my $txt = substr($self->{search}, 1); + if ($txt) { + $self->{pattern} = ($txt =~ m/[[:upper:]]/) ? qr/\Q$txt\E/ : + qr/\Q$txt\E/i; + } elsif ($self->{pattern}) { + delete $self->{pattern}; + } + $self->{search} = ''; + $self->screen_cur($self->{srhcr}, $self->{srhcc}); + if (not find_next($self)) { + if ($self->{search_mode}) { + deactivate($self); + } else { + status_area($self); + } + } + } elsif (length($char) > 0) { + $self->{search} .= $self->locale_decode($char); + my $txt = substr($self->{search}, 1); + if ($txt) { + $self->{pattern} = ($txt =~ m/[[:upper:]]/) ? qr/\Q$txt\E/ : + qr/\Q$txt\E/i; + } elsif ($self->{pattern}) { + delete $self->{pattern}; + } + $self->screen_cur($self->{srhcr}, $self->{srhcc}); + find_next($self); + status_area($self); + } + } elsif ($self->{move_to}) { + if ($keysym == 0xff1b) { + $self->{move_to} = 0; + status_area($self); + } elsif (length($char) > 0) { + $self->{move_to} = 0; + $self->{patterns}{'f-1'} = qr/^.*\Q$key\E/; + $self->{patterns}{'f+1'} = qr/^.+?\Q$key\E/; + move_to($self, ';'); + status_area($self); + } + } elsif ($keysym == 0xff1b || lc($key) eq 'q') { + deactivate($self); + } elsif (lc($key) eq 'y' || $keysym == 0xff0d || + (lc($key) eq 'm' && $event->{state} & urxvt::ControlMask)) { + my $quit = 0; + if ($key eq 'Y' && $self->{select} ne 'l') { + $quit = !$self->{select}; + toggle_select($self, 'l'); + } + if ($self->{select}) { + my ($br, $bc, $er, $ec) = calc_span($self); + $ec = $self->line($er)->l if $self->{select} eq 'l'; + $self->selection_beg($br, $bc); + $self->selection_end($er, $ec); + $self->selection_make($event->{time}, $self->{select} eq 'b'); + if (lc($key) eq 'y') { + $self->selection_beg(1, 0); + $self->selection_end(1, 0); + $self->{select} = ''; + status_area($self); + $self->want_refresh(); + } else { + $quit = 1; + } + } + if ($quit) { + deactivate($self); + } + } elsif ($key eq 'V') { + toggle_select($self, 'l'); + } elsif ($key eq 'v') { + if ($event->{state} & urxvt::ControlMask) { + toggle_select($self, 'b'); + } else { + toggle_select($self, 'n'); + } + } elsif ($key eq 'k' || $keysym == 0xff52) { + move_cursor($self, 'k'); + } elsif ($key eq 'j' || $keysym == 0xff54) { + move_cursor($self, 'j'); + } elsif ($key eq 'h' || $keysym == 0xff51) { + move_cursor($self, 'h'); + } elsif ($key eq 'l' || $keysym == 0xff53) { + move_cursor($self, 'l'); + } elsif ($keysym == 0xff57) { + move_cursor($self, '$'); + } elsif ($keysym == 0xff50) { + move_cursor($self, '^'); + } elsif ('gG0^$HML' =~ m/\Q$key\E/ || + ('fbdu' =~ m/\Q$key\E/ && $event->{state} & urxvt::ControlMask)) { + move_cursor($self, $key); + } elsif (lc($key) eq 'f') { + $self->{move_to} = 1; + $self->{move_dir} = $key eq 'F' ? -1 : 1; + status_area($self, $key); + } elsif (';,wWbBeE' =~ m/\Q$key\E/) { + move_to($self, $key); + } elsif ($key eq '/' || $key eq '?') { + $self->{search} = $key; + $self->{search_dir} = $key eq '?' ? -1 : 1; + ($self->{srhcr}, $self->{srhcc}) = $self->screen_cur(); + status_area($self); + } elsif (lc($key) eq 'n') { + find_next($self, $self->{search_dir} * ($key eq 'N' ? -1 : 1)); + } + + return 1; +} + + +sub move_cursor { + my ($self, $key) = @_; + my ($cr, $cc) = $self->screen_cur(); + my $line = $self->line($cr); + + if ($key eq 'k' && $line->beg > $self->top_row) { + $cr = $line->beg - 1; + } elsif ($key eq 'j' && $line->end < $self->nrow - 1) { + $cr = $line->end + 1; + } elsif ($key eq 'h' && $self->{offset} > 0) { + $self->{offset} = $line->offset_of($cr, $cc) - 1; + $self->{dollar} = 0; + } elsif ($key eq 'l' && $self->{offset} < $line->l - 1) { + ++$self->{offset}; + } elsif ($key eq 'f' || $key eq 'd') { + my $vs = $self->view_start() + + ($key eq 'd' ? $self->nrow / 2 : $self->nrow - 1); + $vs = 0 if $vs > 0; + $cr += $vs - $self->view_start($vs); + } elsif ($key eq 'b' || $key eq 'u') { + my $vs = $self->view_start() - + ($key eq 'u' ? $self->nrow / 2 : $self->nrow - 1); + $vs = $self->top_row if $vs < $self->top_row; + $cr += $vs - $self->view_start($vs); + } elsif ($key eq 'g') { + ($cr, $self->{offset}) = ($self->top_row, 0); + $self->{dollar} = 0; + } elsif ($key eq 'G') { + ($cr, $self->{offset}) = ($self->nrow - 1, 0); + $self->{dollar} = 0; + } elsif ($key eq '0') { + $self->{offset} = 0; + $self->{dollar} = 0; + } elsif ($key eq '^') { + my $ltxt = $self->special_decode($line->t); + while ($ltxt =~ s/^( *)\t/$1 . " " x (8 - length($1) % 8)/e) {} + $self->{offset} = $ltxt =~ m/^ +/ ? $+[0] : 0; + $self->{dollar} = 0; + } elsif ($key eq '$') { + my $co = $line->offset_of($cr, $cc); + $self->{dollar} = $co + 1; + $self->{offset} = $line->l - 1; + } elsif ($key eq 'H') { + $cr = $self->view_start(); + } elsif ($key eq 'M') { + $cr = $self->view_start() + $self->nrow / 2; + } elsif ($key eq 'L') { + $cr = $self->view_start() + $self->nrow - 1; + } + + $line = $self->line($cr); + $cc = $self->{dollar} || $self->{offset} >= $line->l ? $line->l - 1 : + $self->{offset}; + $self->screen_cur($line->coord_of($cc)); + + status_area($self); + $self->want_refresh(); + + () +} + + +sub move_to { + my ($self, $key) = @_; + my ($cr, $cc) = $self->screen_cur(); + my $line = $self->line($cr); + my $offset = $self->{offset}; + my ($dir, $pattern); + my ($wrap, $found) = (0, 0); + + if ($key eq ';' || $key eq ',') { + $dir = $self->{move_dir} * ($key eq ',' ? -1 : 1); + $pattern = $self->{patterns}{sprintf('f%+d', $dir)}; + return if not $pattern; + } else { + if (lc($key) eq 'b') { + $dir = -1; + } else { + $dir = 1; + ++$offset if lc($key) eq 'e'; + } + $pattern = $self->{patterns}{$key}; + $wrap = 1; + } + + if ($dir > 0) { + NEXTDOWN: my $text = substr($line->t, $offset); + if ($text =~ m/$pattern/) { + $offset += $+[0] - 1; + $found = 1; + } elsif ($wrap && $line->end + 1 < $self->nrow) { + $cr = $line->end + 1; + $line = $self->line($cr); + $offset = 0; + if (lc($key) eq 'e') { + goto NEXTDOWN; + } else { + $found = 1; + } + } + } elsif ($dir < 0) { + NEXTUP: my $text = substr($line->t, 0, $offset); + if ($text =~ m/$pattern/) { + $offset += $+[0] - length($text) - 1; + $found = 1; + } elsif ($wrap) { + if ($offset > 0) { + $offset = 0; + $found = 1; + } elsif ($line->beg > $self->top_row) { + $cr = $line->beg - 1; + $line = $self->line($cr); + $offset = $line->l; + goto NEXTUP; + } + } + } + + if ($found) { + $self->{dollar} = 0; + $self->{offset} = $offset; + $self->screen_cur($line->coord_of($offset)); + $self->want_refresh(); + } + + () +} + + +sub find_next { + my ($self, $dir) = @_; + + return if not $self->{pattern}; + $dir = $self->{search_dir} if not $dir; + + my ($cr, $cc) = $self->screen_cur(); + my $line = $self->line($cr); + my $offset = $line->offset_of($cr, $cc); + my $text; + my $found = 0; + + ++$offset if $dir > 0; + + while (not $found) { + if ($dir > 0) { + $text = substr($line->t, $offset); + if ($text =~ m/$self->{pattern}/) { + $found = 1; + $offset += $-[0]; + } else { + last if $line->end >= $self->nrow; + $line = $self->line($line->end + 1); + $offset = 0; + } + } else { + $text = substr($line->t, 0, $offset); + if ($text =~ m/$self->{pattern}/) { + $found = 1; + $offset = $-[0] while $text =~ m/$self->{pattern}/g; + } else { + last if $line->beg <= $self->top_row; + $line = $self->line($line->beg - 1); + $offset = $line->l; + } + } + } + + if ($found) { + $self->{dollar} = 0; + $self->{offset} = $offset; + $self->screen_cur($line->coord_of($offset)); + status_area($self); + $self->want_refresh(); + } + + return $found; +} + + +sub tt_write { + return 1; +} + + +sub refresh { + my ($self) = @_; + my ($cr, $cc) = $self->screen_cur(); + + # scroll the current cursor position into visible area + if ($cr < $self->view_start()) { + $self->view_start($cr); + } elsif ($cr >= $self->view_start() + $self->nrow) { + $self->view_start($cr - $self->nrow + 1); + } + + if ($self->{select}) { + my ($hl, $reverse_cursor); + my ($br, $bc, $er, $ec) = calc_span($self); + + if ($self->x_resource('highlightColor')) { + $hl = urxvt::RS_Sel; + $reverse_cursor = 0; + } else { + $hl = urxvt::RS_RVid; + $reverse_cursor = $self->{select} ne 'l'; + } + if ($self->{select} eq 'b') { + my $co = $self->line($cr)->offset_of($cr, $cc); + my $dollar = $self->{dollar} && $co >= $self->{dollar} - 1; + + my $r = $br; + while ($r <= $er) { + my $line = $self->line($r); + if ($bc < $line->l) { + $ec = $line->l if $dollar; + my ($br, $bc) = $line->coord_of($bc); + my ($er, $ec) = $line->coord_of($ec <= $line->l ? $ec : $line->l); + $self->scr_xor_span($br, $bc, $er, $ec, $hl); + } elsif ($r == $cr) { + $reverse_cursor = 0; + } + $r = $line->end + 1; + } + } else { + $self->scr_xor_span($br, $bc, $er, $ec, $hl); + } + + if ($reverse_cursor) { + # make the cursor visible again + $self->scr_xor_span($cr, $cc, $cr, $cc + 1, $hl); + } + } + + () +} + + +sub activate { + my ($self, $search) = @_; + + $self->{active} = 1; + + $self->{select} = ''; + $self->{dollar} = 0; + $self->{move_to} = 0; + + if ($search) { + $self->{search} = '?'; + $self->{search_dir} = -1; + $self->{search_mode} = 1; + } else { + $self->{search} = ''; + $self->{search_mode} = 0; + } + + ($self->{oldcr}, $self->{oldcc}) = $self->screen_cur(); + ($self->{srhcr}, $self->{srhcc}) = $self->screen_cur(); + $self->{old_view_start} = $self->view_start(); + $self->{old_pty_ev_events} = $self->pty_ev_events(urxvt::EV_NONE); + + my $line = $self->line($self->{oldcr}); + $self->{offset} = $line->offset_of($self->{oldcr}, $self->{oldcc}); + + $self->selection_beg(1, 0); + $self->selection_end(1, 0); + + $self->enable( + key_press => \&key_press, + refresh_begin => \&refresh, + refresh_end => \&refresh, + tt_write => \&tt_write, + ); + + if ($self->{offset} >= $line->l) { + $self->{offset} = $line->l > 0 ? $line->l - 1 : 0; + $self->screen_cur($line->coord_of($self->{offset})); + $self->want_refresh(); + } + + $self->{overlay_len} = 0; + status_area($self); + + () +} + + +sub deactivate { + my ($self) = @_; + + $self->selection_beg(1, 0); + $self->selection_end(1, 0); + + delete $self->{overlay} if $self->{overlay}; + + $self->disable("key_press", "refresh_begin", "refresh_end", "tt_write"); + $self->screen_cur($self->{oldcr}, $self->{oldcc}); + $self->view_start($self->{old_view_start}); + $self->pty_ev_events($self->{old_pty_ev_events}); + + $self->want_refresh(); + + $self->{active} = 0; + + () +} + + +sub status_area { + my ($self, $extra) = @_; + my ($stat, $stat_len); + + if ($self->{search}) { + $stat_len = $self->ncol; + $stat = $self->{search} . ' ' x ($stat_len - length($self->{search})); + } else { + if ($self->{select}) { + $stat = "-V" . ($self->{select} ne 'n' ? uc($self->{select}) : "") . "- "; + } + + if ($self->top_row == 0) { + $stat .= "All"; + } elsif ($self->view_start() == $self->top_row) { + $stat .= "Top"; + } elsif ($self->view_start() == 0) { + $stat .= "Bot"; + } else { + $stat .= sprintf("%2d%%", + ($self->top_row - $self->view_start) * 100 / $self->top_row); + } + + $stat = "$extra $stat" if $extra; + $stat_len = length($stat); + } + + if (!$self->{overlay} || $self->{overlay_len} != $stat_len) { + delete $self->{overlay} if $self->{overlay}; + $self->{overlay} = $self->overlay(-1, -1, $stat_len, 1, + urxvt::OVERLAY_RSTYLE, 0); + $self->{overlay_len} = $stat_len; + } + + $self->{overlay}->set(0, 0, $self->special_encode($stat)); + $self->{overlay}->show(); + + () +} + + +sub toggle_select { + my ($self, $mode) = @_; + + if ($self->{select} eq $mode) { + $self->{select} = ''; + } else { + if (not $self->{select}) { + ($self->{ar}, $self->{ac}) = $self->screen_cur(); + } + $self->{select} = $mode; + } + + status_area($self); + $self->want_refresh(); + + () +} + + +sub calc_span { + my ($self) = @_; + my ($cr, $cc) = $self->screen_cur(); + my ($br, $bc, $er, $ec); + + if ($self->{select} eq 'b') { + $br = $self->line($cr)->beg; + $bc = $self->line($cr)->offset_of($cr, $cc); + $er = $self->line($self->{ar})->beg; + $ec = $self->line($self->{ar})->offset_of($self->{ar}, $self->{ac}); + ($br, $er) = ($er, $br) if $br > $er; + ($bc, $ec) = ($ec, $bc) if $bc > $ec; + } else { + if ($cr < $self->{ar}) { + ($br, $bc, $er, $ec) = ($cr, $cc, $self->{ar}, $self->{ac}); + } elsif ($cr > $self->{ar}) { + ($br, $bc, $er, $ec) = ($self->{ar}, $self->{ac}, $cr, $cc); + } else { + ($br, $er) = ($cr, $cr); + ($bc, $ec) = $cc < $self->{ac} ? ($cc, $self->{ac}) : ($self->{ac}, $cc); + } + } + + if ($self->{select} eq 'l') { + ($br, $er) = ($self->line($br)->beg, $self->line($er)->end); + ($bc, $ec) = (0, $self->ncol); + } else { + ++$ec; + } + + return ($br, $bc, $er, $ec); +} diff --git a/Common/i3/urxvt/ext/url-select b/Common/i3/urxvt/ext/url-select new file mode 100755 index 0000000..34637bb --- /dev/null +++ b/Common/i3/urxvt/ext/url-select @@ -0,0 +1,408 @@ +#! perl -w +# Author: Bert Muennich +# Website: http://www.github.com/muennich/urxvt-perls +# Based on: http://www.jukie.net/~bart/blog/urxvt-url-yank +# License: GPLv2 + +# Use keyboard shortcuts to select URLs. +# This should be used as a replacement for the default matcher extension, +# it also makes URLs clickable with the middle mouse button. + +# Usage: put the following lines in your .Xdefaults/.Xresources: +# URxvt.perl-ext-common: ...,url-select +# URxvt.keysym.M-u: perl:url-select:select_next + +# Use Meta-u to activate URL selection mode, then use the following keys: +# j/k: Select next downward/upward URL (also with arrow keys) +# g/G: Select first/last URL (also with home/end key) +# o/Return: Open selected URL in browser, Return: deactivate afterwards +# y: Copy (yank) selected URL and deactivate selection mode +# q/Escape: Deactivate URL selection mode + +# Options: +# URxvt.url-select.autocopy: If true, selected URLs are copied to PRIMARY +# URvxt.url-select.button: Mouse button to click-open URLs (default: 2) +# URxvt.url-select.launcher: Browser/command to open selected URL with +# URxvt.url-select.underline: If set to true, all URLs get underlined + +use strict; + +# The custom rendition bit to use for marking the cell as being underlined +# by us so we can unset it again after a line has changed. +use constant UNDERLINED => 1<<3; # arbitrarily chosen in hope of no collision + +sub on_start { + my ($self) = @_; + + # read resource settings + if ($self->x_resource('url-select.launcher')) { + @{$self->{browser}} = split /\s+/, $self->x_resource('url-select.launcher'); + } else { + @{$self->{browser}} = ('x-www-browser'); + } + if ($self->x_resource('url-select.underline') eq 'true') { + $self->enable(line_update => \&line_update); + } + if ($self->x_resource('url-select.autocopy') eq 'true') { + $self->{autocopy} = 1; + } + + $self->{state} = 0; + + for my $mod (split '', $self->x_resource("url-select.button") || + $self->x_resource("matcher.button") || 2) { + if ($mod =~ /^\d+$/) { + $self->{button} = $mod; + } elsif ($mod eq "C") { + $self->{state} |= urxvt::ControlMask; + } elsif ($mod eq "S") { + $self->{state} |= urxvt::ShiftMask; + } elsif ($mod eq "M") { + $self->{state} |= $self->ModMetaMask; + } elsif ($mod ne "-" && $mod ne " ") { + warn("invalid button/modifier in $self->{_name}<$self->{argv}[0]>: $mod\n"); + } + } + + if ($self->x_resource('matcher.pattern')) { + @{$self->{pattern}} = ($self->x_resource('matcher.pattern')); + } elsif ($self->x_resource('matcher.pattern.0')) { + my $current = 0; + + while (defined (my $res = $self->x_resource("matcher.pattern.$current"))) { + $res = $self->locale_decode($res); + utf8::encode $res; + push @{$self->{pattern}}, qr($res)x; + $current++; + } + } else { + @{$self->{pattern}} = qr{ + (?:https?://|ftp://|news://|mailto:|file://|\bwww\.) + [\w\-\@;\/?:&=%\$.+!*\x27,~#]* + ( + \([\w\-\@;\/?:&=%\$.+!*\x27,~#]*\) # Allow a pair of matched parentheses + | # + [\w\-\@;\/?:&=%\$+*~] # exclude some trailing characters (heuristic) + )+ + }x; + } + + () +} + + +sub line_update { + my ($self, $row) = @_; + + my $line = $self->line($row); + my $text = $line->t; + my $rend = $line->r; + + # clear all underlines that were set by us + for (@$rend) { + if (urxvt::GET_CUSTOM($_) & UNDERLINED) { + $_ = urxvt::SET_CUSTOM($_, urxvt::GET_CUSTOM($_) & ~UNDERLINED) & + ~urxvt::RS_Uline; + } + } + + for my $pattern (@{$self->{pattern}}) { + while ($text =~ /$pattern/g) { + my $url = $&; + my ($beg, $end) = ($-[0], $+[0] - 1); + + for (@{$rend}[$beg .. $end]) { + unless ($_ & urxvt::RS_Uline) { + $_ = urxvt::SET_CUSTOM($_, urxvt::GET_CUSTOM($_) | UNDERLINED); + $_ |= urxvt::RS_Uline; + } + } + } + } + + $line->r($rend); + + () +} + +sub on_action { + my ($self, $action) = @_; + + on_user_command($self, "url-select:" . $action); +} + + +sub on_user_command { + my ($self, $cmd) = @_; + + if ($cmd eq 'url-select:select_next') { + if (not $self->{active}) { + activate($self); + } + select_next($self, -1); + } + + () +} + + +sub key_press { + my ($self, $event, $keysym) = @_; + my $char = chr($keysym); + + if ($keysym == 0xff1b || lc($char) eq 'q' || + (lc($char) eq 'c' && $event->{state} & urxvt::ControlMask)) { + deactivate($self); + } elsif ($keysym == 0xff0d || $char eq 'o' || + (lc($char) eq 'm' && $event->{state} & urxvt::ControlMask)) { + $self->exec_async(@{$self->{browser}}, ${$self->{found}[$self->{n}]}[4]); + deactivate($self) unless $char eq 'o'; + } elsif ($char eq 'y') { + my $found = $self->{found}[$self->{n}]; + $self->selection_beg(${$found}[0], ${$found}[1]); + $self->selection_end(${$found}[2], ${$found}[3]); + $self->selection_make($event->{time}); + $self->selection_beg(1, 0); + $self->selection_end(1, 0); + deactivate($self); + } elsif ($char eq 'k' || $keysym == 0xff52 || $keysym == 0xff51) { + select_next($self, -1, $event); + } elsif ($char eq 'j' || $keysym == 0xff54 || $keysym == 0xff53) { + select_next($self, 1, $event); + } elsif ($char eq 'g' || $keysym == 0xff50) { + $self->{row} = $self->top_row - 1; + delete $self->{found}; + select_next($self, 1, $event); + } elsif ($char eq 'G' || $keysym == 0xff57) { + $self->{row} = $self->nrow; + delete $self->{found}; + select_next($self, -1, $event); + } + + return 1; +} + + +sub on_button_press { + my ($self, $event) = @_; + + my $mask = $self->ModLevel3Mask | $self->ModMetaMask | + urxvt::ShiftMask | urxvt::ControlMask; + + if ($event->{button} == $self->{button} && ($event->{state} & $mask) == $self->{state}) { + my $col = $event->{col}; + my $row = $event->{row}; + my $line = $self->line($row); + my $text = $line->t; + + for my $pattern (@{$self->{pattern}}) { + while ($text =~ /$pattern/g) { + my ($url, $beg, $end) = ($&, $-[0], $+[0]); + --$end if $url =~ s/["')]$//; + + if ($col >= $beg && $col <= $end) { + $self->{button_pressed} = 1; + $self->{button_col} = $col; + $self->{button_row} = $row; + $self->{button_url} = $url; + return 1; + } + } + } + } + + () +} + +sub on_button_release { + my ($self, $event) = @_; + + if ($self->{button_pressed} && $event->{button} == $self->{button}) { + my $col = $event->{col}; + my $row = $event->{row}; + + $self->{button_pressed} = 0; + + if ($col == $self->{button_col} && $row == $self->{button_row}) { + $self->exec_async(@{$self->{browser}}, $self->{button_url}); + return 1; + } + } + + () +} + + +sub select_next { + # $dir < 0: up, > 0: down + my ($self, $dir, $event) = @_; + my $row = $self->{row}; + + if (($dir < 0 && $self->{n} > 0) || + ($dir > 0 && $self->{n} < $#{ $self->{found} })) { + # another url on current line + $self->{n} += $dir; + hilight($self); + if ($self->{autocopy}) { + my $found = $self->{found}[$self->{n}]; + $self->selection_beg(${$found}[0], ${$found}[1]); + $self->selection_end(${$found}[2], ${$found}[3]); + $self->selection_make($event->{time}); + $self->selection_beg(1, 0); + $self->selection_end(1, 0); + } + return; + } + + while (($dir < 0 && $row > $self->top_row) || + ($dir > 0 && $row < $self->nrow - 1)) { + my $line = $self->line($row); + $row = ($dir < 0 ? $line->beg : $line->end) + $dir; + $line = $self->line($row); + my $text = $line->t; + + for my $pattern (@{$self->{pattern}}) { + if ($text =~ /$pattern/g) { + delete $self->{found}; + + do { + my ($beg, $end) = ($-[0], $+[0]); + push @{$self->{found}}, [$line->coord_of($beg), + $line->coord_of($end), substr($text, $beg, $end - $beg)]; + } while ($text =~ /$pattern/g); + + $self->{row} = $row; + $self->{n} = $dir < 0 ? $#{$self->{found}} : 0; + hilight($self); + if ($self->{autocopy}) { + my $found = $self->{found}[$self->{n}]; + $self->selection_beg(${$found}[0], ${$found}[1]); + $self->selection_end(${$found}[2], ${$found}[3]); + $self->selection_make($event->{time}); + $self->selection_beg(1, 0); + $self->selection_end(1, 0); + } + return; + } + } + } + + deactivate($self) unless $self->{found}; + + () +} + + +sub hilight { + my ($self) = @_; + + if ($self->{found}) { + if ($self->{row} < $self->view_start() || + $self->{row} >= $self->view_start() + $self->nrow) { + # scroll selected url into visible area + my $top = $self->{row} - ($self->nrow >> 1); + $self->view_start($top < 0 ? $top : 0); + } + + status_area($self); + $self->want_refresh(); + } + + () +} + + +sub refresh { + my ($self) = @_; + + if ($self->{found}) { + if ($self->x_resource('highlightColor')) { + $self->scr_xor_span(@{$self->{found}[$self->{n}]}[0 .. 3], urxvt::RS_Sel); + } else { + $self->scr_xor_span(@{$self->{found}[$self->{n}]}[0 .. 3], urxvt::RS_RVid); + } + } + + () +} + + +sub status_area { + my ($self) = @_; + + my $row = $self->{row} < 0 ? + $self->{row} - $self->top_row : abs($self->top_row) + $self->{row}; + my $text = sprintf("%d,%d ", $row + 1, $self->{n} + 1); + + if ($self->top_row == 0) { + $text .= "All"; + } elsif ($self->view_start() == $self->top_row) { + $text .= "Top"; + } elsif ($self->view_start() == 0) { + $text .= "Bot"; + } else { + $text .= sprintf("%2d%", + ($self->top_row - $self->view_start) * 100 / $self->top_row); + } + + my $text_len = length($text); + + if ($self->{overlay_len} != $text_len) { + delete $self->{overlay} if $self->{overlay}; + $self->{overlay} = $self->overlay(-1, -1, $text_len, 1, + urxvt::OVERLAY_RSTYLE, 0); + $self->{overlay_len} = $text_len; + } + + $self->{overlay}->set(0, 0, $self->special_encode($text)); + $self->{overlay}->show(); + + () +} + + +sub tt_write { + return 1; +} + + +sub activate { + my ($self) = @_; + + $self->{active} = 1; + + $self->{row} = $self->view_start() + $self->nrow; + $self->{n} = 0; + $self->{overlay_len} = 0; + $self->{button_pressed} = 0; + + $self->{view_start} = $self->view_start(); + $self->{pty_ev_events} = $self->pty_ev_events(urxvt::EV_NONE); + + $self->enable( + key_press => \&key_press, + refresh_begin => \&refresh, + refresh_end => \&refresh, + tt_write => \&tt_write, + ); + + () +} + + +sub deactivate { + my ($self) = @_; + + $self->disable("key_press", "refresh_begin", "refresh_end", "tt_write"); + $self->view_start($self->{view_start}); + $self->pty_ev_events($self->{pty_ev_events}); + + delete $self->{overlay} if $self->{overlay}; + delete $self->{found} if $self->{found}; + + $self->want_refresh(); + + $self->{active} = 0; + + () +} diff --git a/Common/i3/urxvt/urxvt b/Common/i3/urxvt/urxvt new file mode 120000 index 0000000..e98a3bb --- /dev/null +++ b/Common/i3/urxvt/urxvt @@ -0,0 +1 @@ +/home/jakob/_code/dotfiles/Common/i3/urxvt
\ No newline at end of file diff --git a/Common/i3/xsettingsd b/Common/i3/xsettingsd new file mode 100755 index 0000000..8499496 --- /dev/null +++ b/Common/i3/xsettingsd @@ -0,0 +1,4 @@ +Xft/Hinting 1 +Xft/RGBA "rgb" +Xft/HintStyle "hintslight" +Xft/Antialias 1 diff --git a/Common/rofi/applets/android/apps.sh b/Common/rofi/applets/android/apps.sh new file mode 100755 index 0000000..466c629 --- /dev/null +++ b/Common/rofi/applets/android/apps.sh @@ -0,0 +1,94 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="$HOME/.config/rofi/applets/android" +rofi_command="rofi -theme $dir/six.rasi" + +# Links +terminal="" +files="" +editor="" +browser="" +music="" +settings="" + +# Error msg +msg() { + rofi -theme "$dir/message.rasi" -e "$1" +} + +# 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) + if [[ -f /usr/bin/termite ]]; then + termite & + elif [[ -f /usr/bin/urxvt ]]; then + urxvt & + elif [[ -f /usr/bin/kitty ]]; then + kitty & + elif [[ -f /usr/bin/xterm ]]; then + xterm & + elif [[ -f /usr/bin/xfce4-terminal ]]; then + xfce4-terminal & + elif [[ -f /usr/bin/gnome-terminal ]]; then + gnome-terminal & + else + msg "No suitable terminal found!" + fi + ;; + $files) + if [[ -f /usr/bin/thunar ]]; then + thunar & + elif [[ -f /usr/bin/pcmanfm ]]; then + pcmanfm & + else + msg "No suitable file manager found!" + fi + ;; + $editor) + if [[ -f /usr/bin/geany ]]; then + geany & + elif [[ -f /usr/bin/leafpad ]]; then + leafpad & + elif [[ -f /usr/bin/mousepad ]]; then + mousepad & + elif [[ -f /usr/bin/code ]]; then + code & + else + msg "No suitable text editor found!" + fi + ;; + $browser) + if [[ -f /usr/bin/firefox ]]; then + firefox & + elif [[ -f /usr/bin/chromium ]]; then + chromium & + elif [[ -f /usr/bin/midori ]]; then + midori & + else + msg "No suitable web browser found!" + fi + ;; + $music) + if [[ -f /usr/bin/lxmusic ]]; then + lxmusic & + else + msg "No suitable music player found!" + fi + ;; + $settings) + if [[ -f /usr/bin/xfce4-settings-manager ]]; then + xfce4-settings-manager & + else + msg "No suitable settings manager found!" + fi + ;; +esac + diff --git a/Common/rofi/applets/android/backlight.sh b/Common/rofi/applets/android/backlight.sh new file mode 100755 index 0000000..141b9ae --- /dev/null +++ b/Common/rofi/applets/android/backlight.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="$HOME/.config/rofi/applets/android" +rofi_command="rofi -theme $dir/three.rasi" + +# Error msg +msg() { + rofi -theme "$dir/message.rasi" -e "$1" +} + +## Get Brightness +if [[ -f /usr/bin/blight ]]; then + DEVICE=$(ls /sys/class/backlight | head -n 1) + BNESS="$(blight -d $DEVICE get brightness)" + PERC="$(($BNESS*100/255))" + BLIGHT=${PERC%.*} +elif [[ -f /usr/bin/xbacklight ]]; then + VAR="$(xbacklight -get)" + BLIGHT="$(printf "%.0f\n" "$VAR")" +else + msg "No suitable backlight utility found!" + exit 1 +fi + +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="" + +notify="notify-send -u low -t 1500" +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) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set +10% && $notify "Brightness Up $ICON_UP" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -inc 10 && $notify "Brightness Up $ICON_UP" + fi + ;; + $ICON_DOWN) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set -10% && $notify "Brightness Down $ICON_DOWN" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -dec 10 && $notify "Brightness Down $ICON_DOWN" + fi + ;; + $ICON_OPT) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set 25% && $notify "Optimal Brightness $ICON_OPT" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -set 30 && $notify "Optimal Brightness $ICON_OPT" + fi + ;; +esac + diff --git a/Common/rofi/applets/android/colors.rasi b/Common/rofi/applets/android/colors.rasi new file mode 100644 index 0000000..5ce46fc --- /dev/null +++ b/Common/rofi/applets/android/colors.rasi @@ -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 "../styles/arc.rasi" diff --git a/Common/rofi/applets/android/confirm.rasi b/Common/rofi/applets/android/confirm.rasi new file mode 100644 index 0000000..970783f --- /dev/null +++ b/Common/rofi/applets/android/confirm.rasi @@ -0,0 +1,24 @@ +/* Confirm Dialog */ + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; + font: "Iosevka Nerd Font 12"; +} + +window { + width: 225px; + padding: 25px; + border: 0px; + border-radius: 12px; + border-color: @accent; + location: center; + y-offset: -20px; +} + +entry { + expand: true; + text-color: @accent; +} diff --git a/Common/rofi/applets/android/five.rasi b/Common/rofi/applets/android/five.rasi new file mode 100644 index 0000000..bcf13fc --- /dev/null +++ b/Common/rofi/applets/android/five.rasi @@ -0,0 +1,91 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + width: 100px; + location: east; + x-offset: -15px; + y-offset: 0px; +} + +listview { + lines: 5; + margin: 8px; + spacing: 8px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ listview ]; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 10px 10px 33px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 10px; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 10px; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/applets/android/message.rasi b/Common/rofi/applets/android/message.rasi new file mode 100644 index 0000000..f35d3a2 --- /dev/null +++ b/Common/rofi/applets/android/message.rasi @@ -0,0 +1,24 @@ +/* Confirm Dialog */ + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; + font: "Iosevka Nerd Font 12"; +} + +window { + width: 360px; + padding: 25px; + border: 0px; + border-radius: 12px; + border-color: @accent; + location: center; + y-offset: -20px; +} + +entry { + expand: true; + text-color: @accent; +} diff --git a/Common/rofi/applets/android/mpd.sh b/Common/rofi/applets/android/mpd.sh new file mode 100755 index 0000000..6f15be0 --- /dev/null +++ b/Common/rofi/applets/android/mpd.sh @@ -0,0 +1,76 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="$HOME/.config/rofi/applets/android" +rofi_command="rofi -theme $dir/six.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 diff --git a/Common/rofi/applets/android/powermenu.sh b/Common/rofi/applets/android/powermenu.sh new file mode 100755 index 0000000..e28c731 --- /dev/null +++ b/Common/rofi/applets/android/powermenu.sh @@ -0,0 +1,94 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="$HOME/.config/rofi/applets/android" +rofi_command="rofi -theme $dir/five.rasi" + +uptime=$(uptime -p | sed -e 's/up //g') + +# Options +shutdown="" +reboot="" +lock="" +suspend="" +logout="" + +# Confirmation +confirm_exit() { + rofi -dmenu\ + -i\ + -no-fixed-num-lines\ + -p "Are You Sure? : "\ + -theme $dir/confirm.rasi +} + +# Message +msg() { + rofi -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n" +} + +# Variable passed to rofi +options="$shutdown\n$reboot\n$lock\n$suspend\n$logout" + +chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 2)" +case $chosen in + $shutdown) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl poweroff + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $reboot) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl reboot + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $lock) + if [[ -f /usr/bin/i3lock ]]; then + i3lock + elif [[ -f /usr/bin/betterlockscreen ]]; then + betterlockscreen -l + fi + ;; + $suspend) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + mpc -q pause + amixer set Master mute + systemctl suspend + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $logout) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then + openbox --exit + elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then + bspc quit + elif [[ "$DESKTOP_SESSION" == "i3" ]]; then + i3-msg exit + fi + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; +esac diff --git a/Common/rofi/applets/android/quicklinks.sh b/Common/rofi/applets/android/quicklinks.sh new file mode 100755 index 0000000..e2ae62f --- /dev/null +++ b/Common/rofi/applets/android/quicklinks.sh @@ -0,0 +1,60 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="$HOME/.config/rofi/applets/android" +rofi_command="rofi -theme $dir/six.rasi" + +# Error msg +msg() { + rofi -theme "$dir/message.rasi" -e "$1" +} + +# Browser +if [[ -f /usr/bin/firefox ]]; then + app="firefox" +elif [[ -f /usr/bin/chromium ]]; then + app="chromium" +elif [[ -f /usr/bin/midori ]]; then + app="midori" +else + msg "No suitable web browser found!" + exit 1 +fi + +# Links +google="" +facebook="" +twitter="" +github="" +mail="" +youtube="" + +# Variable passed to rofi +options="$google\n$facebook\n$twitter\n$github\n$mail\n$youtube" + +chosen="$(echo -e "$options" | $rofi_command -p "Open In : Firefox" -dmenu -selected-row 0)" +case $chosen in + $google) + $app https://www.google.com & + ;; + $facebook) + $app https://www.facebook.com & + ;; + $twitter) + $app https://www.twitter.com & + ;; + $github) + $app https://www.github.com & + ;; + $mail) + $app https://www.gmail.com & + ;; + $youtube) + $app https://www.youtube.com & + ;; +esac + diff --git a/Common/rofi/applets/android/screenshot.sh b/Common/rofi/applets/android/screenshot.sh new file mode 100755 index 0000000..95abe34 --- /dev/null +++ b/Common/rofi/applets/android/screenshot.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="$HOME/.config/rofi/applets/android" +rofi_command="rofi -theme $dir/three.rasi" + +# Error msg +msg() { + rofi -theme "$dir/message.rasi" -e "Please install 'scrot' first." +} + +# 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) + if [[ -f /usr/bin/scrot ]]; then + sleep 1; scrot 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' + else + msg + fi + ;; + $area) + if [[ -f /usr/bin/scrot ]]; then + scrot -s 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' + else + msg + fi + ;; + $window) + if [[ -f /usr/bin/scrot ]]; then + 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' + else + msg + fi + ;; +esac + diff --git a/Common/rofi/applets/android/six.rasi b/Common/rofi/applets/android/six.rasi new file mode 100644 index 0000000..f57394b --- /dev/null +++ b/Common/rofi/applets/android/six.rasi @@ -0,0 +1,91 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + width: 100px; + location: east; + x-offset: -15px; + y-offset: 0px; +} + +listview { + lines: 6; + margin: 8px; + spacing: 8px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ listview ]; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 10px 10px 33px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 10px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 10px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/android/three.rasi b/Common/rofi/applets/android/three.rasi new file mode 100644 index 0000000..cdac3de --- /dev/null +++ b/Common/rofi/applets/android/three.rasi @@ -0,0 +1,91 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + width: 100px; + location: east; + x-offset: -15px; + y-offset: 0px; +} + +listview { + lines: 3; + margin: 8px; + spacing: 8px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ listview ]; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 10px 10px 33px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 10px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 10px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/android/volume.sh b/Common/rofi/applets/android/volume.sh new file mode 100755 index 0000000..429db8c --- /dev/null +++ b/Common/rofi/applets/android/volume.sh @@ -0,0 +1,56 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +dir="$HOME/.config/rofi/applets/android" +rofi_command="rofi -theme $dir/three.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 + diff --git a/Common/rofi/applets/applets/apps.sh b/Common/rofi/applets/applets/apps.sh new file mode 100755 index 0000000..f8129ce --- /dev/null +++ b/Common/rofi/applets/applets/apps.sh @@ -0,0 +1,95 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/apps.rasi" + +# Links +terminal="" +files="" +editor="" +browser="" +music="" +settings="" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1" +} + +# 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) + if [[ -f /usr/bin/termite ]]; then + termite & + elif [[ -f /usr/bin/urxvt ]]; then + urxvt & + elif [[ -f /usr/bin/kitty ]]; then + kitty & + elif [[ -f /usr/bin/xterm ]]; then + xterm & + elif [[ -f /usr/bin/xfce4-terminal ]]; then + xfce4-terminal & + elif [[ -f /usr/bin/gnome-terminal ]]; then + gnome-terminal & + else + msg "No suitable terminal found!" + fi + ;; + $files) + if [[ -f /usr/bin/thunar ]]; then + thunar & + elif [[ -f /usr/bin/pcmanfm ]]; then + pcmanfm & + else + msg "No suitable file manager found!" + fi + ;; + $editor) + if [[ -f /usr/bin/geany ]]; then + geany & + elif [[ -f /usr/bin/leafpad ]]; then + leafpad & + elif [[ -f /usr/bin/mousepad ]]; then + mousepad & + elif [[ -f /usr/bin/code ]]; then + code & + else + msg "No suitable text editor found!" + fi + ;; + $browser) + if [[ -f /usr/bin/firefox ]]; then + firefox & + elif [[ -f /usr/bin/chromium ]]; then + chromium & + elif [[ -f /usr/bin/midori ]]; then + midori & + else + msg "No suitable web browser found!" + fi + ;; + $music) + if [[ -f /usr/bin/lxmusic ]]; then + lxmusic & + else + msg "No suitable music player found!" + fi + ;; + $settings) + if [[ -f /usr/bin/xfce4-settings-manager ]]; then + xfce4-settings-manager & + else + msg "No suitable settings manager found!" + fi + ;; +esac diff --git a/Common/rofi/applets/applets/backlight.sh b/Common/rofi/applets/applets/backlight.sh new file mode 100755 index 0000000..e5e096e --- /dev/null +++ b/Common/rofi/applets/applets/backlight.sh @@ -0,0 +1,82 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi MouseDPrimary -theme $dir/backlight.rasi" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1" +} + +pkill rofi + +## Main +while true; do + ## Get Brightness + if [[ -f /usr/bin/blight ]]; then + DEVICE=$(ls /sys/class/backlight | head -n 1) + BNESS="$(blight -d $DEVICE get brightness)" + PERC="$(($BNESS*100/255))" + BLIGHT=${PERC%.*} + elif [[ -f /usr/bin/xbacklight ]]; then + VAR="$(xbacklight -get)" + BLIGHT="$(printf "%.0f\n" "$VAR")" + else + msg "No suitable backlight utility found!" + exit 1 + fi + + 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="" + + notify="notify-send -u low -t 1500" + options="$ICON_UP\n$ICON_OPT\n$ICON_DOWN" + + chosen="$(echo -e "$options" | $rofi_command -p "$BLIGHT%" -dmenu -selected-row 1)" + case $chosen in + $ICON_UP) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set +10% && $notify "Brightness Up $ICON_UP" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -inc 10 && $notify "Brightness Up $ICON_UP" + fi + continue + ;; + $ICON_DOWN) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set -10% && $notify "Brightness Down $ICON_DOWN" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -dec 10 && $notify "Brightness Down $ICON_DOWN" + fi + continue + ;; + $ICON_OPT) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set 25% && $notify "Optimal Brightness $ICON_OPT" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -set 30 && $notify "Optimal Brightness $ICON_OPT" + fi + continue + ;; + esac + break +done diff --git a/Common/rofi/applets/applets/backlight_modi.sh b/Common/rofi/applets/applets/backlight_modi.sh new file mode 100755 index 0000000..e5e096e --- /dev/null +++ b/Common/rofi/applets/applets/backlight_modi.sh @@ -0,0 +1,82 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi MouseDPrimary -theme $dir/backlight.rasi" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1" +} + +pkill rofi + +## Main +while true; do + ## Get Brightness + if [[ -f /usr/bin/blight ]]; then + DEVICE=$(ls /sys/class/backlight | head -n 1) + BNESS="$(blight -d $DEVICE get brightness)" + PERC="$(($BNESS*100/255))" + BLIGHT=${PERC%.*} + elif [[ -f /usr/bin/xbacklight ]]; then + VAR="$(xbacklight -get)" + BLIGHT="$(printf "%.0f\n" "$VAR")" + else + msg "No suitable backlight utility found!" + exit 1 + fi + + 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="" + + notify="notify-send -u low -t 1500" + options="$ICON_UP\n$ICON_OPT\n$ICON_DOWN" + + chosen="$(echo -e "$options" | $rofi_command -p "$BLIGHT%" -dmenu -selected-row 1)" + case $chosen in + $ICON_UP) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set +10% && $notify "Brightness Up $ICON_UP" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -inc 10 && $notify "Brightness Up $ICON_UP" + fi + continue + ;; + $ICON_DOWN) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set -10% && $notify "Brightness Down $ICON_DOWN" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -dec 10 && $notify "Brightness Down $ICON_DOWN" + fi + continue + ;; + $ICON_OPT) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set 25% && $notify "Optimal Brightness $ICON_OPT" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -set 30 && $notify "Optimal Brightness $ICON_OPT" + fi + continue + ;; + esac + break +done diff --git a/Common/rofi/applets/applets/battery.sh b/Common/rofi/applets/applets/battery.sh new file mode 100755 index 0000000..8a38ab4 --- /dev/null +++ b/Common/rofi/applets/applets/battery.sh @@ -0,0 +1,65 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/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 +elif [[ $CHARGE = *"Full"* ]]; then + active="-u 1" + ICON_CHRG="" + MSG=$CHARGE +else + urgent="-u 1" + ICON_CHRG="" + MSG=$CHARGE +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 + diff --git a/Common/rofi/applets/applets/configs/circle/apps.rasi b/Common/rofi/applets/applets/configs/circle/apps.rasi new file mode 100644 index 0000000..50c304c --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/apps.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Apps "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/backlight.rasi b/Common/rofi/applets/applets/configs/circle/backlight.rasi new file mode 100644 index 0000000..f425394 --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/backlight.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Brightness "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/battery.rasi b/Common/rofi/applets/applets/configs/circle/battery.rasi new file mode 100644 index 0000000..613b3e8 --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/battery.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 260px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Battery "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "Iosevka Nerd Font 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/mpd.rasi b/Common/rofi/applets/applets/configs/circle/mpd.rasi new file mode 100644 index 0000000..c6d90f1 --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/mpd.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " MPD "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/network.rasi b/Common/rofi/applets/applets/configs/circle/network.rasi new file mode 100644 index 0000000..95ca4f6 --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/network.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 335px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Network "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 4; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/powermenu.rasi b/Common/rofi/applets/applets/configs/circle/powermenu.rasi new file mode 100644 index 0000000..3fb72bd --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/powermenu.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 420px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " System "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 5; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/quicklinks.rasi b/Common/rofi/applets/applets/configs/circle/quicklinks.rasi new file mode 100644 index 0000000..3a68738 --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/quicklinks.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Quick Links "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/screenshot.rasi b/Common/rofi/applets/applets/configs/circle/screenshot.rasi new file mode 100644 index 0000000..d69f1af --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/screenshot.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Screenshot "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/time.rasi b/Common/rofi/applets/applets/configs/circle/time.rasi new file mode 100644 index 0000000..27ce99e --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/time.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 450px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Time "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "Hurmit Nerd Font Mono 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 50px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/circle/volume.rasi b/Common/rofi/applets/applets/configs/circle/volume.rasi new file mode 100644 index 0000000..66cc4b9 --- /dev/null +++ b/Common/rofi/applets/applets/configs/circle/volume.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 40px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 25px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Volume "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; + border-radius: 25px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 0px 2px 0px; + border-radius: 100%; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/apps.rasi b/Common/rofi/applets/applets/configs/rounded/apps.rasi new file mode 100644 index 0000000..d76bfff --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/apps.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Apps "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/backlight.rasi b/Common/rofi/applets/applets/configs/rounded/backlight.rasi new file mode 100644 index 0000000..e898df8 --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/backlight.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Brightness "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/battery.rasi b/Common/rofi/applets/applets/configs/rounded/battery.rasi new file mode 100644 index 0000000..8a5f409 --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/battery.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Battery "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "Iosevka Nerd Font 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/mpd.rasi b/Common/rofi/applets/applets/configs/rounded/mpd.rasi new file mode 100644 index 0000000..f6dc27d --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/mpd.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " MPD "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/network.rasi b/Common/rofi/applets/applets/configs/rounded/network.rasi new file mode 100644 index 0000000..b083893 --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/network.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 335px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Network "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 4; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/powermenu.rasi b/Common/rofi/applets/applets/configs/rounded/powermenu.rasi new file mode 100644 index 0000000..1842292 --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/powermenu.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 420px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " System "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 5; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/quicklinks.rasi b/Common/rofi/applets/applets/configs/rounded/quicklinks.rasi new file mode 100644 index 0000000..95da05d --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/quicklinks.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Quick Links "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/screenshot.rasi b/Common/rofi/applets/applets/configs/rounded/screenshot.rasi new file mode 100644 index 0000000..308186d --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/screenshot.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Screenshot "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/time.rasi b/Common/rofi/applets/applets/configs/rounded/time.rasi new file mode 100644 index 0000000..d4241c0 --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/time.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 450px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Time "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "Hurmit Nerd Font Mono 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 50px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/rounded/volume.rasi b/Common/rofi/applets/applets/configs/rounded/volume.rasi new file mode 100644 index 0000000..658fc15 --- /dev/null +++ b/Common/rofi/applets/applets/configs/rounded/volume.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 12px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 10px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Volume "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 12px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 12px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 12px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @background-light; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/apps.rasi b/Common/rofi/applets/applets/configs/square/apps.rasi new file mode 100644 index 0000000..ca4aaf9 --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/apps.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Apps "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/backlight.rasi b/Common/rofi/applets/applets/configs/square/backlight.rasi new file mode 100644 index 0000000..546cda9 --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/backlight.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Brightness "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/battery.rasi b/Common/rofi/applets/applets/configs/square/battery.rasi new file mode 100644 index 0000000..0b3017c --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/battery.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Battery "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "Iosevka Nerd Font 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/mpd.rasi b/Common/rofi/applets/applets/configs/square/mpd.rasi new file mode 100644 index 0000000..66658d7 --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/mpd.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " MPD "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/network.rasi b/Common/rofi/applets/applets/configs/square/network.rasi new file mode 100644 index 0000000..d30db77 --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/network.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 350px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Network "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 4; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/powermenu.rasi b/Common/rofi/applets/applets/configs/square/powermenu.rasi new file mode 100644 index 0000000..ed1a48f --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/powermenu.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 420px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " System "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 5; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/quicklinks.rasi b/Common/rofi/applets/applets/configs/square/quicklinks.rasi new file mode 100644 index 0000000..0817a17 --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/quicklinks.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 500px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Quick Links "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/screenshot.rasi b/Common/rofi/applets/applets/configs/square/screenshot.rasi new file mode 100644 index 0000000..85d5b4c --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/screenshot.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Screenshot "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/time.rasi b/Common/rofi/applets/applets/configs/square/time.rasi new file mode 100644 index 0000000..fd0836c --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/time.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 450px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Time "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "Hurmit Nerd Font Mono 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 50px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/configs/square/volume.rasi b/Common/rofi/applets/applets/configs/square/volume.rasi new file mode 100644 index 0000000..74eaaf6 --- /dev/null +++ b/Common/rofi/applets/applets/configs/square/volume.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 12"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: southeast; + width: 250px; + x-offset: -15px; + y-offset: -45px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Volume "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 12px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 12px; + margin: 12px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 20"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 5px 10px 30px 10px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/applets/mpd.sh b/Common/rofi/applets/applets/mpd.sh new file mode 100755 index 0000000..d1f3d2b --- /dev/null +++ b/Common/rofi/applets/applets/mpd.sh @@ -0,0 +1,78 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/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 diff --git a/Common/rofi/applets/applets/network.sh b/Common/rofi/applets/applets/network.sh new file mode 100755 index 0000000..260eddb --- /dev/null +++ b/Common/rofi/applets/applets/network.sh @@ -0,0 +1,68 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/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="$(wget --timeout=30 http://ipinfo.io/ip -qO -)" + 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" -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 + diff --git a/Common/rofi/applets/applets/powermenu.sh b/Common/rofi/applets/applets/powermenu.sh new file mode 100755 index 0000000..75d58c7 --- /dev/null +++ b/Common/rofi/applets/applets/powermenu.sh @@ -0,0 +1,98 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/powermenu.rasi" + +uptime=$(uptime -p | sed -e 's/up //g') +cpu=$(sh ~/.config/rofi/bin/usedcpu) +memory=$(sh ~/.config/rofi/bin/usedram) + +# Options +shutdown="" +reboot="" +lock="" +suspend="" +logout="" + +# Confirmation +confirm_exit() { + rofi -dmenu\ + -i\ + -no-fixed-num-lines\ + -p "Are You Sure? : "\ + -theme $HOME/.config/rofi/applets/styles/confirm.rasi +} + +# Message +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "Available Options - yes / y / no / n" +} + +# 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) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl poweroff + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $reboot) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl reboot + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $lock) + if [[ -f /usr/bin/i3lock ]]; then + i3lock + elif [[ -f /usr/bin/betterlockscreen ]]; then + betterlockscreen -l + fi + ;; + $suspend) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + mpc -q pause + amixer set Master mute + systemctl suspend + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $logout) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then + openbox --exit + elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then + bspc quit + elif [[ "$DESKTOP_SESSION" == "i3" ]]; then + i3-msg exit + fi + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; +esac diff --git a/Common/rofi/applets/applets/quicklinks.sh b/Common/rofi/applets/applets/quicklinks.sh new file mode 100755 index 0000000..e736b71 --- /dev/null +++ b/Common/rofi/applets/applets/quicklinks.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/quicklinks.rasi" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1" +} + +# Browser +if [[ -f /usr/bin/firefox ]]; then + app="firefox" +elif [[ -f /usr/bin/chromium ]]; then + app="chromium" +elif [[ -f /usr/bin/midori ]]; then + app="midori" +else + msg "No suitable web browser found!" + exit 1 +fi + +# Links +google="" +facebook="" +twitter="" +github="" +mail="" +youtube="" + +# Variable passed to rofi +options="$google\n$facebook\n$twitter\n$github\n$mail\n$youtube" + +chosen="$(echo -e "$options" | $rofi_command -p "Open In : $app" -dmenu -selected-row 0)" +case $chosen in + $google) + $app https://www.google.com & + ;; + $facebook) + $app https://www.facebook.com & + ;; + $twitter) + $app https://www.twitter.com & + ;; + $github) + $app https://www.github.com & + ;; + $mail) + $app https://www.gmail.com & + ;; + $youtube) + $app https://www.youtube.com & + ;; +esac + diff --git a/Common/rofi/applets/applets/screenshot.sh b/Common/rofi/applets/applets/screenshot.sh new file mode 100755 index 0000000..f614599 --- /dev/null +++ b/Common/rofi/applets/applets/screenshot.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/screenshot.rasi" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "Please install 'scrot' first." +} + +# 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) + if [[ -f /usr/bin/scrot ]]; then + sleep 1; scrot 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' + else + msg + fi + ;; + $area) + if [[ -f /usr/bin/scrot ]]; then + scrot -s 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' + else + msg + fi + ;; + $window) + if [[ -f /usr/bin/scrot ]]; then + 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' + else + msg + fi + ;; +esac + diff --git a/Common/rofi/applets/applets/style.sh b/Common/rofi/applets/applets/style.sh new file mode 100755 index 0000000..68b9668 --- /dev/null +++ b/Common/rofi/applets/applets/style.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# square circle rounded + +style="square" + +# uncomment these lines to enable random style +#styles=('square' 'circle' 'rounded') +#style="${styles[$(( $RANDOM % 3 ))]}" + +# print style name +echo "$style" diff --git a/Common/rofi/applets/applets/time.sh b/Common/rofi/applets/applets/time.sh new file mode 100755 index 0000000..b8e7e8c --- /dev/null +++ b/Common/rofi/applets/applets/time.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/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 " $DN, $TIME" -dmenu -selected-row 1)" diff --git a/Common/rofi/applets/applets/volume.sh b/Common/rofi/applets/applets/volume.sh new file mode 100755 index 0000000..7be3242 --- /dev/null +++ b/Common/rofi/applets/applets/volume.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/applets/style.sh)" + +dir="$HOME/.config/rofi/applets/applets/configs/$style" +rofi_command="rofi -theme $dir/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="Mute" +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 + diff --git a/Common/rofi/applets/menu/apps.sh b/Common/rofi/applets/menu/apps.sh new file mode 100755 index 0000000..b5dd989 --- /dev/null +++ b/Common/rofi/applets/menu/apps.sh @@ -0,0 +1,95 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/apps.rasi" + +# Links +terminal="" +files="" +editor="" +browser="" +music="" +settings="" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1" +} + +# 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) + if [[ -f /usr/bin/termite ]]; then + termite & + elif [[ -f /usr/bin/urxvt ]]; then + urxvt & + elif [[ -f /usr/bin/kitty ]]; then + kitty & + elif [[ -f /usr/bin/xterm ]]; then + xterm & + elif [[ -f /usr/bin/xfce4-terminal ]]; then + xfce4-terminal & + elif [[ -f /usr/bin/gnome-terminal ]]; then + gnome-terminal & + else + msg "No suitable terminal found!" + fi + ;; + $files) + if [[ -f /usr/bin/thunar ]]; then + thunar & + elif [[ -f /usr/bin/pcmanfm ]]; then + pcmanfm & + else + msg "No suitable file manager found!" + fi + ;; + $editor) + if [[ -f /usr/bin/geany ]]; then + geany & + elif [[ -f /usr/bin/leafpad ]]; then + leafpad & + elif [[ -f /usr/bin/mousepad ]]; then + mousepad & + elif [[ -f /usr/bin/code ]]; then + code & + else + msg "No suitable text editor found!" + fi + ;; + $browser) + if [[ -f /usr/bin/firefox ]]; then + firefox & + elif [[ -f /usr/bin/chromium ]]; then + chromium & + elif [[ -f /usr/bin/midori ]]; then + midori & + else + msg "No suitable web browser found!" + fi + ;; + $music) + if [[ -f /usr/bin/lxmusic ]]; then + lxmusic & + else + msg "No suitable music player found!" + fi + ;; + $settings) + if [[ -f /usr/bin/xfce4-settings-manager ]]; then + xfce4-settings-manager & + else + msg "No suitable settings manager found!" + fi + ;; +esac diff --git a/Common/rofi/applets/menu/backlight.sh b/Common/rofi/applets/menu/backlight.sh new file mode 100755 index 0000000..144c76c --- /dev/null +++ b/Common/rofi/applets/menu/backlight.sh @@ -0,0 +1,75 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/backlight.rasi" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1" +} + +## Get Brightness +if [[ -f /usr/bin/blight ]]; then + DEVICE=$(ls /sys/class/backlight | head -n 1) + BNESS="$(blight -d $DEVICE get brightness)" + PERC="$(($BNESS*100/255))" + BLIGHT=${PERC%.*} +elif [[ -f /usr/bin/xbacklight ]]; then + VAR="$(xbacklight -get)" + BLIGHT="$(printf "%.0f\n" "$VAR")" +else + msg "No suitable backlight utility found!" + exit 1 +fi + +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="" + +notify="notify-send -u low -t 1500" +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) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set +10% && $notify "Brightness Up $ICON_UP" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -inc 10 && $notify "Brightness Up $ICON_UP" + fi + ;; + $ICON_DOWN) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set -10% && $notify "Brightness Down $ICON_DOWN" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -dec 10 && $notify "Brightness Down $ICON_DOWN" + fi + ;; + $ICON_OPT) + if [[ -f /usr/bin/blight ]]; then + blight -d $DEVICE set 25% && $notify "Optimal Brightness $ICON_OPT" + elif [[ -f /usr/bin/xbacklight ]]; then + xbacklight -set 30 && $notify "Optimal Brightness $ICON_OPT" + fi + ;; +esac + diff --git a/Common/rofi/applets/menu/battery.sh b/Common/rofi/applets/menu/battery.sh new file mode 100755 index 0000000..c279794 --- /dev/null +++ b/Common/rofi/applets/menu/battery.sh @@ -0,0 +1,65 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/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 +elif [[ $CHARGE = *"Full"* ]]; then + active="-u 1" + ICON_CHRG="" + MSG=$CHARGE +else + urgent="-u 1" + ICON_CHRG="" + MSG=$CHARGE +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 + diff --git a/Common/rofi/applets/menu/configs/circle/apps.rasi b/Common/rofi/applets/menu/configs/circle/apps.rasi new file mode 100644 index 0000000..ba22543 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/apps.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Apps "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/backlight.rasi b/Common/rofi/applets/menu/configs/circle/backlight.rasi new file mode 100644 index 0000000..8387b32 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/backlight.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Brightness "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/battery.rasi b/Common/rofi/applets/menu/configs/circle/battery.rasi new file mode 100644 index 0000000..8b4a0c2 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/battery.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Battery "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "Iosevka Nerd Font 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/mpd.rasi b/Common/rofi/applets/menu/configs/circle/mpd.rasi new file mode 100644 index 0000000..b1c6716 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/mpd.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " MPD "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/network.rasi b/Common/rofi/applets/menu/configs/circle/network.rasi new file mode 100644 index 0000000..49263b6 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/network.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 650px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Network "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 4; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/powermenu.rasi b/Common/rofi/applets/menu/configs/circle/powermenu.rasi new file mode 100644 index 0000000..029f613 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/powermenu.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 800px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " System "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 5; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/quicklinks.rasi b/Common/rofi/applets/menu/configs/circle/quicklinks.rasi new file mode 100644 index 0000000..64a58ba --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/quicklinks.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Quick Links "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/screenshot.rasi b/Common/rofi/applets/menu/configs/circle/screenshot.rasi new file mode 100644 index 0000000..790e927 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/screenshot.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Screenshot "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/time.rasi b/Common/rofi/applets/menu/configs/circle/time.rasi new file mode 100644 index 0000000..7dead61 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/time.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 700px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Time "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "Hurmit Nerd Font Mono 48"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 90px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/circle/volume.rasi b/Common/rofi/applets/menu/configs/circle/volume.rasi new file mode 100644 index 0000000..59c9d46 --- /dev/null +++ b/Common/rofi/applets/menu/configs/circle/volume.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 100%; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Volume "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 100%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 100%; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/apps.rasi b/Common/rofi/applets/menu/configs/rounded/apps.rasi new file mode 100644 index 0000000..e8435de --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/apps.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Apps "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/backlight.rasi b/Common/rofi/applets/menu/configs/rounded/backlight.rasi new file mode 100644 index 0000000..ef6549f --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/backlight.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Brightness "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/battery.rasi b/Common/rofi/applets/menu/configs/rounded/battery.rasi new file mode 100644 index 0000000..85cb2db --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/battery.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Battery "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "Iosevka Nerd Font 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/mpd.rasi b/Common/rofi/applets/menu/configs/rounded/mpd.rasi new file mode 100644 index 0000000..7a2063b --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/mpd.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " MPD "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/network.rasi b/Common/rofi/applets/menu/configs/rounded/network.rasi new file mode 100644 index 0000000..ab1bc02 --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/network.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 650px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Network "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 4; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/powermenu.rasi b/Common/rofi/applets/menu/configs/rounded/powermenu.rasi new file mode 100644 index 0000000..28910f0 --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/powermenu.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 800px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " System "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 5; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/quicklinks.rasi b/Common/rofi/applets/menu/configs/rounded/quicklinks.rasi new file mode 100644 index 0000000..e3f65d8 --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/quicklinks.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Quick Links "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/screenshot.rasi b/Common/rofi/applets/menu/configs/rounded/screenshot.rasi new file mode 100644 index 0000000..e8efd03 --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/screenshot.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Screenshot "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/time.rasi b/Common/rofi/applets/menu/configs/rounded/time.rasi new file mode 100644 index 0000000..a033820 --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/time.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 700px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Time "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "Hurmit Nerd Font Mono 48"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 90px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/rounded/volume.rasi b/Common/rofi/applets/menu/configs/rounded/volume.rasi new file mode 100644 index 0000000..fe1737c --- /dev/null +++ b/Common/rofi/applets/menu/configs/rounded/volume.rasi @@ -0,0 +1,127 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 20px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background; + text-color: @accent; + border: 0px 2px 0px 2px; + border-radius: 12px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Volume "; + background-color: @accent; + text-color: @background; + padding: 10px 10px 0px 10px; + border-radius: 12px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 15px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 20px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 20px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 20px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/apps.rasi b/Common/rofi/applets/menu/configs/square/apps.rasi new file mode 100644 index 0000000..4561d46 --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/apps.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Apps "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/backlight.rasi b/Common/rofi/applets/menu/configs/square/backlight.rasi new file mode 100644 index 0000000..213446d --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/backlight.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Brightness "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/battery.rasi b/Common/rofi/applets/menu/configs/square/battery.rasi new file mode 100644 index 0000000..ddfbc4f --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/battery.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Battery "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "Iosevka Nerd Font 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/mpd.rasi b/Common/rofi/applets/menu/configs/square/mpd.rasi new file mode 100644 index 0000000..bbaa763 --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/mpd.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 4px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " MPD "; + background-color: @accent; + text-color: @background; + padding: 14px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/network.rasi b/Common/rofi/applets/menu/configs/square/network.rasi new file mode 100644 index 0000000..3464a6f --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/network.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 650px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Network "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 4; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/powermenu.rasi b/Common/rofi/applets/menu/configs/square/powermenu.rasi new file mode 100644 index 0000000..958db5a --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/powermenu.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 800px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " System "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 5; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/quicklinks.rasi b/Common/rofi/applets/menu/configs/square/quicklinks.rasi new file mode 100644 index 0000000..0da3bff --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/quicklinks.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 950px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Quick Links "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 6; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/screenshot.rasi b/Common/rofi/applets/menu/configs/square/screenshot.rasi new file mode 100644 index 0000000..a7b46d4 --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/screenshot.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Screenshot "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/time.rasi b/Common/rofi/applets/menu/configs/square/time.rasi new file mode 100644 index 0000000..35ab8d5 --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/time.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 700px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Time "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "Hurmit Nerd Font Mono 48"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 30px 0px 90px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/configs/square/volume.rasi b/Common/rofi/applets/menu/configs/square/volume.rasi new file mode 100644 index 0000000..1f8ab28 --- /dev/null +++ b/Common/rofi/applets/menu/configs/square/volume.rasi @@ -0,0 +1,126 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Comfortaa 14"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "../../../styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; +} + +window { + transparency: "real"; + border-radius: 0px; + location: center; + width: 500px; + x-offset: 0px; + y-offset: 0px; +} + +prompt { + enabled: true; + padding: 10px; + background-color: @background-light; + text-color: @accent; + border: 2px 2px 2px 2px; + border-radius: 0px; + border-color: @accent; +} + +textbox-prompt-colon { + expand: false; + str: " Volume "; + background-color: @accent; + text-color: @background; + padding: 12px 10px 0px 10px; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + spacing: 0px; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0px; + border-radius: 0px; + border-color: @accent; + margin: 0px 0px 0px 0px; + padding: 0px; + position: center; +} + +listview { + columns: 3; + lines: 1; + spacing: 15px; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 15px; + margin: 40px; +} + +element { + background-color: @background-light; + text-color: @foreground; + orientation: vertical; + border-radius: 0px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0; + margin: 25px 0px 65px 0px; +} + +element normal.urgent, +element alternate.urgent { + background-color: @off; + text-color: @background; + border-radius: 0px; +} + +element normal.active, +element alternate.active { + background-color: @on; + text-color: @background; +} + +element selected { + background-color: @accent; + text-color: @background; + border: 0px; + border-radius: 0px; + border-color: @border; +} + +element selected.urgent { + background-color: @on; + text-color: @background; +} + +element selected.active { + background-color: @off; + color: @background; +} diff --git a/Common/rofi/applets/menu/mpd.sh b/Common/rofi/applets/menu/mpd.sh new file mode 100755 index 0000000..3eb5498 --- /dev/null +++ b/Common/rofi/applets/menu/mpd.sh @@ -0,0 +1,78 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/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 "%artist% - %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 diff --git a/Common/rofi/applets/menu/network.sh b/Common/rofi/applets/menu/network.sh new file mode 100755 index 0000000..80c270f --- /dev/null +++ b/Common/rofi/applets/menu/network.sh @@ -0,0 +1,68 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/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="$(wget --timeout=30 http://ipinfo.io/ip -qO -)" + 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) + urxvt -e bmon + ;; + $launch_cli) + urxvt -e nmtui + ;; + $launch) + nm-connection-editor + ;; +esac + diff --git a/Common/rofi/applets/menu/powermenu.sh b/Common/rofi/applets/menu/powermenu.sh new file mode 100755 index 0000000..9755d64 --- /dev/null +++ b/Common/rofi/applets/menu/powermenu.sh @@ -0,0 +1,98 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/powermenu.rasi" + +uptime=$(uptime -p | sed -e 's/up //g') +cpu=$(sh ~/.config/rofi/bin/usedcpu) +memory=$(sh ~/.config/rofi/bin/usedram) + +# Options +shutdown="" +reboot="" +lock="" +suspend="" +logout="" + +# Confirmation +confirm_exit() { + rofi -dmenu\ + -i\ + -no-fixed-num-lines\ + -p "Are You Sure? : "\ + -theme $HOME/.config/rofi/applets/styles/confirm.rasi +} + +# Message +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "Available Options - yes / y / no / n" +} + +# 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) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl poweroff + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $reboot) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl reboot + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $lock) + if [[ -f /usr/bin/i3lock ]]; then + i3lock + elif [[ -f /usr/bin/betterlockscreen ]]; then + betterlockscreen -l + fi + ;; + $suspend) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + mpc -q pause + amixer set Master mute + systemctl suspend + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $logout) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then + openbox --exit + elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then + bspc quit + elif [[ "$DESKTOP_SESSION" == "i3" ]]; then + i3-msg exit + fi + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; +esac diff --git a/Common/rofi/applets/menu/quicklinks.sh b/Common/rofi/applets/menu/quicklinks.sh new file mode 100755 index 0000000..c2f0495 --- /dev/null +++ b/Common/rofi/applets/menu/quicklinks.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/quicklinks.rasi" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "$1" +} + +# Browser +if [[ -f /usr/bin/firefox ]]; then + app="firefox" +elif [[ -f /usr/bin/chromium ]]; then + app="chromium" +elif [[ -f /usr/bin/midori ]]; then + app="midori" +else + msg "No suitable web browser found!" + exit 1 +fi + +# Links +google="" +facebook="" +twitter="" +github="" +mail="" +youtube="" + +# Variable passed to rofi +options="$google\n$facebook\n$twitter\n$github\n$mail\n$youtube" + +chosen="$(echo -e "$options" | $rofi_command -p "Open In : $app" -dmenu -selected-row 0)" +case $chosen in + $google) + $app https://www.google.com & + ;; + $facebook) + $app https://www.facebook.com & + ;; + $twitter) + $app https://www.twitter.com & + ;; + $github) + $app https://www.github.com & + ;; + $mail) + $app https://www.gmail.com & + ;; + $youtube) + $app https://www.youtube.com & + ;; +esac + diff --git a/Common/rofi/applets/menu/screenshot.sh b/Common/rofi/applets/menu/screenshot.sh new file mode 100755 index 0000000..24c5e1b --- /dev/null +++ b/Common/rofi/applets/menu/screenshot.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/screenshot.rasi" + +# Error msg +msg() { + rofi -theme "$HOME/.config/rofi/applets/styles/message.rasi" -e "Please install 'scrot' first." +} + +# Options +screen="" +area="" +window="" + +# Variable passed to rofi +options="$screen\n$area\n$window" + +chosen="$(echo -e "$options" | $rofi_command -p 'App : scrot' -dmenu -selected-row 1)" +case $chosen in + $screen) + if [[ -f /usr/bin/scrot ]]; then + sleep 1; scrot 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' + else + msg + fi + ;; + $area) + if [[ -f /usr/bin/scrot ]]; then + scrot -s 'Screenshot_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; viewnior $$(xdg-user-dir PICTURES)/$f' + else + msg + fi + ;; + $window) + if [[ -f /usr/bin/scrot ]]; then + 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' + else + msg + fi + ;; +esac + diff --git a/Common/rofi/applets/menu/style.sh b/Common/rofi/applets/menu/style.sh new file mode 100755 index 0000000..68b9668 --- /dev/null +++ b/Common/rofi/applets/menu/style.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# square circle rounded + +style="square" + +# uncomment these lines to enable random style +#styles=('square' 'circle' 'rounded') +#style="${styles[$(( $RANDOM % 3 ))]}" + +# print style name +echo "$style" diff --git a/Common/rofi/applets/menu/time.sh b/Common/rofi/applets/menu/time.sh new file mode 100755 index 0000000..4432676 --- /dev/null +++ b/Common/rofi/applets/menu/time.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/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)" diff --git a/Common/rofi/applets/menu/volume.sh b/Common/rofi/applets/menu/volume.sh new file mode 100755 index 0000000..7e4a0d8 --- /dev/null +++ b/Common/rofi/applets/menu/volume.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/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="Mute" +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 + diff --git a/Common/rofi/applets/styles/adapta-nokto.rasi b/Common/rofi/applets/styles/adapta-nokto.rasi new file mode 100644 index 0000000..3c4ef95 --- /dev/null +++ b/Common/rofi/applets/styles/adapta-nokto.rasi @@ -0,0 +1,8 @@ +* { + accent: #00BCD4; + background: #263238; + background-light: #293840; + foreground: #E7E8EB; + on: #44ad4d; + off: #e34039; +} diff --git a/Common/rofi/applets/styles/adapta.rasi b/Common/rofi/applets/styles/adapta.rasi new file mode 100644 index 0000000..c1c9999 --- /dev/null +++ b/Common/rofi/applets/styles/adapta.rasi @@ -0,0 +1,8 @@ +* { + accent: #00ADC2; + background: #FFFFFF; + background-light: #E7E7E7; + foreground: #535353; + on: #44ad4d; + off: #e34039; +} diff --git a/Common/rofi/applets/styles/adwaita.rasi b/Common/rofi/applets/styles/adwaita.rasi new file mode 100644 index 0000000..81cd482 --- /dev/null +++ b/Common/rofi/applets/styles/adwaita.rasi @@ -0,0 +1,8 @@ +* { + accent: #2E6BB6; + background: #2D2D2D; + background-light: #353535; + foreground: #E7E8EB; + on: #44ad4d; + off: #e34039; +} diff --git a/Common/rofi/applets/styles/arc-dark.rasi b/Common/rofi/applets/styles/arc-dark.rasi new file mode 100644 index 0000000..41f775f --- /dev/null +++ b/Common/rofi/applets/styles/arc-dark.rasi @@ -0,0 +1,8 @@ +* { + accent: #6BA0DE; + background: #383C4A; + background-light: #404552; + foreground: #E4E4E4; + on: #44ad4d; + off: #e34039; +} diff --git a/Common/rofi/applets/styles/arc.rasi b/Common/rofi/applets/styles/arc.rasi new file mode 100644 index 0000000..a5c211b --- /dev/null +++ b/Common/rofi/applets/styles/arc.rasi @@ -0,0 +1,8 @@ +* { + accent: #5294E2; + background: #FFFFFF; + background-light: #E7E8EB; + foreground: #333333; + on: #44ad4d; + off: #e34039; +} diff --git a/Common/rofi/applets/styles/armchair.rasi b/Common/rofi/applets/styles/armchair.rasi new file mode 100644 index 0000000..93a9e2f --- /dev/null +++ b/Common/rofi/applets/styles/armchair.rasi @@ -0,0 +1,8 @@ +* { + accent: #E85A50; + background: #EAE8DC; + background-light: #E4D9C8; + foreground: #8E8D89; + on: #66bb6a; + off: #F68887; +} diff --git a/Common/rofi/applets/styles/colors.rasi b/Common/rofi/applets/styles/colors.rasi new file mode 100644 index 0000000..f9043a3 --- /dev/null +++ b/Common/rofi/applets/styles/colors.rasi @@ -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 "dark.rasi" diff --git a/Common/rofi/applets/styles/confirm.rasi b/Common/rofi/applets/styles/confirm.rasi new file mode 100644 index 0000000..79a4be2 --- /dev/null +++ b/Common/rofi/applets/styles/confirm.rasi @@ -0,0 +1,24 @@ +/* Confirm Dialog */ + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; + font: "Comfortaa 12"; +} + +window { + width: 225px; + padding: 25px; + border: 0px; + border-radius: 0px; + border-color: @accent; + location: center; + y-offset: -20px; +} + +entry { + expand: true; + text-color: @accent; +} diff --git a/Common/rofi/applets/styles/dark.rasi b/Common/rofi/applets/styles/dark.rasi new file mode 100644 index 0000000..162207b --- /dev/null +++ b/Common/rofi/applets/styles/dark.rasi @@ -0,0 +1,8 @@ +* { + accent: #A9C03F; + background: #141c21; + background-light: #1C252A; + foreground: #93a1a1; + on: #5BB462; + off: #DE635E; +} diff --git a/Common/rofi/applets/styles/darkpink.rasi b/Common/rofi/applets/styles/darkpink.rasi new file mode 100644 index 0000000..3bae851 --- /dev/null +++ b/Common/rofi/applets/styles/darkpink.rasi @@ -0,0 +1,8 @@ +* { + accent: #F75176; + background: #414656; + background-light: #4B5060; + foreground: #F2F7E3; + on: #CDF0D9; + off: #FF796A; +} diff --git a/Common/rofi/applets/styles/fresh.rasi b/Common/rofi/applets/styles/fresh.rasi new file mode 100644 index 0000000..a19ceb1 --- /dev/null +++ b/Common/rofi/applets/styles/fresh.rasi @@ -0,0 +1,8 @@ +* { + accent: #043968; + background: #5CDB94; + background-light: #59C78A; + foreground: #303030; + on: #2e7d32; + off: #d32f2f; +} diff --git a/Common/rofi/applets/styles/gruvbox.rasi b/Common/rofi/applets/styles/gruvbox.rasi new file mode 100644 index 0000000..9f686f0 --- /dev/null +++ b/Common/rofi/applets/styles/gruvbox.rasi @@ -0,0 +1,8 @@ +* { + accent: #83a598; + background: #282828; + background-light: #303030; + foreground: #ebdbb2; + on: #44ad4d; + off: #fb4934; +} diff --git a/Common/rofi/applets/styles/inside.rasi b/Common/rofi/applets/styles/inside.rasi new file mode 100644 index 0000000..8436894 --- /dev/null +++ b/Common/rofi/applets/styles/inside.rasi @@ -0,0 +1,8 @@ +* { + accent: #C7493A; + background: #151515; + background-light: #202020; + foreground: #AD8174; + on: #689775; + off: #A33327; +} diff --git a/Common/rofi/applets/styles/material-dark/amber.rasi b/Common/rofi/applets/styles/material-dark/amber.rasi new file mode 100644 index 0000000..14cbfcd --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/amber.rasi @@ -0,0 +1,8 @@ +* { + accent: #ffc107; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/blue.rasi b/Common/rofi/applets/styles/material-dark/blue.rasi new file mode 100644 index 0000000..821e449 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/blue.rasi @@ -0,0 +1,8 @@ +* { + accent: #1e88e5; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/blue_grey.rasi b/Common/rofi/applets/styles/material-dark/blue_grey.rasi new file mode 100644 index 0000000..d810c0d --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/blue_grey.rasi @@ -0,0 +1,8 @@ +* { + accent: #607d8b; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/brown.rasi b/Common/rofi/applets/styles/material-dark/brown.rasi new file mode 100644 index 0000000..edf7633 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/brown.rasi @@ -0,0 +1,8 @@ +* { + accent: #8d6e63; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/cyan.rasi b/Common/rofi/applets/styles/material-dark/cyan.rasi new file mode 100644 index 0000000..8de289c --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/cyan.rasi @@ -0,0 +1,8 @@ +* { + accent: #26c6da; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/deep_orange.rasi b/Common/rofi/applets/styles/material-dark/deep_orange.rasi new file mode 100644 index 0000000..6c061b3 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/deep_orange.rasi @@ -0,0 +1,8 @@ +* { + accent: #ff5722; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/deep_purple.rasi b/Common/rofi/applets/styles/material-dark/deep_purple.rasi new file mode 100644 index 0000000..d30571e --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/deep_purple.rasi @@ -0,0 +1,8 @@ +* { + accent: #7e57c2; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/green.rasi b/Common/rofi/applets/styles/material-dark/green.rasi new file mode 100644 index 0000000..674280b --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/green.rasi @@ -0,0 +1,8 @@ +* { + accent: #4caf50; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #a5d6a7; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/grey.rasi b/Common/rofi/applets/styles/material-dark/grey.rasi new file mode 100644 index 0000000..6c5e57c --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/grey.rasi @@ -0,0 +1,8 @@ +* { + accent: #9e9e9e; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/indigo.rasi b/Common/rofi/applets/styles/material-dark/indigo.rasi new file mode 100644 index 0000000..8f89719 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/indigo.rasi @@ -0,0 +1,8 @@ +* { + accent: #5c6bc0; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/light_blue.rasi b/Common/rofi/applets/styles/material-dark/light_blue.rasi new file mode 100644 index 0000000..d3f4e1b --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/light_blue.rasi @@ -0,0 +1,8 @@ +* { + accent: #039be5; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/light_green.rasi b/Common/rofi/applets/styles/material-dark/light_green.rasi new file mode 100644 index 0000000..5afdf7a --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/light_green.rasi @@ -0,0 +1,8 @@ +* { + accent: #8bc34a; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #4caf50; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/lime.rasi b/Common/rofi/applets/styles/material-dark/lime.rasi new file mode 100644 index 0000000..c32550e --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/lime.rasi @@ -0,0 +1,8 @@ +* { + accent: #cddc39; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/orange.rasi b/Common/rofi/applets/styles/material-dark/orange.rasi new file mode 100644 index 0000000..2f26952 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/orange.rasi @@ -0,0 +1,8 @@ +* { + accent: #ff9800; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/pink.rasi b/Common/rofi/applets/styles/material-dark/pink.rasi new file mode 100644 index 0000000..ef7a0af --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/pink.rasi @@ -0,0 +1,8 @@ +* { + accent: #ec407a; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/purple.rasi b/Common/rofi/applets/styles/material-dark/purple.rasi new file mode 100644 index 0000000..a1dd6d4 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/purple.rasi @@ -0,0 +1,8 @@ +* { + accent: #ab47bc; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/red.rasi b/Common/rofi/applets/styles/material-dark/red.rasi new file mode 100644 index 0000000..f5d3862 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/red.rasi @@ -0,0 +1,8 @@ +* { + accent: #ef5350; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef9a9a; +} diff --git a/Common/rofi/applets/styles/material-dark/teal.rasi b/Common/rofi/applets/styles/material-dark/teal.rasi new file mode 100644 index 0000000..e6cdb73 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/teal.rasi @@ -0,0 +1,8 @@ +* { + accent: #009688; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-dark/yellow.rasi b/Common/rofi/applets/styles/material-dark/yellow.rasi new file mode 100644 index 0000000..d2788b0 --- /dev/null +++ b/Common/rofi/applets/styles/material-dark/yellow.rasi @@ -0,0 +1,8 @@ +* { + accent: #ffeb3b; + background: #212121; + background-light: #272727; + foreground: #bdbdbd; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/amber.rasi b/Common/rofi/applets/styles/material-light/amber.rasi new file mode 100644 index 0000000..c02ae2a --- /dev/null +++ b/Common/rofi/applets/styles/material-light/amber.rasi @@ -0,0 +1,8 @@ +* { + accent: #ff8f00; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/blue.rasi b/Common/rofi/applets/styles/material-light/blue.rasi new file mode 100644 index 0000000..780663e --- /dev/null +++ b/Common/rofi/applets/styles/material-light/blue.rasi @@ -0,0 +1,8 @@ +* { + accent: #1565c0; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/blue_grey.rasi b/Common/rofi/applets/styles/material-light/blue_grey.rasi new file mode 100644 index 0000000..8e15a53 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/blue_grey.rasi @@ -0,0 +1,8 @@ +* { + accent: #607d8b; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/brown.rasi b/Common/rofi/applets/styles/material-light/brown.rasi new file mode 100644 index 0000000..3f7d39f --- /dev/null +++ b/Common/rofi/applets/styles/material-light/brown.rasi @@ -0,0 +1,8 @@ +* { + accent: #795548; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/cyan.rasi b/Common/rofi/applets/styles/material-light/cyan.rasi new file mode 100644 index 0000000..d879af0 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/cyan.rasi @@ -0,0 +1,8 @@ +* { + accent: #00acc1; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/deep_orange.rasi b/Common/rofi/applets/styles/material-light/deep_orange.rasi new file mode 100644 index 0000000..23f5815 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/deep_orange.rasi @@ -0,0 +1,8 @@ +* { + accent: #f4511e; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/deep_purple.rasi b/Common/rofi/applets/styles/material-light/deep_purple.rasi new file mode 100644 index 0000000..cc5ec7d --- /dev/null +++ b/Common/rofi/applets/styles/material-light/deep_purple.rasi @@ -0,0 +1,8 @@ +* { + accent: #5e35b1; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/green.rasi b/Common/rofi/applets/styles/material-light/green.rasi new file mode 100644 index 0000000..f476e01 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/green.rasi @@ -0,0 +1,8 @@ +* { + accent: #43a047; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/grey.rasi b/Common/rofi/applets/styles/material-light/grey.rasi new file mode 100644 index 0000000..6936929 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/grey.rasi @@ -0,0 +1,8 @@ +* { + accent: #555555; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/indigo.rasi b/Common/rofi/applets/styles/material-light/indigo.rasi new file mode 100644 index 0000000..f0508c3 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/indigo.rasi @@ -0,0 +1,8 @@ +* { + accent: #3949ab; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/light_blue.rasi b/Common/rofi/applets/styles/material-light/light_blue.rasi new file mode 100644 index 0000000..a0db87a --- /dev/null +++ b/Common/rofi/applets/styles/material-light/light_blue.rasi @@ -0,0 +1,8 @@ +* { + accent: #039be5; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/light_green.rasi b/Common/rofi/applets/styles/material-light/light_green.rasi new file mode 100644 index 0000000..0e33cef --- /dev/null +++ b/Common/rofi/applets/styles/material-light/light_green.rasi @@ -0,0 +1,8 @@ +* { + accent: #558b2f; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/lime.rasi b/Common/rofi/applets/styles/material-light/lime.rasi new file mode 100644 index 0000000..044eb62 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/lime.rasi @@ -0,0 +1,8 @@ +* { + accent: #afb42b; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/orange.rasi b/Common/rofi/applets/styles/material-light/orange.rasi new file mode 100644 index 0000000..072c9e2 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/orange.rasi @@ -0,0 +1,8 @@ +* { + accent: #ef6c00; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/pink.rasi b/Common/rofi/applets/styles/material-light/pink.rasi new file mode 100644 index 0000000..e17d94d --- /dev/null +++ b/Common/rofi/applets/styles/material-light/pink.rasi @@ -0,0 +1,8 @@ +* { + accent: #d81b60; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/purple.rasi b/Common/rofi/applets/styles/material-light/purple.rasi new file mode 100644 index 0000000..fa95bb9 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/purple.rasi @@ -0,0 +1,8 @@ +* { + accent: #8e24aa; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/red.rasi b/Common/rofi/applets/styles/material-light/red.rasi new file mode 100644 index 0000000..d3ebcc0 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/red.rasi @@ -0,0 +1,8 @@ +* { + accent: #d32f2f; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/teal.rasi b/Common/rofi/applets/styles/material-light/teal.rasi new file mode 100644 index 0000000..b137892 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/teal.rasi @@ -0,0 +1,8 @@ +* { + accent: #00796b; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/material-light/yellow.rasi b/Common/rofi/applets/styles/material-light/yellow.rasi new file mode 100644 index 0000000..8f68244 --- /dev/null +++ b/Common/rofi/applets/styles/material-light/yellow.rasi @@ -0,0 +1,8 @@ +* { + accent: #f9a825; + background: #f5f5f5; + background-light: #e0e0e0; + foreground: #424242; + on: #66bb6a; + off: #ef5350; +} diff --git a/Common/rofi/applets/styles/message.rasi b/Common/rofi/applets/styles/message.rasi new file mode 100644 index 0000000..69d5b07 --- /dev/null +++ b/Common/rofi/applets/styles/message.rasi @@ -0,0 +1,24 @@ +/* Confirm Dialog */ + +@import "colors.rasi" + +* { + background-color: @background; + text-color: @foreground; + font: "Comfortaa 12"; +} + +window { + width: 360px; + padding: 25px; + border: 0px; + border-radius: 0px; + border-color: @accent; + location: center; + y-offset: -20px; +} + +entry { + expand: true; + text-color: @accent; +} diff --git a/Common/rofi/applets/styles/minimo.rasi b/Common/rofi/applets/styles/minimo.rasi new file mode 100644 index 0000000..b6fa284 --- /dev/null +++ b/Common/rofi/applets/styles/minimo.rasi @@ -0,0 +1,8 @@ +* { + accent: #656565; + background: #C6C6C4; + background-light: #FFFFFF; + foreground: #909090; + on: #226827; + off: #682226; +} diff --git a/Common/rofi/applets/styles/party.rasi b/Common/rofi/applets/styles/party.rasi new file mode 100644 index 0000000..d8ea9af --- /dev/null +++ b/Common/rofi/applets/styles/party.rasi @@ -0,0 +1,8 @@ +* { + accent: #FFE401; + background: #272727; + background-light: #323232; + foreground: #747474; + on: #13A76B; + off: #FF652F; +} diff --git a/Common/rofi/applets/styles/sirin.rasi b/Common/rofi/applets/styles/sirin.rasi new file mode 100644 index 0000000..302cbce --- /dev/null +++ b/Common/rofi/applets/styles/sirin.rasi @@ -0,0 +1,8 @@ +* { + accent: #106466; + background: #FFCB9B; + background-light: #D8B08C; + foreground: #2C3532; + on: #43a047; + off: #ef5350; +} diff --git a/Common/rofi/bin/android_apps b/Common/rofi/bin/android_apps new file mode 120000 index 0000000..7b11b66 --- /dev/null +++ b/Common/rofi/bin/android_apps @@ -0,0 +1 @@ +../applets/android/apps.sh
\ No newline at end of file diff --git a/Common/rofi/bin/android_backlight b/Common/rofi/bin/android_backlight new file mode 120000 index 0000000..9de32b8 --- /dev/null +++ b/Common/rofi/bin/android_backlight @@ -0,0 +1 @@ +../applets/android/backlight.sh
\ No newline at end of file diff --git a/Common/rofi/bin/android_mpd b/Common/rofi/bin/android_mpd new file mode 120000 index 0000000..1f16126 --- /dev/null +++ b/Common/rofi/bin/android_mpd @@ -0,0 +1 @@ +../applets/android/mpd.sh
\ No newline at end of file diff --git a/Common/rofi/bin/android_powermenu b/Common/rofi/bin/android_powermenu new file mode 120000 index 0000000..7d66a76 --- /dev/null +++ b/Common/rofi/bin/android_powermenu @@ -0,0 +1 @@ +../applets/android/powermenu.sh
\ No newline at end of file diff --git a/Common/rofi/bin/android_quicklinks b/Common/rofi/bin/android_quicklinks new file mode 120000 index 0000000..7d44c74 --- /dev/null +++ b/Common/rofi/bin/android_quicklinks @@ -0,0 +1 @@ +../applets/android/quicklinks.sh
\ No newline at end of file diff --git a/Common/rofi/bin/android_screenshot b/Common/rofi/bin/android_screenshot new file mode 120000 index 0000000..1bd8694 --- /dev/null +++ b/Common/rofi/bin/android_screenshot @@ -0,0 +1 @@ +../applets/android/screenshot.sh
\ No newline at end of file diff --git a/Common/rofi/bin/android_volume b/Common/rofi/bin/android_volume new file mode 120000 index 0000000..33bcea2 --- /dev/null +++ b/Common/rofi/bin/android_volume @@ -0,0 +1 @@ +../applets/android/volume.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_apps b/Common/rofi/bin/applet_apps new file mode 120000 index 0000000..0cbf8f8 --- /dev/null +++ b/Common/rofi/bin/applet_apps @@ -0,0 +1 @@ +../applets/applets/apps.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_backlight b/Common/rofi/bin/applet_backlight new file mode 120000 index 0000000..0663ec3 --- /dev/null +++ b/Common/rofi/bin/applet_backlight @@ -0,0 +1 @@ +../applets/applets/backlight.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_battery b/Common/rofi/bin/applet_battery new file mode 120000 index 0000000..4b660cb --- /dev/null +++ b/Common/rofi/bin/applet_battery @@ -0,0 +1 @@ +../applets/applets/battery.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_mpd b/Common/rofi/bin/applet_mpd new file mode 120000 index 0000000..2a55e5f --- /dev/null +++ b/Common/rofi/bin/applet_mpd @@ -0,0 +1 @@ +../applets/applets/mpd.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_network b/Common/rofi/bin/applet_network new file mode 120000 index 0000000..cecf37c --- /dev/null +++ b/Common/rofi/bin/applet_network @@ -0,0 +1 @@ +../applets/applets/network.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_powermenu b/Common/rofi/bin/applet_powermenu new file mode 120000 index 0000000..0a0635d --- /dev/null +++ b/Common/rofi/bin/applet_powermenu @@ -0,0 +1 @@ +../applets/applets/powermenu.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_quicklinks b/Common/rofi/bin/applet_quicklinks new file mode 120000 index 0000000..319e0b2 --- /dev/null +++ b/Common/rofi/bin/applet_quicklinks @@ -0,0 +1 @@ +../applets/applets/quicklinks.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_screenshot b/Common/rofi/bin/applet_screenshot new file mode 120000 index 0000000..3107901 --- /dev/null +++ b/Common/rofi/bin/applet_screenshot @@ -0,0 +1 @@ +../applets/applets/screenshot.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_time b/Common/rofi/bin/applet_time new file mode 120000 index 0000000..0565f05 --- /dev/null +++ b/Common/rofi/bin/applet_time @@ -0,0 +1 @@ +../applets/applets/time.sh
\ No newline at end of file diff --git a/Common/rofi/bin/applet_volume b/Common/rofi/bin/applet_volume new file mode 120000 index 0000000..493275a --- /dev/null +++ b/Common/rofi/bin/applet_volume @@ -0,0 +1 @@ +../applets/applets/volume.sh
\ No newline at end of file diff --git a/Common/rofi/bin/launcher_colorful b/Common/rofi/bin/launcher_colorful new file mode 120000 index 0000000..8e48b54 --- /dev/null +++ b/Common/rofi/bin/launcher_colorful @@ -0,0 +1 @@ +../launchers/colorful/launcher.sh
\ No newline at end of file diff --git a/Common/rofi/bin/launcher_misc b/Common/rofi/bin/launcher_misc new file mode 120000 index 0000000..ff3f68f --- /dev/null +++ b/Common/rofi/bin/launcher_misc @@ -0,0 +1 @@ +../launchers/misc/launcher.sh
\ No newline at end of file diff --git a/Common/rofi/bin/launcher_ribbon b/Common/rofi/bin/launcher_ribbon new file mode 120000 index 0000000..925a1a8 --- /dev/null +++ b/Common/rofi/bin/launcher_ribbon @@ -0,0 +1 @@ +../launchers/ribbon/launcher.sh
\ No newline at end of file diff --git a/Common/rofi/bin/launcher_slate b/Common/rofi/bin/launcher_slate new file mode 120000 index 0000000..d409300 --- /dev/null +++ b/Common/rofi/bin/launcher_slate @@ -0,0 +1 @@ +../launchers/slate/launcher.sh
\ No newline at end of file diff --git a/Common/rofi/bin/launcher_text b/Common/rofi/bin/launcher_text new file mode 120000 index 0000000..65eac28 --- /dev/null +++ b/Common/rofi/bin/launcher_text @@ -0,0 +1 @@ +../launchers/text/launcher.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_apps b/Common/rofi/bin/menu_apps new file mode 120000 index 0000000..a07c955 --- /dev/null +++ b/Common/rofi/bin/menu_apps @@ -0,0 +1 @@ +../applets/menu/apps.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_backlight b/Common/rofi/bin/menu_backlight new file mode 120000 index 0000000..18eea2f --- /dev/null +++ b/Common/rofi/bin/menu_backlight @@ -0,0 +1 @@ +../applets/menu/backlight.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_battery b/Common/rofi/bin/menu_battery new file mode 120000 index 0000000..10f11b5 --- /dev/null +++ b/Common/rofi/bin/menu_battery @@ -0,0 +1 @@ +../applets/menu/battery.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_mpd b/Common/rofi/bin/menu_mpd new file mode 120000 index 0000000..b3e204b --- /dev/null +++ b/Common/rofi/bin/menu_mpd @@ -0,0 +1 @@ +../applets/menu/mpd.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_network b/Common/rofi/bin/menu_network new file mode 120000 index 0000000..2c4c1d9 --- /dev/null +++ b/Common/rofi/bin/menu_network @@ -0,0 +1 @@ +../applets/menu/network.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_powermenu b/Common/rofi/bin/menu_powermenu new file mode 120000 index 0000000..da40a0b --- /dev/null +++ b/Common/rofi/bin/menu_powermenu @@ -0,0 +1 @@ +../applets/menu/powermenu.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_quicklinks b/Common/rofi/bin/menu_quicklinks new file mode 120000 index 0000000..e873658 --- /dev/null +++ b/Common/rofi/bin/menu_quicklinks @@ -0,0 +1 @@ +../applets/menu/quicklinks.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_screenshot b/Common/rofi/bin/menu_screenshot new file mode 120000 index 0000000..8c4b92d --- /dev/null +++ b/Common/rofi/bin/menu_screenshot @@ -0,0 +1 @@ +../applets/menu/screenshot.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_time b/Common/rofi/bin/menu_time new file mode 120000 index 0000000..a7d56c1 --- /dev/null +++ b/Common/rofi/bin/menu_time @@ -0,0 +1 @@ +../applets/menu/time.sh
\ No newline at end of file diff --git a/Common/rofi/bin/menu_volume b/Common/rofi/bin/menu_volume new file mode 120000 index 0000000..b0f235a --- /dev/null +++ b/Common/rofi/bin/menu_volume @@ -0,0 +1 @@ +../applets/menu/volume.sh
\ No newline at end of file diff --git a/Common/rofi/bin/powermenu b/Common/rofi/bin/powermenu new file mode 120000 index 0000000..d9f9d95 --- /dev/null +++ b/Common/rofi/bin/powermenu @@ -0,0 +1 @@ +../powermenu/powermenu.sh
\ No newline at end of file diff --git a/Common/rofi/bin/usedcpu b/Common/rofi/bin/usedcpu new file mode 100755 index 0000000..512933c --- /dev/null +++ b/Common/rofi/bin/usedcpu @@ -0,0 +1,45 @@ +#!/usr/bin/env bash + +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}" diff --git a/Common/rofi/bin/usedram b/Common/rofi/bin/usedram new file mode 100755 index 0000000..e8a6108 --- /dev/null +++ b/Common/rofi/bin/usedram @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +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 diff --git a/Common/rofi/config.rasi b/Common/rofi/config.rasi new file mode 100644 index 0000000..2864512 --- /dev/null +++ b/Common/rofi/config.rasi @@ -0,0 +1,6 @@ +/** Basic config file **/ + +configuration { + show-icons: true; + icon-theme: "Papirus"; +} diff --git a/Common/rofi/launchers/colorful/colors.rasi b/Common/rofi/launchers/colorful/colors.rasi new file mode 100644 index 0000000..edfb5e8 --- /dev/null +++ b/Common/rofi/launchers/colorful/colors.rasi @@ -0,0 +1,9 @@ +/* colors */ + +* { + al: #00000000; + bg: #000000ff; + se: #101010ff; + fg: #FFFFFFff; + ac: #FDD835ff; +} diff --git a/Common/rofi/launchers/colorful/launcher.sh b/Common/rofi/launchers/colorful/launcher.sh new file mode 100755 index 0000000..0fbfc4a --- /dev/null +++ b/Common/rofi/launchers/colorful/launcher.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# style_1 style_2 style_3 style_4 style_5 style_6 +# style_7 style_8 style_9 style_10 style_11 style_12 + +theme="style_1" +dir="$HOME/.config/rofi/launchers/colorful" + +# dark +ALPHA="#00000000" +BG="#000000ff" +FG="#FFFFFFff" +SELECT="#101010ff" + +# light +#ALPHA="#00000000" +#BG="#FFFFFFff" +#FG="#000000ff" +#SELECT="#f3f3f3ff" + +# accent colors +COLORS=('#EC7875' '#61C766' '#FDD835' '#42A5F5' '#BA68C8' '#4DD0E1' '#00B19F' \ + '#FBC02D' '#E57C46' '#AC8476' '#6D8895' '#EC407A' '#B9C244' '#6C77BB') +ACCENT="${COLORS[$(( $RANDOM % 14 ))]}ff" + +# overwrite colors file +cat > $dir/colors.rasi <<- EOF + /* colors */ + + * { + al: $ALPHA; + bg: $BG; + se: $SELECT; + fg: $FG; + ac: $ACCENT; + } +EOF + +# comment these lines to disable random style +themes=($(ls -p --hide="launcher.sh" --hide="colors.rasi" $dir)) +theme="${themes[$(( $RANDOM % 12 ))]}" + +rofi -no-lazy-grab -show drun -modi drun -theme $dir/"$theme" diff --git a/Common/rofi/launchers/colorful/style_1.rasi b/Common/rofi/launchers/colorful/style_1.rasi new file mode 100644 index 0000000..60ab3ee --- /dev/null +++ b/Common/rofi/launchers/colorful/style_1.rasi @@ -0,0 +1,115 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 12px; + width: 35%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @al; + text-color: @bg; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @al; + text-color: @bg; + placeholder-color: @bg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @ac; + text-color: @bg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @ac; + margin: 0% 0% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @al; + padding: 10px; + columns: 5; + lines: 3; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 0%; + padding: 0%; +} + +element { + background-color: @al; + text-color: @fg; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @se; + text-color: @fg; + border: 0% 0% 0% 0%; + border-radius: 12px; + border-color: @bg; +} diff --git a/Common/rofi/launchers/colorful/style_10.rasi b/Common/rofi/launchers/colorful/style_10.rasi new file mode 100644 index 0000000..2ef21bb --- /dev/null +++ b/Common/rofi/launchers/colorful/style_10.rasi @@ -0,0 +1,117 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: "Applications"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 1% 0.75% 1% 0.75%; + background-color: @ac; + text-color: @fg; + border-radius: 100%; + font: "Iosevka Nerd Font 12"; +} + +textbox-prompt-colon { + padding: 1% 0% 1% 0%; + background-color: @se; + text-color: @fg; + expand: false; + str: " :: "; +} + +entry { + background-color: @al; + text-color: @fg; + placeholder-color: @fg; + expand: true; + horizontal-align: 0; + placeholder: "Search..."; + padding: 1.15% 0.5% 1% 0.5%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @se; + text-color: @fg; + expand: false; + border: 0% 0.2% 0.3% 0%; + border-radius: 100%; + border-color: @ac; +} + +listview { + background-color: @al; + padding: 0px; + columns: 3; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 20% 15% 20% 15%; +} + +element { + background-color: @se; + text-color: @fg; + orientation: horizontal; + border-radius: 100%; + padding: 1% 0.5% 1% 0.75%; +} + +element-icon { + size: 24px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @se; + text-color: @ac; + border: 0% 0% 0.3% 0.2%; + border-radius: 100%; + border-color: @ac; +} diff --git a/Common/rofi/launchers/colorful/style_11.rasi b/Common/rofi/launchers/colorful/style_11.rasi new file mode 100644 index 0000000..4a6792f --- /dev/null +++ b/Common/rofi/launchers/colorful/style_11.rasi @@ -0,0 +1,125 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: "Applications"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 25px; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1.25% 0.75% 1.25% 0.75%; + background-color: @ac; + text-color: @fg; + font: "Iosevka Nerd Font 12"; + border-radius: 100%; +} + +textbox-prompt-colon { + padding: 1.40% 0% 1% 0%; + background-color: @se; + text-color: @fg; + expand: false; + str: " :: "; +} + +entry { + background-color: @al; + text-color: @fg; + placeholder-color: @fg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 1.5% 0.5% 1% 0%; + blink: true; +} + +inputbar { + children: [ prompt, textbox-prompt-colon, entry ]; + background-color: @se; + text-color: @fg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 100px; + border-color: @ac; +} + +listview { + background-color: @al; + padding: 0px; + columns: 3; + lines: 8; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 4% 2% 4% 2%; +} + +element { + background-color: @bg; + text-color: @fg; + orientation: horizontal; + border-radius: 0%; + padding: 0%; +} + +element-icon { + size: 24px; + border: 1%; + border-color: @ac; + border-radius: 15px; + background-color: @ac; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @se; + text-color: @ac; + border: 0% 0% 0% 0%; + border-radius: 15px; + border-color: @ac; +} diff --git a/Common/rofi/launchers/colorful/style_12.rasi b/Common/rofi/launchers/colorful/style_12.rasi new file mode 100644 index 0000000..713d569 --- /dev/null +++ b/Common/rofi/launchers/colorful/style_12.rasi @@ -0,0 +1,128 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: " Applications"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 50px; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1.25% 0.75% 1.25% 0.75%; + background-color: @ac; + text-color: @fg; + font: "Iosevka Nerd Font 12"; + border-radius: 100%; +} + +textbox-prompt-colon { + padding: 1.40% 0% 1% 0%; + background-color: @se; + text-color: @fg; + expand: false; + str: " :: "; +} + +entry { + background-color: @al; + text-color: @fg; + placeholder-color: @fg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 1.5% 0.5% 1% 0%; + blink: true; +} + +inputbar { + children: [ prompt, textbox-prompt-colon, entry ]; + background-color: @se; + text-color: @fg; + expand: false; + border: 0%; + border-radius: 100%; + border-color: @ac; +} + +listview { + background-color: @al; + padding: 0px; + columns: 6; + lines: 3; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 10px 0px 10px 0px; + border-radius: 50px; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 4% 2% 2% 2%; +} + +element { + background-color: @bg; + text-color: @fg; + orientation: vertical; + border-radius: 0%; + padding: 0%; +} + +element-icon { + size: 64px; + border: 1%; + border-color: @se; + border-radius: 15px; + background-color: @se; + padding: 2% 1% 2% 1%; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.25% 0.5% 0.25%; + padding: 1% 0.5% 1% 0.5%; +} + +element-text selected { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + background-color: @ac; + text-color: @bg; + border-radius: 100%; +} diff --git a/Common/rofi/launchers/colorful/style_2.rasi b/Common/rofi/launchers/colorful/style_2.rasi new file mode 100644 index 0000000..12368cf --- /dev/null +++ b/Common/rofi/launchers/colorful/style_2.rasi @@ -0,0 +1,115 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 12px; + width: 18%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @al; + text-color: @bg; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @al; + text-color: @bg; + placeholder-color: @bg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @ac; + text-color: @bg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @ac; + margin: 0% 0% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @al; + padding: 0px; + columns: 1; + lines: 5; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 0%; + padding: 0%; +} + +element { + background-color: @al; + text-color: @fg; + orientation: horizontal; + border-radius: 0%; + padding: 1% 0.5% 1% 0.5%; +} + +element-icon { + size: 32px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @se; + text-color: @fg; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @bg; +} diff --git a/Common/rofi/launchers/colorful/style_3.rasi b/Common/rofi/launchers/colorful/style_3.rasi new file mode 100644 index 0000000..fe0e6ad --- /dev/null +++ b/Common/rofi/launchers/colorful/style_3.rasi @@ -0,0 +1,116 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 0px; + height: 100%; + width: 18%; + location: west; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @al; + text-color: @bg; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @al; + text-color: @bg; + placeholder-color: @bg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @ac; + text-color: @bg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @ac; + margin: 0% 0% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @al; + padding: 0px; + columns: 1; + lines: 5; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 0%; + padding: 0%; +} + +element { + background-color: @al; + text-color: @fg; + orientation: horizontal; + border-radius: 0%; + padding: 1% 0.5% 1% 0.5%; +} + +element-icon { + size: 32px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @se; + text-color: @fg; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @bg; +} diff --git a/Common/rofi/launchers/colorful/style_4.rasi b/Common/rofi/launchers/colorful/style_4.rasi new file mode 100644 index 0000000..2e34f33 --- /dev/null +++ b/Common/rofi/launchers/colorful/style_4.rasi @@ -0,0 +1,115 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 0px; + height: 100%; + width: 19%; + location: east; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @al; + text-color: @bg; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @al; + text-color: @bg; + placeholder-color: @bg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @ac; + text-color: @bg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @ac; + margin: 0% 0% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @al; + padding: 10px 10px 0px 10px; + columns: 3; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 0%; + padding: 0%; +} + +element { + background-color: @al; + text-color: @fg; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 48px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @se; + text-color: @fg; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @bg; +} diff --git a/Common/rofi/launchers/colorful/style_5.rasi b/Common/rofi/launchers/colorful/style_5.rasi new file mode 100644 index 0000000..10739d7 --- /dev/null +++ b/Common/rofi/launchers/colorful/style_5.rasi @@ -0,0 +1,115 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 0px; + width: 35%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @al; + text-color: @bg; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @al; + text-color: @bg; + placeholder-color: @bg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @fg; + text-color: @bg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @ac; + margin: 0% 0% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @al; + padding: 10px; + columns: 2; + lines: 10; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 0%; + padding: 0%; +} + +element { + background-color: @al; + text-color: @fg; + orientation: horizontal; + border-radius: 0%; + padding: 1% 0.5% 1% 0.5%; +} + +element-icon { + size: 24px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @ac; + text-color: @bg; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @bg; +} diff --git a/Common/rofi/launchers/colorful/style_6.rasi b/Common/rofi/launchers/colorful/style_6.rasi new file mode 100644 index 0000000..e2bd1c3 --- /dev/null +++ b/Common/rofi/launchers/colorful/style_6.rasi @@ -0,0 +1,110 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @al; + text-color: @bg; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @al; + text-color: @bg; + placeholder-color: @bg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @ac; + text-color: @bg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 100%; + border-color: @ac; + margin: 0% 54.5% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @al; + padding: 0px; + columns: 10; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 2.5%; + padding: 20% 5% 20% 5%; +} + +element { + background-color: @al; + text-color: @fg; + orientation: vertical; + border-radius: 0%; + padding: 4% 0% 4% 0%; +} + +element-icon { + size: 80px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @se; + text-color: @fg; + border: 0% 0% 0.5% 0%; + border-radius: 25px; + border-color: @ac; +} diff --git a/Common/rofi/launchers/colorful/style_7.rasi b/Common/rofi/launchers/colorful/style_7.rasi new file mode 100644 index 0000000..e66e126 --- /dev/null +++ b/Common/rofi/launchers/colorful/style_7.rasi @@ -0,0 +1,115 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 12px; + width: 30%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @al; + text-color: @fg; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @al; + text-color: @fg; + placeholder-color: @fg; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @bg; + text-color: @fg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @ac; + margin: 0% 0% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @al; + padding: 10px; + columns: 2; + lines: 7; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 0%; + padding: 0%; +} + +element { + background-color: @al; + text-color: @fg; + orientation: horizontal; + border-radius: 0%; + padding: 0.5% 0.5% 0.5% 0.5%; +} + +element-icon { + size: 24px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @ac; + text-color: @bg; + border: 0% 0% 0% 0%; + border-radius: 12px; + border-color: @bg; +} diff --git a/Common/rofi/launchers/colorful/style_8.rasi b/Common/rofi/launchers/colorful/style_8.rasi new file mode 100644 index 0000000..78f8fd3 --- /dev/null +++ b/Common/rofi/launchers/colorful/style_8.rasi @@ -0,0 +1,121 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: "Applications"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 0px; + width: 35%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 0.75% 1% 0.75%; + background-color: @ac; + text-color: @fg; + font: "Iosevka Nerd Font 12"; +} + +textbox-prompt-colon { + padding: 1% 0% 1% 0%; + background-color: @se; + text-color: @fg; + expand: false; + str: " :: "; +} + +entry { + background-color: @al; + text-color: @fg; + placeholder-color: @fg; + expand: true; + horizontal-align: 0; + placeholder: "Search..."; + padding: 1.15% 0.5% 1% 0.5%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @se; + text-color: @fg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @ac; +} + +listview { + background-color: @al; + padding: 0px; + columns: 2; + lines: 7; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 4% 2% 4% 2%; +} + +element { + background-color: @se; + text-color: @fg; + orientation: horizontal; + border-radius: 0%; + padding: 1% 0.5% 1% 0.75%; +} + +element-icon { + size: 24px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @se; + text-color: @ac; + border: 0% 0% 0% 0.3%; + border-radius: 0px; + border-color: @ac; +} diff --git a/Common/rofi/launchers/colorful/style_9.rasi b/Common/rofi/launchers/colorful/style_9.rasi new file mode 100644 index 0000000..8c98050 --- /dev/null +++ b/Common/rofi/launchers/colorful/style_9.rasi @@ -0,0 +1,122 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Iosevka Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: "Applications"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "colors.rasi" + +window { + transparency: "real"; + background-color: @bg; + text-color: @fg; + border: 0px; + border-color: @ac; + border-radius: 15px; + width: 35%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 0.75% 1% 0.75%; + background-color: @ac; + text-color: @fg; + border-radius: 10px; + font: "Iosevka Nerd Font 12"; +} + +textbox-prompt-colon { + padding: 1% 0% 1% 0%; + background-color: @se; + text-color: @fg; + expand: false; + str: " :: "; +} + +entry { + background-color: @al; + text-color: @fg; + placeholder-color: @fg; + expand: true; + horizontal-align: 0; + placeholder: "Search..."; + padding: 1.15% 0.5% 1% 0.5%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @se; + text-color: @fg; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 10px; + border-color: @ac; +} + +listview { + background-color: @al; + padding: 0px; + columns: 2; + lines: 7; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @al; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @ac; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 4% 2% 4% 2%; +} + +element { + background-color: @se; + text-color: @fg; + orientation: horizontal; + border-radius: 12px; + padding: 1% 0.5% 1% 0.75%; +} + +element-icon { + size: 24px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0.25% 0% 0.25%; +} + +element selected { + background-color: @se; + text-color: @ac; + border: 0% 0.3% 0% 0.3%; + border-radius: 12px; + border-color: @ac; +} diff --git a/Common/rofi/launchers/misc/appdrawer.rasi b/Common/rofi/launchers/misc/appdrawer.rasi new file mode 100644 index 0000000..f139fc7 --- /dev/null +++ b/Common/rofi/launchers/misc/appdrawer.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; + height: 100%; + width: 30%; + location: west; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Apps"; + padding: -0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 100%; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 5; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 5% 1.5% 0% 1.5%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 5px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/appdrawer_alt.rasi b/Common/rofi/launchers/misc/appdrawer_alt.rasi new file mode 100644 index 0000000..0e2a9c5 --- /dev/null +++ b/Common/rofi/launchers/misc/appdrawer_alt.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 30px; + width: 30%; + location: west; + x-offset: 20px; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Apps"; + padding: -0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 100%; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 4; + lines: 5; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2% 1% 2% 1%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 25px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/appfolder.rasi b/Common/rofi/launchers/misc/appfolder.rasi new file mode 100644 index 0000000..22e2b05 --- /dev/null +++ b/Common/rofi/launchers/misc/appfolder.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 5px; + width: 27%; + location: east; + x-offset: -20px; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0.5; + placeholder: "Search"; + padding: -0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 5px; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 4; + lines: 3; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1.25%; + padding: 1.5% 0.75% 1.5% 0.75%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 5px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/blurry.rasi b/Common/rofi/launchers/misc/blurry.rasi new file mode 100644 index 0000000..eba5bfc --- /dev/null +++ b/Common/rofi/launchers/misc/blurry.rasi @@ -0,0 +1,120 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans Bold 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +* { + background: #00000000; + background-alt: #00000000; + background-bar: #f2f2f215; + foreground: #f2f2f2EE; + accent: #3DAEE966; +} + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; + width: 40%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 12px; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 1.5%; +} + +listview { + background-color: @background-alt; + columns: 5; + lines: 3; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2% 1% 2% 1%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @background-bar; + text-color: @foreground; + border: 0% 0% 0% 0%; + border-radius: 12px; + border-color: @accent; +} diff --git a/Common/rofi/launchers/misc/blurry_full.rasi b/Common/rofi/launchers/misc/blurry_full.rasi new file mode 100644 index 0000000..0b95f91 --- /dev/null +++ b/Common/rofi/launchers/misc/blurry_full.rasi @@ -0,0 +1,116 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans Bold 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +* { + background: #00000000; + background-alt: #00000000; + background-bar: #f2f2f215; + foreground: #f2f2f2EE; + accent: #3DAEE966; +} + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 12px; + border-color: @accent; + margin: 0% 25% 0% 25%; + padding: 1.5%; +} + +listview { + background-color: @background-alt; + columns: 8; + lines: 4; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 8%; + padding: 10% 12.5% 10% 12.5%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.5% 0% 2.5% 0%; +} + +element-icon { + size: 80px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @background-bar; + text-color: @foreground; + border: 0% 0% 0% 0%; + border-radius: 12px; + border-color: @accent; +} diff --git a/Common/rofi/launchers/misc/column.rasi b/Common/rofi/launchers/misc/column.rasi new file mode 100644 index 0000000..1ed8f38 --- /dev/null +++ b/Common/rofi/launchers/misc/column.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; + height: 100%; + width: 9%; + location: east; + x-offset: 0px; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: -0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 5px; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 1; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1.25%; + padding: 3.5% 0.75% 0% 0.75%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.25% 0% 2.25% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 5px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/gnome_do.rasi b/Common/rofi/launchers/misc/gnome_do.rasi new file mode 100644 index 0000000..02161f2 --- /dev/null +++ b/Common/rofi/launchers/misc/gnome_do.rasi @@ -0,0 +1,165 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 12"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Classical -- */ +* { + background: #27639AFF; + background-alt: #00000000; + background-bar: #f2f2f240; + foreground: #f2f2f2EE; + accent: #3DAEE966; +} + +/* -- Transparent -- */ +/* +* { + background: #00000000; + background-alt: #00000000; + background-bar: #f2f2f215; + foreground: #f2f2f2EE; + accent: #3DAEE966; +} +*/ + +/* -- Light -- */ +/* +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #20202040; + foreground: #404040EE; + accent: #3DAEE966; +} +*/ + +/* -- Dark -- */ +/* +* { + background: #252525ff; + background-alt: #00000000; + background-bar: #10101040; + foreground: #e5e5e5EE; + accent: #3DAEE966; +} +*/ + +/* -- Black -- */ +/* +* { + background: #000000ff; + background-alt: #00000000; + background-bar: #101010ff; + foreground: #e5e5e5EE; + accent: #3DAEE966; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 25px; + width: 26%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: false; + padding: 0%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0.5; + placeholder: " Search"; + padding: 0% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 0px; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 0%; +} + +listview { + background-color: @background-alt; + columns: 2; + lines: 1; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2% 1% 2% 1%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.5% 0% 2.5% 0%; +} + +element-icon { + size: 128px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @background-bar; + text-color: @foreground; + border: 0% 0% 0% 0%; + border-radius: 15px; + border-color: @accent; +} diff --git a/Common/rofi/launchers/misc/kde_krunner.rasi b/Common/rofi/launchers/misc/kde_krunner.rasi new file mode 100644 index 0000000..473ce18 --- /dev/null +++ b/Common/rofi/launchers/misc/kde_krunner.rasi @@ -0,0 +1,143 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Breeze Light-- */ +* { + background: #EFF0F1FF; + background-alt: #00000000; + background-bar: #93CEE999; + foreground: #000000A6; + accent: #3DAEE9FF; +} + +/* -- Breeze Dark-- */ +/* +* { + background: #31363bff; + background-alt: #00000000; + background-bar: #3daee966; + foreground: #f5f5f5e6; + accent: #1d99f3ff; +} +*/ + +/* -- Black-- */ +/* +* { + background: #000000ff; + background-alt: #00000000; + background-bar: #3daee966; + foreground: #f5f5f5b3; + accent: #1d99f3ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; + width: 38%; + location: north; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 0.75% 0% -0.5%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 10"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: -0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0.1%; + border-radius: 4px; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 1%; +} + +listview { + background-color: @background-alt; + columns: 1; + lines: 7; + spacing: 0.5%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1%; + padding: 1% 0.5% 1% 0.5%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 0%; + padding: 0.5%; +} + +element-icon { + size: 32px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0; + vertical-align: 0.5; + margin: 0% 0% 0% 0.25%; +} + +element selected { + background-color: @background-bar; + text-color: @foreground; + border: 0.1%; + border-radius: 4px; + border-color: @accent; +} diff --git a/Common/rofi/launchers/misc/kde_simplemenu.rasi b/Common/rofi/launchers/misc/kde_simplemenu.rasi new file mode 100644 index 0000000..5931c22 --- /dev/null +++ b/Common/rofi/launchers/misc/kde_simplemenu.rasi @@ -0,0 +1,143 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Breeze Light-- */ +* { + background: #EFF0F1FF; + background-alt: #00000000; + background-bar: #93CEE999; + foreground: #000000A6; + accent: #3DAEE9FF; +} + +/* -- Breeze Dark-- */ +/* +* { + background: #31363bff; + background-alt: #00000000; + background-bar: #3daee966; + foreground: #f5f5f5e6; + accent: #1d99f3ff; +} +*/ + +/* -- Black-- */ +/* +* { + background: #000000ff; + background-alt: #00000000; + background-bar: #3daee966; + foreground: #f5f5f5b3; + accent: #1d99f3ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; + width: 38%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.30% 0.75% 0% -0.5%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 10"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: -0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0.1%; + border-radius: 4px; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 1%; +} + +listview { + background-color: @background-alt; + columns: 6; + lines: 3; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1%; + padding: 1% 0.5% 1% 0.5%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @background-bar; + text-color: @foreground; + border: 0.1%; + border-radius: 4px; + border-color: @accent; +} diff --git a/Common/rofi/launchers/misc/launcher.sh b/Common/rofi/launchers/misc/launcher.sh new file mode 100755 index 0000000..a25dce9 --- /dev/null +++ b/Common/rofi/launchers/misc/launcher.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# blurry blurry_full kde_simplemenu kde_krunner launchpad +# gnome_do slingshot appdrawer appdrawer_alt appfolder +# column row row_center screen row_dock row_dropdown + +theme="screen" +dir="$HOME/.config/rofi/launchers/misc" + +# comment these lines to disable random style +themes=($(ls -p --hide="launcher.sh" $dir)) +theme="${themes[$(( $RANDOM % 16 ))]}" + +rofi -no-lazy-grab -show drun -modi drun -theme $dir/"$theme" diff --git a/Common/rofi/launchers/misc/launchpad.rasi b/Common/rofi/launchers/misc/launchpad.rasi new file mode 100644 index 0000000..77d6ab8 --- /dev/null +++ b/Common/rofi/launchers/misc/launchpad.rasi @@ -0,0 +1,116 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans Bold 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +* { + background: #00000060; + background-alt: #00000000; + background-bar: #f2f2f215; + foreground: #f2f2f2EE; + accent: #ffffff66; +} + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 0.30% 1% 0% -0.5%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search"; + padding: 0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0.1%; + border-radius: 6px; + border-color: @accent; + margin: 0% 30% 0% 30%; + padding: 1%; +} + +listview { + background-color: @background-alt; + columns: 7; + lines: 4; + spacing: 2%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 8%; + padding: 10% 8.5% 10% 8.5%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.5% 0% 2.5% 0%; +} + +element-icon { + size: 81px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @background-bar; + text-color: @foreground; + border: 0% 0% 0% 0%; + border-radius: 12px; + border-color: @accent; +} diff --git a/Common/rofi/launchers/misc/row.rasi b/Common/rofi/launchers/misc/row.rasi new file mode 100644 index 0000000..9793627 --- /dev/null +++ b/Common/rofi/launchers/misc/row.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; + width: 100%; + location: south; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: -0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 100%; + border-color: @accent; + margin: 0% 73.75% 0% 0%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 12; + lines: 1; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1.5%; + padding: 2% 1% 2% 1%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.5% 0% 2.5% 0%; +} + +element-icon { + size: 80px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 25px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/row_center.rasi b/Common/rofi/launchers/misc/row_center.rasi new file mode 100644 index 0000000..85c98bc --- /dev/null +++ b/Common/rofi/launchers/misc/row_center.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; + width: 100%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: -0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0.3%; + border-radius: 0% 100% 100% 0%; + border-color: @border; + margin: 0% 73.75% 0% 0%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 12; + lines: 2; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1.5%; + padding: 2% 1% 2% 1%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.5% 0% 2.5% 0%; +} + +element-icon { + size: 80px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0% 0.3%; + border-radius: 0px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/row_dock.rasi b/Common/rofi/launchers/misc/row_dock.rasi new file mode 100644 index 0000000..9cbe1c0 --- /dev/null +++ b/Common/rofi/launchers/misc/row_dock.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 50px 50px 0px 0px; + width: 100%; + location: south; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0.5; + placeholder: "Search Applications"; + padding: -0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 100%; + border-color: @accent; + margin: 0% 35% 0% 35%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 12; + lines: 2; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1.5%; + padding: 2% 1% 2% 1%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.5% 0% 2.5% 0%; +} + +element-icon { + size: 80px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 25px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/row_dropdown.rasi b/Common/rofi/launchers/misc/row_dropdown.rasi new file mode 100644 index 0000000..8df78de --- /dev/null +++ b/Common/rofi/launchers/misc/row_dropdown.rasi @@ -0,0 +1,136 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px 0px 50px 50px; + width: 100%; + location: north; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0.5; + placeholder: "Search Applications"; + padding: -0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 100%; + border-color: @accent; + margin: 0% 35% 0% 35%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 12; + lines: 2; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ listview, inputbar ]; + spacing: 2%; + padding: 2% 1% 2% 1%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2.5% 0% 2.5% 0%; +} + +element-icon { + size: 80px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 25px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/screen.rasi b/Common/rofi/launchers/misc/screen.rasi new file mode 100644 index 0000000..f811d5e --- /dev/null +++ b/Common/rofi/launchers/misc/screen.rasi @@ -0,0 +1,132 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light -- */ +* { + background: #e5e5e5ff; + background-alt: #00000000; + background-bar: #FFFFFFFF; + foreground: #000000A6; + accent: #80808066; + border: #1A73E9FF; + selected: #D7D7D7FF; +} + +/* -- Dark -- */ +/* +* { + background: #212121ff; + background-alt: #00000000; + background-bar: #151515FF; + foreground: #EDEDEDFF; + accent: #EDEDED4d; + border: #1A73E9FF; + selected: #151515ff; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 0.25% 0.75% 0% -0.25%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: -0.10% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background-bar; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0.2%; + border-radius: 10%; + border-color: @border; + margin: 0% 50% 0% 0%; + padding: 1.25%; +} + +listview { + background-color: @background-alt; + columns: 8; + lines: 3; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 15% 10% 10% 10%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 3% 0% 3% 0%; +} + +element-icon { + size: 80px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0.2%; + border-radius: 25px; + border-color: @border; +} diff --git a/Common/rofi/launchers/misc/slingshot.rasi b/Common/rofi/launchers/misc/slingshot.rasi new file mode 100644 index 0000000..0268c84 --- /dev/null +++ b/Common/rofi/launchers/misc/slingshot.rasi @@ -0,0 +1,132 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "Noto Sans 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +/* -- Light-- */ +* { + background: #F5F5F5FF; + background-alt: #00000000; + background-bar: #D7D7D7FF; + foreground: #000000A6; + accent: #80808066; +} + +/* -- Dark -- */ +/* +* { + background: #3E4148FF; + background-alt: #00000000; + background-bar: #363A3FFF; + foreground: #F5F5F5FF; + accent: #00000066; +} +*/ + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0px; + border-color: @border; + border-radius: 4px; + width: 32%; + location: northwest; + x-offset: 10px; + y-offset: 50px; +} + +prompt { + enabled: true; + padding: 0.30% 0.5% 0% 0%; + background-color: @background-alt; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 10"; +} + +entry { + background-color: @background-alt; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: -0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0.1%; + border-radius: 4px; + border-color: @accent; + margin: 0% 0% 0% 0%; + padding: 0.50%; +} + +listview { + background-color: @background-alt; + columns: 5; + lines: 3; + spacing: 0%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background-alt; + border: 0% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @accent; + children: [ inputbar, listview ]; + spacing: 1%; + padding: 1.25% 0.65% 1.25% 0.65%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 0.5% -0.5% 0.5%; +} + +element selected { + background-color: @background-bar; + text-color: @foreground; + border: 0.1%; + border-radius: 4px; + border-color: @accent; +} diff --git a/Common/rofi/launchers/ribbon/full_bottom.rasi b/Common/rofi/launchers/ribbon/full_bottom.rasi new file mode 100644 index 0000000..50dc5c7 --- /dev/null +++ b/Common/rofi/launchers/ribbon/full_bottom.rasi @@ -0,0 +1,133 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 0% 3% 0%; + border-color: @border; + border-radius: 0% 0% 0% 0%; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 48.75% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 10; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 0% 3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 12.50% 10% 5% 10%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/full_left.rasi b/Common/rofi/launchers/ribbon/full_left.rasi new file mode 100644 index 0000000..bec29a6 --- /dev/null +++ b/Common/rofi/launchers/ribbon/full_left.rasi @@ -0,0 +1,133 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 0% 0% 1.5%; + border-color: @border; + border-radius: 0% 0% 0% 0%; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 47% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 10; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 0% 0% 1.5%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 15% 10% 10% 10%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/full_right.rasi b/Common/rofi/launchers/ribbon/full_right.rasi new file mode 100644 index 0000000..cfd3b63 --- /dev/null +++ b/Common/rofi/launchers/ribbon/full_right.rasi @@ -0,0 +1,133 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 1.5% 0% 0%; + border-color: @border; + border-radius: 0% 0% 0% 0%; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 47% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 10; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 1.5% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 15% 10% 10% 10%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/full_top.rasi b/Common/rofi/launchers/ribbon/full_top.rasi new file mode 100644 index 0000000..1d04591 --- /dev/null +++ b/Common/rofi/launchers/ribbon/full_top.rasi @@ -0,0 +1,133 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 3% 0% 0% 0%; + border-color: @border; + border-radius: 0% 0% 0% 0%; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 48.75% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 10; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 3% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 12.50% 10% 5% 10%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/launcher.sh b/Common/rofi/launchers/ribbon/launcher.sh new file mode 100755 index 0000000..7e7c21b --- /dev/null +++ b/Common/rofi/launchers/ribbon/launcher.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# ribbon_top ribbon_top_round ribbon_bottom ribbon_bottom_round +# ribbon_left ribbon_left_round ribbon_right ribbon_right_round +# full_bottom full_top full_left full_right + +theme="ribbon_top_round" + +dir="$HOME/.config/rofi/launchers/ribbon" +styles=($(ls -p --hide="colors.rasi" $dir/styles)) +color="${styles[$(( $RANDOM % 8 ))]}" + +# comment this line to disable random colors +sed -i -e "s/@import .*/@import \"$color\"/g" $dir/styles/colors.rasi + +# comment these lines to disable random style +themes=($(ls -p --hide="launcher.sh" --hide="styles" $dir)) +theme="${themes[$(( $RANDOM % 12 ))]}" + +rofi -no-lazy-grab -show drun -modi drun -theme $dir/"$theme" diff --git a/Common/rofi/launchers/ribbon/ribbon_bottom.rasi b/Common/rofi/launchers/ribbon/ribbon_bottom.rasi new file mode 100644 index 0000000..63a20b3 --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_bottom.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 0% 3% 0%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 68.5%; + width: 55%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 0% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 6; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 0% 3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/ribbon_bottom_round.rasi b/Common/rofi/launchers/ribbon/ribbon_bottom_round.rasi new file mode 100644 index 0000000..1f652af --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_bottom_round.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 0% 3% 0%; + border-color: @border; + border-radius: 25px 25px 50px 50px; + height: 68.5%; + width: 55%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 25px; + border-color: @border-alt; + margin: 0% 0% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 6; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 0% 3% 0%; + border-radius: 50px; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 25px; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/ribbon_left.rasi b/Common/rofi/launchers/ribbon/ribbon_left.rasi new file mode 100644 index 0000000..3a5f774 --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_left.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 0% 0% 1.5%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 49.50%; + width: 40%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 17% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 4; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 0% 0% 1.5%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/ribbon_left_round.rasi b/Common/rofi/launchers/ribbon/ribbon_left_round.rasi new file mode 100644 index 0000000..5324c9c --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_left_round.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 0% 0% 1.5%; + border-color: @border; + border-radius: 0% 0% 0% 2.5%; + height: 49.50%; + width: 40%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0.2%; + border-radius: 1.5% 1.0% 1.5% 1.5%; + border-color: @border-alt; + margin: 0% 17% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 4; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 0% 0% 1.5%; + border-radius: 0% 0% 0% 2.5%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0.2%; + border-radius: 1.5% 1.0% 1.5% 1.5%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/ribbon_right.rasi b/Common/rofi/launchers/ribbon/ribbon_right.rasi new file mode 100644 index 0000000..75292ed --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_right.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 1.5% 0% 0%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 36.50%; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 22.25% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 6; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 1.5% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/ribbon_right_round.rasi b/Common/rofi/launchers/ribbon/ribbon_right_round.rasi new file mode 100644 index 0000000..8dd9ad3 --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_right_round.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 0% 1.5% 0% 0%; + border-color: @border; + border-radius: 0% 1.5% 0% 0%; + height: 36.50%; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0.2% 0.3% 0%; + border-radius: 0% 1.5% 1.5% 1.5%; + border-color: @border-alt; + margin: 0% 22.25% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 6; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 0% 1.5% 0% 0%; + border-radius: 0% 1.5% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.2% 0.3% 0%; + border-radius: 1.5% 1.5% 1.5% 1.5%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/ribbon_top.rasi b/Common/rofi/launchers/ribbon/ribbon_top.rasi new file mode 100644 index 0000000..42ea207 --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_top.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 3% 0% 0% 0%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 55.50%; + width: 45%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 0% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 5; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 3% 0% 0% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/ribbon_top_round.rasi b/Common/rofi/launchers/ribbon/ribbon_top_round.rasi new file mode 100644 index 0000000..af4ff7d --- /dev/null +++ b/Common/rofi/launchers/ribbon/ribbon_top_round.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 3% 0% 0% 0%; + border-color: @border; + border-radius: 2.5% 0% 0% 0%; + height: 55.50%; + width: 45%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0.2% 0.3% 0%; + border-radius: 1.5% 0% 1.5% 0%; + border-color: @border-alt; + margin: 0% 0% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 5; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 3% 0% 0% 0%; + border-radius: 2.5% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 2.5% 2% 2.5% 2%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 2% 0% 2% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.2% 0.3% 0%; + border-radius: 1.5% 0% 1.5% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/ribbon/styles/berry.rasi b/Common/rofi/launchers/ribbon/styles/berry.rasi new file mode 100644 index 0000000..6621231 --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/berry.rasi @@ -0,0 +1,9 @@ +* { + background: #2D142Cff; + background-alt: #2D142Cff; + foreground: #ffffffA6; + border: #EE4540ff; + border-alt: #C92A42ff; + selected: #510A3299; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/ribbon/styles/bluish.rasi b/Common/rofi/launchers/ribbon/styles/bluish.rasi new file mode 100644 index 0000000..c3254ee --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/bluish.rasi @@ -0,0 +1,9 @@ +* { + background: #EFF0F1FF; + background-alt: #EFF0F1FF; + foreground: #000000A6; + border: #000B83FF; + border-alt: #3DAEE9FF; + selected: #93CEE999; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/ribbon/styles/cocoa.rasi b/Common/rofi/launchers/ribbon/styles/cocoa.rasi new file mode 100644 index 0000000..cf85282 --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/cocoa.rasi @@ -0,0 +1,9 @@ +* { + background: #413E4Aff; + background-alt: #413E4Aff; + foreground: #F7C7B2ff; + border: #B38184ff; + border-alt: #F3B69Eff; + selected: #B381841a; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/ribbon/styles/colors.rasi b/Common/rofi/launchers/ribbon/styles/colors.rasi new file mode 100644 index 0000000..a1d2937 --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/colors.rasi @@ -0,0 +1,10 @@ +/* + * Change the colorscheme for every menu simply by editing this file... + * + * Available Color Schemes + * + * bluish berry nordic nightly gotham mask faded cocoa + * + */ + +@import "nordic.rasi" diff --git a/Common/rofi/launchers/ribbon/styles/faded.rasi b/Common/rofi/launchers/ribbon/styles/faded.rasi new file mode 100644 index 0000000..99e929a --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/faded.rasi @@ -0,0 +1,9 @@ +* { + background: #5E6C91ff; + background-alt: #5E6C91ff; + foreground: #FFFCFFff; + border: #FF83A7ff; + border-alt: #F4BB6Cff; + selected: #A0B5F44c; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/ribbon/styles/gotham.rasi b/Common/rofi/launchers/ribbon/styles/gotham.rasi new file mode 100644 index 0000000..ce71b9c --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/gotham.rasi @@ -0,0 +1,9 @@ +* { + background: #29384Fff; + background-alt: #29384Fff; + foreground: #FEFFF1ff; + border: #345B7Cff; + border-alt: #715979ff; + selected: #C46C851a; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/ribbon/styles/mask.rasi b/Common/rofi/launchers/ribbon/styles/mask.rasi new file mode 100644 index 0000000..4e81074 --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/mask.rasi @@ -0,0 +1,9 @@ +* { + background: #434C6Dff; + background-alt: #434C6Dff; + foreground: #FAF7CCff; + border: #CA8CA5ff; + border-alt: #F0B2B3ff; + selected: #EFD4B61a; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/ribbon/styles/nightly.rasi b/Common/rofi/launchers/ribbon/styles/nightly.rasi new file mode 100644 index 0000000..027ffab --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/nightly.rasi @@ -0,0 +1,9 @@ +* { + background: #2A3950ff; + background-alt: #2A3950ff; + foreground: #FEFFF1ff; + border: #A162F7ff; + border-alt: #45E3FFff; + selected: #6F88FE1a; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/ribbon/styles/nordic.rasi b/Common/rofi/launchers/ribbon/styles/nordic.rasi new file mode 100644 index 0000000..300ba35 --- /dev/null +++ b/Common/rofi/launchers/ribbon/styles/nordic.rasi @@ -0,0 +1,9 @@ +* { + background: #475C7Bff; + background-alt: #475C7Bff; + foreground: #ffffffcc; + border: #FDBB6Dff; + border-alt: #DA717Fff; + selected: #685E79ff; + urgent: #DA4453FF; +} diff --git a/Common/rofi/launchers/slate/launcher.sh b/Common/rofi/launchers/slate/launcher.sh new file mode 100755 index 0000000..8c12862 --- /dev/null +++ b/Common/rofi/launchers/slate/launcher.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# slate_full slate_center slate_left +# slate_right slate_top slate_bottom + +theme="slate_full" + +dir="$HOME/.config/rofi/launchers/slate" +styles=($(ls -p --hide="colors.rasi" $dir/styles)) +color="${styles[$(( $RANDOM % 20 ))]}" + +# comment this line to disable random colors +sed -i -e "s/@import .*/@import \"$color\"/g" $dir/styles/colors.rasi + +# comment these lines to disable random style +themes=($(ls -p --hide="launcher.sh" --hide="styles" $dir)) +theme="${themes[$(( $RANDOM % 6 ))]}" + +rofi -no-lazy-grab -show drun -modi drun -theme $dir/"$theme" diff --git a/Common/rofi/launchers/slate/slate_bottom.rasi b/Common/rofi/launchers/slate/slate_bottom.rasi new file mode 100644 index 0000000..bfdd155 --- /dev/null +++ b/Common/rofi/launchers/slate/slate_bottom.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 2% 1% 2% 1%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 50%; + width: 100%; + location: south; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 52.25% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 10; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 2% 1% 2% 1%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 8% 5% 0% 5%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 1% 0% 1% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/slate/slate_center.rasi b/Common/rofi/launchers/slate/slate_center.rasi new file mode 100644 index 0000000..14080ff --- /dev/null +++ b/Common/rofi/launchers/slate/slate_center.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 2% 1% 2% 1%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 70%; + width: 70%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 38.25% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 8; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 2% 1% 2% 1%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 6% 3% 6% 3%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 1% 0% 1% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/slate/slate_full.rasi b/Common/rofi/launchers/slate/slate_full.rasi new file mode 100644 index 0000000..f3d2556 --- /dev/null +++ b/Common/rofi/launchers/slate/slate_full.rasi @@ -0,0 +1,133 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 5% 3% 5% 3%; + border-color: @border; + border-radius: 0% 0% 0% 0%; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 49.5% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 8; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 5% 3% 5% 3%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 15% 10% 15% 10%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 1% 0% 1% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/slate/slate_left.rasi b/Common/rofi/launchers/slate/slate_left.rasi new file mode 100644 index 0000000..0eb5082 --- /dev/null +++ b/Common/rofi/launchers/slate/slate_left.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 2% 1% 2% 1%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 100%; + width: 30%; + location: west; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 0% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 3; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 2% 1% 2% 1%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 5% 3% 5% 3%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 1% 0% 1% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/slate/slate_right.rasi b/Common/rofi/launchers/slate/slate_right.rasi new file mode 100644 index 0000000..e3a5fa3 --- /dev/null +++ b/Common/rofi/launchers/slate/slate_right.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 2% 1% 2% 1%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 100%; + width: 30%; + location: east; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 0% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 3; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 2% 1% 2% 1%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 5% 3% 5% 3%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 1% 0% 1% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/slate/slate_top.rasi b/Common/rofi/launchers/slate/slate_top.rasi new file mode 100644 index 0000000..3ea779f --- /dev/null +++ b/Common/rofi/launchers/slate/slate_top.rasi @@ -0,0 +1,138 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 10"; + show-icons: true; + icon-theme: "Papirus"; + display-drun: ""; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border: 2% 1% 2% 1%; + border-color: @border; + border-radius: 0% 0% 0% 0%; + height: 50%; + width: 100%; + location: north; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0% 1% 0% 0%; + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +entry { + background-color: @background; + text-color: @foreground; + placeholder-color: @foreground; + expand: true; + horizontal-align: 0; + placeholder: "Search Applications"; + padding: 0.15% 0% 0% 0%; + blink: true; +} + +inputbar { + children: [ prompt, entry ]; + background-color: @background; + text-color: @foreground; + expand: false; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + margin: 0% 52.25% 0% 0%; + padding: 1%; + position: center; +} + +listview { + background-color: @background; + columns: 10; + spacing: 1%; + cycle: false; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + border: 2% 1% 2% 1%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; + children: [ inputbar, listview ]; + spacing: 2%; + padding: 8% 5% 0% 5%; +} + +element { + background-color: @background; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; + padding: 1% 0% 1% 0%; +} + +element-icon { + size: 64px; + border: 0px; +} + +element-text { + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 0.5% 1% 0% 1%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 1%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.3% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border-alt; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/launchers/slate/styles/Amber.rasi b/Common/rofi/launchers/slate/styles/Amber.rasi new file mode 100644 index 0000000..f2efa55 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Amber.rasi @@ -0,0 +1,36 @@ +/* -- Amber -- */ + +* { +shade1: #FF6F00; +shade2: #FF8F00; +shade3: #FFA000; +shade4: #FFB300; +shade5: #FFC107; +shade6: #FFCA28; +shade7: #FFD54F; +shade8: #FFE082; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #404040; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #404040; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Black.rasi b/Common/rofi/launchers/slate/styles/Black.rasi new file mode 100644 index 0000000..ec8c1fb --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Black.rasi @@ -0,0 +1,36 @@ +/* -- Gray -- */ + +* { +shade1: #000000; +shade2: #050505; +shade3: #101010; +shade4: #151515; +shade5: #202020; +shade6: #252525; +shade7: #303030; +shade8: #353535; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade2; + border-alt: @shade3; + background: @shade4; + background-alt: @shade5; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Blue.rasi b/Common/rofi/launchers/slate/styles/Blue.rasi new file mode 100644 index 0000000..5d205fc --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Blue.rasi @@ -0,0 +1,36 @@ +/* -- Blue -- */ + +* { +shade1: #0D47A1; +shade2: #1565C0; +shade3: #1976D2; +shade4: #1E88E5; +shade5: #2196F3; +shade6: #42A5F5; +shade7: #64B5F6; +shade8: #90CAF9; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #202020; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Blue_gray.rasi b/Common/rofi/launchers/slate/styles/Blue_gray.rasi new file mode 100644 index 0000000..5ff24dd --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Blue_gray.rasi @@ -0,0 +1,36 @@ +/* -- Blue Gray -- */ + +* { +shade1: #263238; +shade2: #37474F; +shade3: #455A64; +shade4: #546E7A; +shade5: #607D8B; +shade6: #78909C; +shade7: #90A4AE; +shade8: #B0BEC5; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Brown.rasi b/Common/rofi/launchers/slate/styles/Brown.rasi new file mode 100644 index 0000000..fd54539 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Brown.rasi @@ -0,0 +1,36 @@ +/* -- Brown -- */ + +* { +shade1: #3E2723; +shade2: #4E342E; +shade3: #5D4037; +shade4: #6D4C41; +shade5: #795548; +shade6: #8D6E63; +shade7: #A1887F; +shade8: #BCAAA4; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Cyan.rasi b/Common/rofi/launchers/slate/styles/Cyan.rasi new file mode 100644 index 0000000..d6db860 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Cyan.rasi @@ -0,0 +1,36 @@ +/* -- Cyan -- */ + +* { +shade1: #006064; +shade2: #00838F; +shade3: #0097A7; +shade4: #00ACC1; +shade5: #00BCD4; +shade6: #26C6DA; +shade7: #4DD0E1; +shade8: #80DEEA; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #303030; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Deep_orange.rasi b/Common/rofi/launchers/slate/styles/Deep_orange.rasi new file mode 100644 index 0000000..4e21a7b --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Deep_orange.rasi @@ -0,0 +1,36 @@ +/* -- Deep Orange -- */ + +* { +shade1: #BF360C; +shade2: #D84315; +shade3: #E64A19; +shade4: #F4511E; +shade5: #FF5722; +shade6: #FF7043; +shade7: #FF8A65; +shade8: #FFAB91; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #353535; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Deep_purple.rasi b/Common/rofi/launchers/slate/styles/Deep_purple.rasi new file mode 100644 index 0000000..a15d9a4 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Deep_purple.rasi @@ -0,0 +1,36 @@ +/* -- Deep Purple -- */ + +* { +shade1: #311B92; +shade2: #4527A0; +shade3: #512DA8; +shade4: #5E35B1; +shade5: #673AB7; +shade6: #7E57C2; +shade7: #9575CD; +shade8: #B39DDB; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Gray.rasi b/Common/rofi/launchers/slate/styles/Gray.rasi new file mode 100644 index 0000000..1dcd95b --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Gray.rasi @@ -0,0 +1,36 @@ +/* -- Gray -- */ + +* { +shade1: #212121; +shade2: #424242; +shade3: #616161; +shade4: #757575; +shade5: #9E9E9E; +shade6: #BDBDBD; +shade7: #D4D4D4; +shade8: #EEEEEE; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #303030; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Green.rasi b/Common/rofi/launchers/slate/styles/Green.rasi new file mode 100644 index 0000000..459e254 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Green.rasi @@ -0,0 +1,36 @@ +/* -- Green -- */ + +* { +shade1: #1B5E20; +shade2: #2E7D32; +shade3: #388E3C; +shade4: #43A047; +shade5: #4CAF50; +shade6: #66BB6A; +shade7: #81C784; +shade8: #A5D6A7; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #202020; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Indigo.rasi b/Common/rofi/launchers/slate/styles/Indigo.rasi new file mode 100644 index 0000000..e403909 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Indigo.rasi @@ -0,0 +1,36 @@ +/* -- Indigo -- */ + +* { +shade1: #1A237E; +shade2: #283593; +shade3: #303F9F; +shade4: #3949AB; +shade5: #3F51B5; +shade6: #5C6BC0; +shade7: #7986CB; +shade8: #9FA8DA; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Light_blue.rasi b/Common/rofi/launchers/slate/styles/Light_blue.rasi new file mode 100644 index 0000000..df7b9a2 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Light_blue.rasi @@ -0,0 +1,36 @@ +/* -- Light Blue -- */ + +* { +shade1: #01579B; +shade2: #0277BD; +shade3: #0288D1; +shade4: #039BE5; +shade5: #03A9F4; +shade6: #29B6F6; +shade7: #4FC3F7; +shade8: #81D4FA; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #202020; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Light_green.rasi b/Common/rofi/launchers/slate/styles/Light_green.rasi new file mode 100644 index 0000000..39738ea --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Light_green.rasi @@ -0,0 +1,36 @@ +/* -- Light Green -- */ + +* { +shade1: #33691E; +shade2: #558B2F; +shade3: #689F38; +shade4: #7CB342; +shade5: #8BC34A; +shade6: #9CCC65; +shade7: #AED581; +shade8: #C5E1A5; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #353535; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Lime.rasi b/Common/rofi/launchers/slate/styles/Lime.rasi new file mode 100644 index 0000000..a688a10 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Lime.rasi @@ -0,0 +1,36 @@ +/* -- Lime -- */ + +* { +shade1: #827717; +shade2: #9E9D24; +shade3: #AFB42B; +shade4: #C0CA33; +shade5: #CDDC39; +shade6: #D4E157; +shade7: #DCE775; +shade8: #E6EE9C; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #252525; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #404040; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Orange.rasi b/Common/rofi/launchers/slate/styles/Orange.rasi new file mode 100644 index 0000000..a6cdc35 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Orange.rasi @@ -0,0 +1,36 @@ +/* -- Orange -- */ + +* { +shade1: #E65100; +shade2: #EF6C00; +shade3: #F57C00; +shade4: #FB8C00; +shade5: #FF9800; +shade6: #FFA726; +shade7: #FFB74D; +shade8: #FFCC80; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #202020; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #353535; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Pink.rasi b/Common/rofi/launchers/slate/styles/Pink.rasi new file mode 100644 index 0000000..a15e577 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Pink.rasi @@ -0,0 +1,36 @@ +/* -- Pink -- */ + +* { +shade1: #880E4F; +shade2: #AD1457; +shade3: #C2185B; +shade4: #D81B60; +shade5: #E91E63; +shade6: #EC407A; +shade7: #F06292; +shade8: #F48FB1; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Purple.rasi b/Common/rofi/launchers/slate/styles/Purple.rasi new file mode 100644 index 0000000..2268fe5 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Purple.rasi @@ -0,0 +1,36 @@ +/* -- Purple -- */ + +* { +shade1: #4A148C; +shade2: #6A1B9A; +shade3: #7B1FA2; +shade4: #8E24AA; +shade5: #9C27B0; +shade6: #AB47BC; +shade7: #BA68C8; +shade8: #CE93D8; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Red.rasi b/Common/rofi/launchers/slate/styles/Red.rasi new file mode 100644 index 0000000..ea14821 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Red.rasi @@ -0,0 +1,36 @@ +/* -- Red -- */ + +* { +shade1: #B71C1C; +shade2: #C62828; +shade3: #D32F2F; +shade4: #E53935; +shade5: #EE413D; +shade6: #EF5350; +shade7: #E57373; +shade8: #EF9A9A; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Teal.rasi b/Common/rofi/launchers/slate/styles/Teal.rasi new file mode 100644 index 0000000..8ac9c03 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Teal.rasi @@ -0,0 +1,36 @@ +/* -- Teal -- */ + +* { +shade1: #004D40; +shade2: #00695C; +shade3: #00796B; +shade4: #00897B; +shade5: #009688; +shade6: #26A69A; +shade7: #4DB6AC; +shade8: #80CBC4; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #ffffff; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #ffffff; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/Yellow.rasi b/Common/rofi/launchers/slate/styles/Yellow.rasi new file mode 100644 index 0000000..ce28546 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/Yellow.rasi @@ -0,0 +1,36 @@ +/* -- Yellow -- */ + +* { +shade1: #F57F17; +shade2: #F9A825; +shade3: #FBC02D; +shade4: #FDD835; +shade5: #FFEB3B; +shade6: #FFEE58; +shade7: #FFF176; +shade8: #FFF59D; +} + +/**** Comment One First To Use Another ****/ + +/* -- Dark -- */ +* { + border: @shade1; + border-alt: @shade2; + background: @shade3; + background-alt: @shade3; + selected: @shade4; + foreground: #353535; + urgent: #DA4453; +} + +/* -- light -- */ +* { + border: @shade8; + border-alt: @shade7; + background: @shade6; + background-alt: @shade6; + selected: @shade5; + foreground: #505050; + urgent: #DA4453; +} diff --git a/Common/rofi/launchers/slate/styles/colors.rasi b/Common/rofi/launchers/slate/styles/colors.rasi new file mode 100644 index 0000000..3f21382 --- /dev/null +++ b/Common/rofi/launchers/slate/styles/colors.rasi @@ -0,0 +1,12 @@ +/* + * Change the colorscheme for every menu simply by editing this file... + * + * Available Color Schemes + * + * Amber Blue Blue_gray Black Brown Cyan Deep_orange + * Deep_purple Gray Green Indigo Light_blue Light_green Lime + * Orange Pink Purple Red Teal Yellow + * + */ + +@import "Blue.rasi" diff --git a/Common/rofi/launchers/text/launcher.sh b/Common/rofi/launchers/text/launcher.sh new file mode 100755 index 0000000..b5c28a6 --- /dev/null +++ b/Common/rofi/launchers/text/launcher.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# style_1 style_2 style_3 style_4 style_5 style_6 style_7 + +theme="style_2" + +dir="$HOME/.config/rofi/launchers/text" +styles=($(ls -p --hide="colors.rasi" $dir/styles)) +color="${styles[$(( $RANDOM % 10 ))]}" + +# comment this line to disable random colors +sed -i -e "s/@import .*/@import \"$color\"/g" $dir/styles/colors.rasi + +# comment these lines to disable random style +themes=($(ls -p --hide="launcher.sh" --hide="styles" $dir)) +theme="${themes[$(( $RANDOM % 7 ))]}" + +rofi -no-lazy-grab -show drun \ +-modi run,drun,window \ +-theme $dir/"$theme" + diff --git a/Common/rofi/launchers/text/style_1.rasi b/Common/rofi/launchers/text/style_1.rasi new file mode 100644 index 0000000..2dc1a73 --- /dev/null +++ b/Common/rofi/launchers/text/style_1.rasi @@ -0,0 +1,176 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + lines: 10; + columns: 2; + font: "Iosevka Nerd Font 12"; + bw: 0; + location: 0; + padding: 0; + fixed-num-lines: true; + show-icons: false; + sidebar-mode: true; + separator-style: "none"; + hide-scrollbar: true; + fullscreen: false; + fake-transparency: false; + scroll-method: 1; + window-format: "[{w}] ··· {c} ··· {t}"; + click-to-exit: true; + show-match: false; + combi-hide-mode-prefix: false; + display-window: ""; + display-windowcd: ""; + display-run: ""; + display-ssh: ""; + display-drun: ""; + display-combi: ""; +} + +@import "styles/colors.rasi" + +* { + background-color: @bg; +} + +window { + border: 0px; + border-color: @ac; + border-radius: 12px; + padding: 40; + width: 50%; + height: 50%; +} + +prompt { + spacing: 0; + border: 0; + text-color: @fg; +} + +textbox-prompt-colon { + expand: false; + str: " "; + margin: 0px 4px 0px 0px; + text-color: inherit; +} + +entry { + spacing: 0; + text-color: @fg; +} + +case-indicator { + spacing: 0; + text-color: @fg; +} + +inputbar { + spacing: 0px; + text-color: @fg; + padding: 1px; + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} + +mainbox { + border: 0px; + border-color: @ac; + padding: 6; +} + +listview { + fixed-height: 0; + border: 0px; + border-color: @ac; + spacing: 4px; + scrollbar: false; + padding: 4px 0px 0px; +} + +element { + border: 0px; + padding: 1px; +} +element normal.normal { + background-color: @bg; + text-color: @fg; +} +element normal.urgent { + background-color: @bg; + text-color: @red; +} +element normal.active { + background-color: @bg; + text-color: @green; +} +element selected.normal { + background-color: @bg; + text-color: @ac; +} +element selected.urgent { + background-color: @bg; + text-color: @red; +} +element selected.active { + background-color: @bg; + text-color: @ac; +} +element alternate.normal { + background-color: @bg; + text-color: @fg; +} +element alternate.urgent { + background-color: @bg; + text-color: @fg; +} +element alternate.active { + background-color: @bg; + text-color: @fg; +} + +sidebar { + border: 0px; + border-color: @ac; + border-radius: 20px; +} + +button { + margin: 5px; + padding: 5px; + text-color: @fg; + border: 0px; + border-radius: 20px; + border-color: @fg; +} + +button selected { + text-color: @fg; + border: 3px; + border-radius: 20px; + border-color: @ac; +} + +scrollbar { + width: 4px; + border: 0px; + handle-color: @fg; + handle-width: 8px; + padding: 0; +} + +message { + border: 0px; + border-color: @ac; + padding: 1px; +} + +textbox { + text-color: @fg; +} diff --git a/Common/rofi/launchers/text/style_2.rasi b/Common/rofi/launchers/text/style_2.rasi new file mode 100644 index 0000000..c762dd6 --- /dev/null +++ b/Common/rofi/launchers/text/style_2.rasi @@ -0,0 +1,178 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + lines: 15; + columns: 1; + font: "Iosevka Nerd Font 12"; + bw: 0; + location: 0; + padding: 0; + fixed-num-lines: true; + show-icons: false; + sidebar-mode: true; + separator-style: "none"; + hide-scrollbar: true; + fullscreen: false; + fake-transparency: false; + scroll-method: 0; + window-format: "[{w}] ··· {c} ··· {t}"; + click-to-exit: true; + show-match: false; + combi-hide-mode-prefix: false; + display-window: ""; + display-windowcd: ""; + display-run: ""; + display-ssh: ""; + display-drun: ""; + display-combi: ""; +} + +@import "styles/colors.rasi" + +* { + background-color: @bg; +} + +window { + border: 0px; + border-color: @ac; + border-radius: 6px; + padding: 30; + width: 20%; +} + +prompt { + spacing: 0; + border: 0; + text-color: @fg; +} + +textbox-prompt-colon { + expand: false; + str: " "; + margin: 0px 4px 0px 0px; + text-color: inherit; +} + +entry { + spacing: 0; + text-color: @fg; +} + +case-indicator { + spacing: 0; + text-color: @fg; +} + +inputbar { + spacing: 0px; + text-color: @fg; + padding: 1px; + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} + +mainbox { + border: 0px; + border-color: @ac; + padding: 6; +} + +listview { + fixed-height: 0; + border: 0px; + border-color: @ac; + spacing: 4px; + scrollbar: false; + padding: 5px 5px 0px 5px; +} + +element { + border: 0px; + border-radius: 4px; + padding: 5px; +} +element normal.normal { + background-color: @bg; + text-color: @fg; +} +element normal.urgent { + background-color: @bg; + text-color: @red; +} +element normal.active { + background-color: @green; + text-color: @bg; +} +element selected.normal { + background-color: @fg; + text-color: @bg; +} +element selected.urgent { + background-color: @bg; + text-color: @red; +} +element selected.active { + background-color: @fg; + text-color: @bg; +} +element alternate.normal { + background-color: @bg; + text-color: @fg; +} +element alternate.urgent { + background-color: @bg; + text-color: @fg; +} +element alternate.active { + background-color: @bg; + text-color: @fg; +} + +sidebar { + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +button { + background-color: @fg; + margin: 5px; + padding: 5px; + text-color: @bg; + border: 0px; + border-radius: 4px; + border-color: @fg; +} + +button selected { + background-color: @ac; + text-color: @fg; + border: 0px; + border-radius: 4px; + border-color: @fg; +} + +scrollbar { + width: 4px; + border: 0px; + handle-color: @fg; + handle-width: 8px; + padding: 0; +} + +message { + border: 0px; + border-color: @ac; + padding: 1px; +} + +textbox { + text-color: @fg; +} diff --git a/Common/rofi/launchers/text/style_3.rasi b/Common/rofi/launchers/text/style_3.rasi new file mode 100644 index 0000000..74e3b0d --- /dev/null +++ b/Common/rofi/launchers/text/style_3.rasi @@ -0,0 +1,178 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + lines: 6; + columns: 1; + font: "Iosevka Nerd Font 12"; + bw: 0; + location: 0; + padding: 0; + fixed-num-lines: true; + show-icons: false; + sidebar-mode: true; + separator-style: "none"; + hide-scrollbar: true; + fullscreen: false; + fake-transparency: false; + scroll-method: 0; + window-format: "[{w}] ··· {c} ··· {t}"; + click-to-exit: true; + show-match: false; + combi-hide-mode-prefix: false; + display-window: ""; + display-windowcd: ""; + display-run: ""; + display-ssh: ""; + display-drun: ""; + display-combi: ""; +} + +@import "styles/colors.rasi" + +* { + background-color: @bg; +} + +window { + border: 0px; + border-color: @ac; + border-radius: 6px; + padding: 15; + width: 20%; +} + +prompt { + spacing: 0; + border: 0; + text-color: @fg; +} + +textbox-prompt-colon { + expand: false; + str: " "; + margin: 0px 4px 0px 0px; + text-color: inherit; +} + +entry { + spacing: 0; + text-color: @fg; +} + +case-indicator { + spacing: 0; + text-color: @fg; +} + +inputbar { + spacing: 0px; + text-color: @fg; + padding: 1px; + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} + +mainbox { + border: 0px; + border-color: @ac; + padding: 6; +} + +listview { + fixed-height: 0; + border: 0px; + border-color: @ac; + spacing: 4px; + scrollbar: false; + padding: 5px 5px 0px 5px; +} + +element { + border: 0px; + border-radius: 4px; + padding: 5px; +} +element normal.normal { + background-color: @bg; + text-color: @fg; +} +element normal.urgent { + background-color: @bg; + text-color: @red; +} +element normal.active { + background-color: @green; + text-color: @bg; +} +element selected.normal { + background-color: @fg; + text-color: @bg; +} +element selected.urgent { + background-color: @bg; + text-color: @red; +} +element selected.active { + background-color: @fg; + text-color: @bg; +} +element alternate.normal { + background-color: @bg; + text-color: @fg; +} +element alternate.urgent { + background-color: @bg; + text-color: @fg; +} +element alternate.active { + background-color: @bg; + text-color: @fg; +} + +sidebar { + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +button { + background-color: @fg; + margin: 5px; + padding: 5px; + text-color: @bg; + border: 0px; + border-radius: 4px; + border-color: @fg; +} + +button selected { + background-color: @ac; + text-color: @fg; + border: 0px; + border-radius: 4px; + border-color: @fg; +} + +scrollbar { + width: 4px; + border: 0px; + handle-color: @fg; + handle-width: 8px; + padding: 0; +} + +message { + border: 0px; + border-color: @ac; + padding: 1px; +} + +textbox { + text-color: @fg; +} diff --git a/Common/rofi/launchers/text/style_4.rasi b/Common/rofi/launchers/text/style_4.rasi new file mode 100644 index 0000000..4b81aa8 --- /dev/null +++ b/Common/rofi/launchers/text/style_4.rasi @@ -0,0 +1,179 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + lines: 15; + columns: 1; + font: "Iosevka Nerd Font 12"; + bw: 0; + location: 1; + padding: 0; + fixed-num-lines: true; + show-icons: false; + sidebar-mode: true; + separator-style: "none"; + hide-scrollbar: true; + fullscreen: false; + fake-transparency: false; + scroll-method: 0; + window-format: "[{w}] ··· {c} ··· {t}"; + click-to-exit: true; + show-match: false; + combi-hide-mode-prefix: false; + display-window: ""; + display-windowcd: ""; + display-run: ""; + display-ssh: ""; + display-drun: ""; + display-combi: ""; +} + +@import "styles/colors.rasi" + +* { + background-color: @bg; +} + +window { + border: 0px; + border-color: @ac; + border-radius: 0px; + padding: 30; + width: 20%; + height: 100%; +} + +prompt { + spacing: 0; + border: 0; + text-color: @fg; +} + +textbox-prompt-colon { + expand: false; + str: " "; + margin: 0px 4px 0px 0px; + text-color: inherit; +} + +entry { + spacing: 0; + text-color: @fg; +} + +case-indicator { + spacing: 0; + text-color: @fg; +} + +inputbar { + spacing: 0px; + text-color: @fg; + padding: 1px; + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} + +mainbox { + border: 0px; + border-color: @ac; + padding: 6; +} + +listview { + fixed-height: 0; + border: 0px; + border-color: @ac; + spacing: 4px; + scrollbar: false; + padding: 15px 5px 0px 5px; +} + +element { + border: 0px; + border-radius: 4px; + padding: 5px; +} +element normal.normal { + background-color: @bg; + text-color: @fg; +} +element normal.urgent { + background-color: @bg; + text-color: @red; +} +element normal.active { + background-color: @green; + text-color: @bg; +} +element selected.normal { + background-color: @ac; + text-color: @bg; +} +element selected.urgent { + background-color: @bg; + text-color: @red; +} +element selected.active { + background-color: @ac; + text-color: @bg; +} +element alternate.normal { + background-color: @bg; + text-color: @fg; +} +element alternate.urgent { + background-color: @bg; + text-color: @fg; +} +element alternate.active { + background-color: @bg; + text-color: @fg; +} + +sidebar { + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +button { + background-color: @red; + margin: 5px; + padding: 5px; + text-color: @fg; + border: 0px; + border-radius: 4px; + border-color: @fg; +} + +button selected { + background-color: @green; + text-color: @fg; + border: 0px; + border-radius: 4px; + border-color: @fg; +} + +scrollbar { + width: 4px; + border: 0px; + handle-color: @fg; + handle-width: 8px; + padding: 0; +} + +message { + border: 0px; + border-color: @ac; + padding: 1px; +} + +textbox { + text-color: @fg; +} diff --git a/Common/rofi/launchers/text/style_5.rasi b/Common/rofi/launchers/text/style_5.rasi new file mode 100644 index 0000000..af45c55 --- /dev/null +++ b/Common/rofi/launchers/text/style_5.rasi @@ -0,0 +1,181 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + lines: 5; + columns: 3; + font: "Iosevka Nerd Font 12"; + bw: 0; + location: 0; + padding: 0; + fixed-num-lines: true; + show-icons: false; + sidebar-mode: true; + separator-style: "none"; + hide-scrollbar: true; + fullscreen: true; + fake-transparency: false; + scroll-method: 0; + window-format: "[{w}] ··· {c} ··· {t}"; + click-to-exit: true; + show-match: false; + combi-hide-mode-prefix: false; + display-window: ""; + display-windowcd: ""; + display-run: ""; + display-ssh: ""; + display-drun: ""; + display-combi: ""; +} + +@import "styles/colors.rasi" + +* { + background-color: @bg; +} + +window { + border: 0px; + border-color: @ac; + border-radius: 0px; + padding: 300px; + width: 100%; +} + +prompt { + spacing: 0; + border: 0; + text-color: @fg; +} + +textbox-prompt-colon { + expand: false; + str: " "; + margin: 0px 4px 0px 0px; + text-color: inherit; +} + +entry { + spacing: 0; + text-color: @fg; +} + +case-indicator { + spacing: 0; + text-color: @fg; +} + +inputbar { + spacing: 0px; + text-color: @fg; + padding: 1px; + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} + +mainbox { + border: 0px; + border-color: @ac; + padding: 6; +} + +listview { + fixed-height: 0; + border: 0px; + border-color: @ac; + spacing: 5px; + scrollbar: false; + padding: 25px 5px -20px 5px; +} + +element { + border: 4px; + border-radius: 4px; + padding: 15px; +} +element normal.normal { + background-color: @bg; + text-color: @fg; +} +element normal.urgent { + background-color: @bg; + text-color: @red; +} +element normal.active { + background-color: @bg; + text-color: @fg; + border-color: @green; +} +element selected.normal { + background-color: @bg; + text-color: @fg; + border-color: @fg; +} +element selected.urgent { + background-color: @bg; + text-color: @red; +} +element selected.active { + background-color: @bg; + text-color: @fg; + border-color: @fg; +} +element alternate.normal { + background-color: @bg; + text-color: @fg; +} +element alternate.urgent { + background-color: @bg; + text-color: @fg; +} +element alternate.active { + background-color: @bg; + text-color: @fg; +} + +sidebar { + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +button { + background-color: @se; + margin: 5px; + padding: 15px; + text-color: @fg; + border: 0px; + border-radius: 4px; + border-color: @fg; +} + +button selected { + background-color: @bg; + text-color: @fg; + border: 4px; + border-radius: 4px; + border-color: @fg; +} + +scrollbar { + width: 4px; + border: 0px; + handle-color: @fg; + handle-width: 8px; + padding: 0; +} + +message { + border: 0px; + border-color: @ac; + padding: 1px; +} + +textbox { + text-color: @fg; +} diff --git a/Common/rofi/launchers/text/style_6.rasi b/Common/rofi/launchers/text/style_6.rasi new file mode 100644 index 0000000..b05bc90 --- /dev/null +++ b/Common/rofi/launchers/text/style_6.rasi @@ -0,0 +1,178 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + lines: 10; + columns: 1; + font: "Iosevka Nerd Font 12"; + bw: 0; + location: 0; + padding: 0; + fixed-num-lines: true; + show-icons: false; + sidebar-mode: true; + separator-style: "none"; + hide-scrollbar: true; + fullscreen: true; + fake-transparency: false; + scroll-method: 0; + window-format: "[{w}] ··· {c} ··· {t}"; + click-to-exit: true; + show-match: false; + combi-hide-mode-prefix: false; + display-window: ""; + display-windowcd: ""; + display-run: ""; + display-ssh: ""; + display-drun: ""; + display-combi: ""; +} + +@import "styles/colors.rasi" + +* { + background-color: @bg; +} + +window { + border: 0px; + border-color: @ac; + border-radius: 0px; + padding: 30%; + width: 100%; +} + +prompt { + spacing: 0; + border: 0; + text-color: @fg; +} + +textbox-prompt-colon { + expand: false; + str: " "; + margin: 0px 4px 0px 0px; + text-color: inherit; +} + +entry { + spacing: 0; + text-color: @fg; +} + +case-indicator { + spacing: 0; + text-color: @fg; +} + +inputbar { + spacing: 0px; + text-color: @fg; + padding: 1px; + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} + +mainbox { + border: 0px; + border-color: @ac; + padding: 6; +} + +listview { + fixed-height: 0; + border: 0px; + border-color: @ac; + spacing: 5px; + scrollbar: false; + padding: 35px 5px 25px 5px; +} + +element { + border: 0px; + border-radius: 100%; + padding: 15px; +} +element normal.normal { + background-color: @bg; + text-color: @fg; +} +element normal.urgent { + background-color: @bg; + text-color: @red; +} +element normal.active { + background-color: @green; + text-color: @bg; +} +element selected.normal { + background-color: @fg; + text-color: @bg; +} +element selected.urgent { + background-color: @bg; + text-color: @red; +} +element selected.active { + background-color: @fg; + text-color: @bg; +} +element alternate.normal { + background-color: @bg; + text-color: @fg; +} +element alternate.urgent { + background-color: @bg; + text-color: @fg; +} +element alternate.active { + background-color: @bg; + text-color: @fg; +} + +sidebar { + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +button { + background-color: @fg; + margin: 5px; + padding: 15px; + text-color: @bg; + border: 0px; + border-radius: 100%; + border-color: @fg; +} + +button selected { + background-color: @ac; + text-color: @fg; + border: 0px; + border-radius: 100%; + border-color: @fg; +} + +scrollbar { + width: 4px; + border: 0px; + handle-color: @fg; + handle-width: 8px; + padding: 0; +} + +message { + border: 0px; + border-color: @ac; + padding: 1px; +} + +textbox { + text-color: @fg; +} diff --git a/Common/rofi/launchers/text/style_7.rasi b/Common/rofi/launchers/text/style_7.rasi new file mode 100644 index 0000000..9b6d471 --- /dev/null +++ b/Common/rofi/launchers/text/style_7.rasi @@ -0,0 +1,178 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + lines: 10; + columns: 2; + font: "Iosevka Nerd Font 12"; + bw: 0; + location: 0; + padding: 0; + fixed-num-lines: true; + show-icons: false; + sidebar-mode: true; + separator-style: "none"; + hide-scrollbar: true; + fullscreen: false; + fake-transparency: false; + scroll-method: 1; + window-format: "[{w}] ··· {c} ··· {t}"; + click-to-exit: true; + show-match: false; + combi-hide-mode-prefix: false; + display-window: ""; + display-windowcd: ""; + display-run: ""; + display-ssh: ""; + display-drun: ""; + display-combi: ""; +} + +@import "styles/colors.rasi" + +* { + background-color: @bg; +} + +window { + border: 0px; + border-color: @ac; + border-radius: 20px; + padding: 30; + width: 40%; +} + +prompt { + spacing: 0; + border: 0; + text-color: @fg; +} + +textbox-prompt-colon { + expand: false; + str: " "; + margin: 0px 4px 0px 0px; + text-color: inherit; +} + +entry { + spacing: 0; + text-color: @fg; +} + +case-indicator { + spacing: 0; + text-color: @fg; +} + +inputbar { + spacing: 0px; + text-color: @fg; + padding: 1px; + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; +} + +mainbox { + border: 0px; + border-color: @ac; + padding: 6; +} + +listview { + fixed-height: 0; + border: 0px; + border-color: @ac; + spacing: 4px; + scrollbar: false; + padding: 5px 5px 0px 5px; +} + +element { + border: 0px; + border-radius: 100%; + padding: 5px; +} +element normal.normal { + background-color: @bg; + text-color: @fg; +} +element normal.urgent { + background-color: @bg; + text-color: @red; +} +element normal.active { + background-color: @green; + text-color: @bg; +} +element selected.normal { + background-color: @ac; + text-color: @bg; +} +element selected.urgent { + background-color: @bg; + text-color: @red; +} +element selected.active { + background-color: @ac; + text-color: @bg; +} +element alternate.normal { + background-color: @bg; + text-color: @fg; +} +element alternate.urgent { + background-color: @bg; + text-color: @fg; +} +element alternate.active { + background-color: @bg; + text-color: @fg; +} + +sidebar { + border: 0px; + border-color: @ac; + border-radius: 0px; +} + +button { + background-color: @red; + margin: 5px; + padding: 5px; + text-color: @fg; + border: 0px; + border-radius: 100%; + border-color: @fg; +} + +button selected { + background-color: @green; + text-color: @fg; + border: 0px; + border-radius: 100%; + border-color: @fg; +} + +scrollbar { + width: 4px; + border: 0px; + handle-color: @fg; + handle-width: 8px; + padding: 0; +} + +message { + border: 0px; + border-color: @ac; + padding: 1px; +} + +textbox { + text-color: @fg; +} diff --git a/Common/rofi/launchers/text/styles/berry.rasi b/Common/rofi/launchers/text/styles/berry.rasi new file mode 100644 index 0000000..65ab4f1 --- /dev/null +++ b/Common/rofi/launchers/text/styles/berry.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #280F28ff; + se: #2D142Cff; + fg: #ffffffA6; + ac: #EE4540ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/black.rasi b/Common/rofi/launchers/text/styles/black.rasi new file mode 100644 index 0000000..77366f1 --- /dev/null +++ b/Common/rofi/launchers/text/styles/black.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #101010ff; + se: #151515ff; + fg: #f5f5f5ff; + ac: #42A5F5ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/bluish.rasi b/Common/rofi/launchers/text/styles/bluish.rasi new file mode 100644 index 0000000..ad8b84f --- /dev/null +++ b/Common/rofi/launchers/text/styles/bluish.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #EFF0F1FF; + se: #E3E3E3FF; + fg: #000000A6; + ac: #000B83FF; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/cocoa.rasi b/Common/rofi/launchers/text/styles/cocoa.rasi new file mode 100644 index 0000000..3c641a4 --- /dev/null +++ b/Common/rofi/launchers/text/styles/cocoa.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #3C3945FF; + se: #413E4Aff; + fg: #F7C7B2ff; + ac: #B38184ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/colors.rasi b/Common/rofi/launchers/text/styles/colors.rasi new file mode 100644 index 0000000..5b5d2b7 --- /dev/null +++ b/Common/rofi/launchers/text/styles/colors.rasi @@ -0,0 +1,11 @@ +/* + * Change the colorscheme for every menu simply by editing this file... + * + * Available Color Schemes + * + * bluish berry nordic nightly gotham mask faded cocoa + * black white + * + */ + +@import "berry.rasi" diff --git a/Common/rofi/launchers/text/styles/faded.rasi b/Common/rofi/launchers/text/styles/faded.rasi new file mode 100644 index 0000000..c9567e0 --- /dev/null +++ b/Common/rofi/launchers/text/styles/faded.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #57678CFF; + se: #5E6C91ff; + fg: #FFFCFFff; + ac: #FF83A7ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/gotham.rasi b/Common/rofi/launchers/text/styles/gotham.rasi new file mode 100644 index 0000000..4d13693 --- /dev/null +++ b/Common/rofi/launchers/text/styles/gotham.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #24334Aff; + se: #29384Fff; + fg: #FEFFF1ff; + ac: #3A6081ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/mask.rasi b/Common/rofi/launchers/text/styles/mask.rasi new file mode 100644 index 0000000..afb1cfa --- /dev/null +++ b/Common/rofi/launchers/text/styles/mask.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #3E4667ff; + se: #434C6Dff; + fg: #FAF7CCff; + ac: #CA8CA5ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/nightly.rasi b/Common/rofi/launchers/text/styles/nightly.rasi new file mode 100644 index 0000000..75d3a00 --- /dev/null +++ b/Common/rofi/launchers/text/styles/nightly.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #25344Bff; + se: #2A3950ff; + fg: #FEFFF1ff; + ac: #A162F7ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/nordic.rasi b/Common/rofi/launchers/text/styles/nordic.rasi new file mode 100644 index 0000000..8ff9560 --- /dev/null +++ b/Common/rofi/launchers/text/styles/nordic.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #425775ff; + se: #475C7Bff; + fg: #ffffffcc; + ac: #FDBB6Dff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/launchers/text/styles/white.rasi b/Common/rofi/launchers/text/styles/white.rasi new file mode 100644 index 0000000..48f1c8c --- /dev/null +++ b/Common/rofi/launchers/text/styles/white.rasi @@ -0,0 +1,15 @@ +/* colors */ + +* { + al: #00000000; + bg: #ffffffff; + se: #f5f5f5ff; + fg: #000000ff; + ac: #2900D0ff; + red: #EC7875ff; + green: #61C766ff; + yellow: #FDD835ff; + blue: #42A5F5ff; + purple: #BA68C8ff; + cyan: #4DD0E1ff; +} diff --git a/Common/rofi/powermenu/card_alt.rasi b/Common/rofi/powermenu/card_alt.rasi new file mode 100644 index 0000000..ae057fa --- /dev/null +++ b/Common/rofi/powermenu/card_alt.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 12"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0%; + height: 28.5%; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 0.5% 0.5% 0.5% 0%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0% 0.2% 0.2%; + border-radius: 1%; + border-color: @border; + margin: 0% 21.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 2%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3.5%; + padding: 4% 0% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 4%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 4.7% 2.7% 7.5% 2.7%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.2% 0.2%; + border-radius: 4%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/card_circle.rasi b/Common/rofi/powermenu/card_circle.rasi new file mode 100644 index 0000000..07373bc --- /dev/null +++ b/Common/rofi/powermenu/card_circle.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 12"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 28.5%; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 0.5% 0.5% 0.5% 0%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.2% 0.2% 0%; + border-radius: 0% 100% 100% 100%; + border-color: @border; + margin: 0% 21.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 2%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3.5%; + padding: 4% 0% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 4.5% 2.7% 7.5% 2.7%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.2% 0.2% 0%; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/card_rounded.rasi b/Common/rofi/powermenu/card_rounded.rasi new file mode 100644 index 0000000..b22d130 --- /dev/null +++ b/Common/rofi/powermenu/card_rounded.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 12"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 28.5%; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 0.5% 0.5% 0.5% 0%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0.2% 0% 0.2% 0%; + border-radius: 12px; + border-color: @border; + margin: 0% 21.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 2%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3.5%; + padding: 4% 0% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 25px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 4.7% 2.7% 7.5% 2.7%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0.2% 0% 0.2% 0%; + border-radius: 25px; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/card_square.rasi b/Common/rofi/powermenu/card_square.rasi new file mode 100644 index 0000000..d7d86a0 --- /dev/null +++ b/Common/rofi/powermenu/card_square.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 12"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 28.5%; + width: 50%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 0.5% 0.5% 0.5% 0%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0.2%; + border-radius: 0% 0% 0% 0%; + border-color: @border; + margin: 0% 21.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 2%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3.5%; + padding: 4% 0% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 0%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 4.5% 2.7% 7.5% 2.7%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0% 0.2%; + border-radius: 0%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/column_alt.rasi b/Common/rofi/powermenu/column_alt.rasi new file mode 100644 index 0000000..379d5f7 --- /dev/null +++ b/Common/rofi/powermenu/column_alt.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 100%; + width: 12.25%; + location: east; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System"; + background-color: @border; + text-color: @background; + padding: 1% 1% 1% 2.2%; +} + +inputbar { + children: [ textbox-prompt-colon ]; + background-color: @border; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 1.5%; + border-color: @border; + margin: 0% 0% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3%; + padding: 4% 2% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 5%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 5% 0% 7.8% 0%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @border; + text-color: @foreground; + border: 0% 0% 0% 0%; + border-radius: 5%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/column_circle.rasi b/Common/rofi/powermenu/column_circle.rasi new file mode 100644 index 0000000..8a038f7 --- /dev/null +++ b/Common/rofi/powermenu/column_circle.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 100%; + width: 12.25%; + location: east; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System"; + background-color: @border; + text-color: @background; + padding: 1% 1% 1% 2.2%; +} + +inputbar { + children: [ textbox-prompt-colon ]; + background-color: @border; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 100%; + border-color: @border; + margin: 0% 0% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3%; + padding: 4% 2% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 100%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 5% 0% 7.8% 0%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0.2%; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/column_rounded.rasi b/Common/rofi/powermenu/column_rounded.rasi new file mode 100644 index 0000000..a92b907 --- /dev/null +++ b/Common/rofi/powermenu/column_rounded.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 100%; + width: 12.25%; + location: east; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System"; + background-color: @border; + text-color: @background; + padding: 1% 1% 1% 2.2%; +} + +inputbar { + children: [ textbox-prompt-colon ]; + background-color: @border; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0%; + border-radius: 15px; + border-color: @border; + margin: 0% 0% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3%; + padding: 4% 2% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 25px; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 5% 0% 7.8% 0%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0.2% 0% 0.2% 0%; + border-radius: 25px; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/column_square.rasi b/Common/rofi/powermenu/column_square.rasi new file mode 100644 index 0000000..81a5651 --- /dev/null +++ b/Common/rofi/powermenu/column_square.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 100%; + width: 12.25%; + location: east; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 0.5% 0.5% 0.5% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System"; + background-color: @border; + text-color: @background; + padding: 1% 1% 1% 2.2%; +} + +inputbar { + children: [ textbox-prompt-colon ]; + background-color: @border; + text-color: @foreground; + expand: false; + border: 0% 0% 0.2% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border; + margin: 0% 0% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: vertical; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 3%; + padding: 4% 2% 0% 2%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: vertical; + border-radius: 0%; +} + +element-text { + font: "feather 32"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 5% 0% 7.8% 0%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.2% 0%; + border-radius: 0%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/confirm.rasi b/Common/rofi/powermenu/confirm.rasi new file mode 100644 index 0000000..9a5bba6 --- /dev/null +++ b/Common/rofi/powermenu/confirm.rasi @@ -0,0 +1,24 @@ +/* Confirm Dialog */ + +@import "styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +window { + width: 225px; + padding: 25px; + border: 1px; + border-radius: 0px; + border-color: @border; + location: center; + y-offset: -2em; +} + +entry { + expand: true; + text-color: @border; +} diff --git a/Common/rofi/powermenu/dock_alt.rasi b/Common/rofi/powermenu/dock_alt.rasi new file mode 100644 index 0000000..d9985ac --- /dev/null +++ b/Common/rofi/powermenu/dock_alt.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: south; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.1% 0.5% 0.5%; + border-radius: 1% 2% 3% 4%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 1% 2% 3% 4%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.8% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.1% 0.5% 0.5%; + border-radius: 1% 2% 3% 4%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/dock_circle.rasi b/Common/rofi/powermenu/dock_circle.rasi new file mode 100644 index 0000000..1e49e19 --- /dev/null +++ b/Common/rofi/powermenu/dock_circle.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: south; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.1% 0.5% 0%; + border-radius: 100%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 100%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.8% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.1% 0.5% 0%; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/dock_rounded.rasi b/Common/rofi/powermenu/dock_rounded.rasi new file mode 100644 index 0000000..448dd8e --- /dev/null +++ b/Common/rofi/powermenu/dock_rounded.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: south; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0.2% 0% 0.2% 0%; + border-radius: 16px; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 35px; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.8% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0.2% 0% 0.2% 0%; + border-radius: 35px; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/dock_square.rasi b/Common/rofi/powermenu/dock_square.rasi new file mode 100644 index 0000000..d3ab04a --- /dev/null +++ b/Common/rofi/powermenu/dock_square.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: south; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0.1% 0.1% 0.1% 0.5%; + border-radius: 0% 0% 0% 0%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 0%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.8% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0.1% 0.1% 0.1% 0.5%; + border-radius: 0%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/drop_alt.rasi b/Common/rofi/powermenu/drop_alt.rasi new file mode 100644 index 0000000..1bfd2ab --- /dev/null +++ b/Common/rofi/powermenu/drop_alt.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: north; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 7%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.1% 0.5% 0.5%; + border-radius: 1% 2% 3% 4%; + border-color: @border; + margin: 0% 33.25% 0% 20%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ listview, inputbar ]; + spacing: 0%; + padding: 5% 0% 5% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 1% 2% 3% 4%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.1% 0.5% 0.5%; + border-radius: 1% 2% 3% 4%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/drop_circle.rasi b/Common/rofi/powermenu/drop_circle.rasi new file mode 100644 index 0000000..2714cb0 --- /dev/null +++ b/Common/rofi/powermenu/drop_circle.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: north; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 7%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.1% 0.5% 0%; + border-radius: 100%; + border-color: @border; + margin: 0% 33.25% 0% 20%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ listview, inputbar ]; + spacing: 0%; + padding: 5% 0% 5% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 100%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.1% 0.5% 0%; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/drop_rounded.rasi b/Common/rofi/powermenu/drop_rounded.rasi new file mode 100644 index 0000000..3006a7d --- /dev/null +++ b/Common/rofi/powermenu/drop_rounded.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: north; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 7%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0.2% 0% 0.2% 0%; + border-radius: 16px; + border-color: @border; + margin: 0% 33.25% 0% 20%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ listview, inputbar ]; + spacing: 0%; + padding: 5% 0% 5% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 35px; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0.2% 0% 0.2% 0%; + border-radius: 35px; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/drop_square.rasi b/Common/rofi/powermenu/drop_square.rasi new file mode 100644 index 0000000..199f314 --- /dev/null +++ b/Common/rofi/powermenu/drop_square.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: north; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 7%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0% 0.2% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border; + margin: 0% 33.25% 0% 20%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ listview, inputbar ]; + spacing: 0%; + padding: 5% 0% 5% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 0%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.2% 0%; + border-radius: 0%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/full_alt.rasi b/Common/rofi/powermenu/full_alt.rasi new file mode 100644 index 0000000..e53e438 --- /dev/null +++ b/Common/rofi/powermenu/full_alt.rasi @@ -0,0 +1,118 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.2% 0.2% 0%; + border-radius: 1%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 32.50% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 5%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.2% 0.2% 0%; + border-radius: 5%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/full_circle.rasi b/Common/rofi/powermenu/full_circle.rasi new file mode 100644 index 0000000..26a8b95 --- /dev/null +++ b/Common/rofi/powermenu/full_circle.rasi @@ -0,0 +1,118 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.2% 0% 0.2%; + border-radius: 0% 100% 100% 0%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 32.50% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 100%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.2% 0% 0%; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/full_rounded.rasi b/Common/rofi/powermenu/full_rounded.rasi new file mode 100644 index 0000000..81eeb44 --- /dev/null +++ b/Common/rofi/powermenu/full_rounded.rasi @@ -0,0 +1,118 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0% 0.2% 0.2%; + border-radius: 15px; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 32.50% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 25px; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.2% 0.2%; + border-radius: 25px; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/full_square.rasi b/Common/rofi/powermenu/full_square.rasi new file mode 100644 index 0000000..0ea6af7 --- /dev/null +++ b/Common/rofi/powermenu/full_square.rasi @@ -0,0 +1,118 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: true; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0% 0.2% 0%; + border-radius: 0% 0% 0% 0%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 32.50% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 0%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.2% 0%; + border-radius: 0%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/message.rasi b/Common/rofi/powermenu/message.rasi new file mode 100644 index 0000000..37e035e --- /dev/null +++ b/Common/rofi/powermenu/message.rasi @@ -0,0 +1,24 @@ +/* Message Dialog */ + +@import "styles/colors.rasi" + +* { + background-color: @background; + text-color: @foreground; + font: "FantasqueSansMono Nerd Font 12"; +} + +window { + width: 360px; + padding: 25px; + border: 1px; + border-radius: 0px; + border-color: @border; + location: center; + y-offset: -2em; +} + +entry { + expand: true; + text-color: @border; +} diff --git a/Common/rofi/powermenu/powermenu.sh b/Common/rofi/powermenu/powermenu.sh new file mode 100755 index 0000000..9b444f4 --- /dev/null +++ b/Common/rofi/powermenu/powermenu.sh @@ -0,0 +1,117 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +# Available Styles +# >> Created and tested on : rofi 1.6.0-1 +# +# column_circle column_square column_rounded column_alt +# card_circle card_square card_rounded card_alt +# dock_circle dock_square dock_rounded dock_alt +# drop_circle drop_square drop_rounded drop_alt +# full_circle full_square full_rounded full_alt +# row_circle row_square row_rounded row_alt + +theme="full_circle" +dir="$HOME/.config/rofi/powermenu" + +# random colors +styles=($(ls -p --hide="colors.rasi" $dir/styles)) +color="${styles[$(( $RANDOM % 8 ))]}" + +# comment this line to disable random colors +sed -i -e "s/@import .*/@import \"$color\"/g" $dir/styles/colors.rasi + +# comment these lines to disable random style +themes=($(ls -p --hide="powermenu.sh" --hide="styles" --hide="confirm.rasi" --hide="message.rasi" $dir)) +theme="${themes[$(( $RANDOM % 24 ))]}" + +uptime=$(uptime -p | sed -e 's/up //g') + +rofi_command="rofi -theme $dir/$theme" + +# Options +shutdown="" +reboot="" +lock="" +suspend="" +logout="" + +# Confirmation +confirm_exit() { + rofi -dmenu\ + -i\ + -no-fixed-num-lines\ + -p "Are You Sure? : "\ + -theme $dir/confirm.rasi +} + +# Message +msg() { + rofi -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n" +} + +# Variable passed to rofi +options="$shutdown\n$reboot\n$lock\n$suspend\n$logout" + +chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 2)" +case $chosen in + $shutdown) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl poweroff + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $reboot) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + systemctl reboot + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $lock) + if [[ -f /usr/bin/i3lock ]]; then + i3lock + elif [[ -f /usr/bin/betterlockscreen ]]; then + betterlockscreen -l + fi + ;; + $suspend) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + mpc -q pause + amixer set Master mute + systemctl suspend + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; + $logout) + ans=$(confirm_exit &) + if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then + if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then + openbox --exit + elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then + bspc quit + elif [[ "$DESKTOP_SESSION" == "i3" ]]; then + i3-msg exit + fi + elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then + exit 0 + else + msg + fi + ;; +esac diff --git a/Common/rofi/powermenu/row_alt.rasi b/Common/rofi/powermenu/row_alt.rasi new file mode 100644 index 0000000..ac17dcf --- /dev/null +++ b/Common/rofi/powermenu/row_alt.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.5% 0.3% 0.1%; + border-radius: 1%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 3%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.5% 0.3% 0.1%; + border-radius: 3%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/row_circle.rasi b/Common/rofi/powermenu/row_circle.rasi new file mode 100644 index 0000000..1634965 --- /dev/null +++ b/Common/rofi/powermenu/row_circle.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0% 0.5% 0%; + border-radius: 100%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 100%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0.5% 0%; + border-radius: 100%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/row_rounded.rasi b/Common/rofi/powermenu/row_rounded.rasi new file mode 100644 index 0000000..90087c7 --- /dev/null +++ b/Common/rofi/powermenu/row_rounded.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0.3% 0% 0.3%; + border-radius: 18px; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 50px; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0.3% 0% 0.3%; + border-radius: 50px; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/row_square.rasi b/Common/rofi/powermenu/row_square.rasi new file mode 100644 index 0000000..34b6d9e --- /dev/null +++ b/Common/rofi/powermenu/row_square.rasi @@ -0,0 +1,123 @@ +/* + * + * Author : Aditya Shakya + * Mail : adi1090x@gmail.com + * Github : @adi1090x + * Twitter : @adi1090x + * + */ + +configuration { + font: "FantasqueSansMono Nerd Font 14"; + show-icons: false; + icon-theme: "Papirus"; + drun-display-format: "{name}"; + disable-history: false; + fullscreen: false; + hide-scrollbar: true; + sidebar-mode: false; +} + +@import "styles/colors.rasi" + +window { + transparency: "real"; + background-color: @background; + text-color: @foreground; + border-radius: 0px; + height: 42%; + width: 100%; + location: center; + x-offset: 0; + y-offset: 0; +} + +prompt { + enabled: true; + padding: 1% 1% 1% 0%; + background-color: @background-alt; + text-color: @foreground; +} + +textbox-prompt-colon { + expand: false; + str: "System |"; + background-color: @background-alt; + text-color: @foreground; + padding: 1% 0.5% 1% 0.5%; +} + +inputbar { + children: [ textbox-prompt-colon, prompt ]; + background-color: @background-alt; + text-color: @foreground; + expand: false; + border: 0% 0% 0% 0.5%; + border-radius: 0% 0% 0% 0%; + border-color: @border; + margin: 0% 59.3% 0% 0%; + padding: 0.5%; + position: center; +} + +listview { + background-color: @background; + margin: 0% 0% 0% 0%; + spacing: 3%; + cycle: true; + dynamic: true; + layout: horizontal; +} + +mainbox { + background-color: @background; + children: [ inputbar, listview ]; + spacing: 5%; + padding: 5% 0% 0% 13.25%; +} + +element { + background-color: @background-alt; + text-color: @foreground; + orientation: horizontal; + border-radius: 0%; +} + +element-text { + font: "feather 64"; + expand: true; + horizontal-align: 0.5; + vertical-align: 0.5; + margin: 6.5% 4% 13.5% 4%; +} + +element normal.urgent, +element alternate.urgent { + background-color: @urgent; + text-color: @foreground; + border-radius: 0.2%; +} + +element normal.active, +element alternate.active { + background-color: @background-alt; + text-color: @foreground; +} + +element selected { + background-color: @selected; + text-color: @foreground; + border: 0% 0% 0% 0.5%; + border-radius: 0%; + border-color: @border; +} + +element selected.urgent { + background-color: @urgent; + text-color: @foreground; +} + +element selected.active { + background-color: @background-alt; + color: @foreground; +} diff --git a/Common/rofi/powermenu/styles/berry.rasi b/Common/rofi/powermenu/styles/berry.rasi new file mode 100644 index 0000000..025c231 --- /dev/null +++ b/Common/rofi/powermenu/styles/berry.rasi @@ -0,0 +1,9 @@ +* { + background: #280F28ff; + background-alt: #2D142Cff; + foreground: #ffffffA6; + border: #EE4540ff; + border-alt: #C92A42ff; + selected: #510A3299; + urgent: #DA4453FF; +} diff --git a/Common/rofi/powermenu/styles/bluish.rasi b/Common/rofi/powermenu/styles/bluish.rasi new file mode 100644 index 0000000..2305bd5 --- /dev/null +++ b/Common/rofi/powermenu/styles/bluish.rasi @@ -0,0 +1,9 @@ +* { + background: #EFF0F1FF; + background-alt: #E3E3E3FF; + foreground: #000000A6; + border: #000B83FF; + border-alt: #3DAEE9FF; + selected: #93CEE9FF; + urgent: #DA4453FF; +} diff --git a/Common/rofi/powermenu/styles/cocoa.rasi b/Common/rofi/powermenu/styles/cocoa.rasi new file mode 100644 index 0000000..31f780d --- /dev/null +++ b/Common/rofi/powermenu/styles/cocoa.rasi @@ -0,0 +1,9 @@ +* { + background: #3C3945FF; + background-alt: #413E4Aff; + foreground: #F7C7B2ff; + border: #B38184ff; + border-alt: #F3B69Eff; + selected: #B381841a; + urgent: #DA4453FF; +} diff --git a/Common/rofi/powermenu/styles/colors.rasi b/Common/rofi/powermenu/styles/colors.rasi new file mode 100644 index 0000000..058681d --- /dev/null +++ b/Common/rofi/powermenu/styles/colors.rasi @@ -0,0 +1,10 @@ +/* + * Change the colorscheme for every menu simply by editing this file... + * + * Available Color Schemes + * + * bluish berry nordic nightly gotham mask faded cocoa + * + */ + +@import "berry.rasi" diff --git a/Common/rofi/powermenu/styles/faded.rasi b/Common/rofi/powermenu/styles/faded.rasi new file mode 100644 index 0000000..0eebd64 --- /dev/null +++ b/Common/rofi/powermenu/styles/faded.rasi @@ -0,0 +1,9 @@ +* { + background: #57678CFF; + background-alt: #5E6C91ff; + foreground: #FFFCFFff; + border: #FF83A7ff; + border-alt: #F4BB6Cff; + selected: #A0B5F44c; + urgent: #DA4453FF; +} diff --git a/Common/rofi/powermenu/styles/gotham.rasi b/Common/rofi/powermenu/styles/gotham.rasi new file mode 100644 index 0000000..2bae381 --- /dev/null +++ b/Common/rofi/powermenu/styles/gotham.rasi @@ -0,0 +1,9 @@ +* { + background: #24334Aff; + background-alt: #29384Fff; + foreground: #FEFFF1ff; + border: #3A6081ff; + border-alt: #715979ff; + selected: #C46C854C; + urgent: #DA4453FF; +} diff --git a/Common/rofi/powermenu/styles/mask.rasi b/Common/rofi/powermenu/styles/mask.rasi new file mode 100644 index 0000000..c63ac9e --- /dev/null +++ b/Common/rofi/powermenu/styles/mask.rasi @@ -0,0 +1,9 @@ +* { + background: #3E4667ff; + background-alt: #434C6Dff; + foreground: #FAF7CCff; + border: #CA8CA5ff; + border-alt: #F0B2B3ff; + selected: #EFD4B61a; + urgent: #DA4453FF; +} diff --git a/Common/rofi/powermenu/styles/nightly.rasi b/Common/rofi/powermenu/styles/nightly.rasi new file mode 100644 index 0000000..400e6cd --- /dev/null +++ b/Common/rofi/powermenu/styles/nightly.rasi @@ -0,0 +1,9 @@ +* { + background: #25344Bff; + background-alt: #2A3950ff; + foreground: #FEFFF1ff; + border: #A162F7ff; + border-alt: #45E3FFff; + selected: #6F88FE1a; + urgent: #DA4453FF; +} diff --git a/Common/rofi/powermenu/styles/nordic.rasi b/Common/rofi/powermenu/styles/nordic.rasi new file mode 100644 index 0000000..953b52e --- /dev/null +++ b/Common/rofi/powermenu/styles/nordic.rasi @@ -0,0 +1,9 @@ +* { + background: #425775ff; + background-alt: #475C7Bff; + foreground: #ffffffcc; + border: #FDBB6Dff; + border-alt: #DA717Fff; + selected: #685E79ff; + urgent: #DA4453FF; +} diff --git a/Common/rofi/rofi b/Common/rofi/rofi new file mode 160000 +Subproject 9c4093c665326bb08d6affc7e16d18d8f25c445 diff --git a/Common/vim/plugged/arm-syntax-vim b/Common/vim/plugged/arm-syntax-vim deleted file mode 160000 -Subproject caf53551a063a6b7d56ce8bc873bb75c066c6b3 diff --git a/Common/vim/plugged/ctrlp.vim b/Common/vim/plugged/ctrlp.vim deleted file mode 160000 -Subproject 44c8e24956d7dcfee3ee6083a0573fed31d136e diff --git a/Common/vim/plugged/nerdTree b/Common/vim/plugged/nerdTree deleted file mode 160000 -Subproject 82b1649f2e1c79ff17730fe0a3750bbec203dd2 diff --git a/Common/vim/plugged/vim-airline b/Common/vim/plugged/vim-airline deleted file mode 160000 -Subproject ce932f3825f59258f814d4b66174283875348a9 diff --git a/Common/vim/plugged/vim-airline-themes b/Common/vim/plugged/vim-airline-themes deleted file mode 160000 -Subproject f4ba787e9c5455a6a88c6d04e61b18982637576 diff --git a/Common/vim/plugged/vim-fugitive b/Common/vim/plugged/vim-fugitive deleted file mode 160000 -Subproject 67efbf66e0fcfd25e617d22892a7e9768bfd0f9 diff --git a/Common/vim/vim b/Common/vim/vim deleted file mode 120000 index f81b69e..0000000 --- a/Common/vim/vim +++ /dev/null @@ -1 +0,0 @@ -/Users/jakobstendahl/_code/Personal projects/dotfiles/Common/vim
\ No newline at end of file diff --git a/Common/vimrc b/Common/vimrc index 2fae362..75a81a5 100644 --- a/Common/vimrc +++ b/Common/vimrc @@ -421,6 +421,7 @@ Plug 'preservim/nerdcommenter' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'dense-analysis/ale' Plug 'evanleck/vim-svelte', {'branch': 'main'} +Plug 'preservim/tagbar' "Plug 'neoclide/coc-tsserver', {'do': 'yarn install --frozen-lockfile'} "Plug 'clangd/coc-clangd', {'do': 'yarn install --frozen-lockfile'} @@ -453,6 +454,9 @@ let g:airline#extensions#branch#enabled=1 let NERDTreeShowHidden=1 map <F3> :NERDTreeToggle<CR> +" Setup tagbar +map <F2> :TagbarToggle<CR> + " Map FuzzyFinder key to ; map ; :Files<CR> " Add fzf path for mac diff --git a/Common/zshrc b/Common/zshrc index 44fbfe4..356f69c 100644 --- a/Common/zshrc +++ b/Common/zshrc @@ -41,12 +41,17 @@ source $ZSH/oh-my-zsh.sh export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 +# Set vim as default editor +# export EDITOR=$(which vim) + # Add aliases alias lsp="ps -ax | grep" alias lsa="ls -la" alias lsg="ls | grep" alias lsag="ls -la | grep" alias ls="tput setaf 3 && echo \"'lsa' for 'ls -la', \n'lsg' for 'ls | grep',\n'lsag' for 'ls -la | grep',\n'lsp' for 'ps -ax |grep'\" && tput sgr0 && ls" +alias notes="vim ~/Documents/notes.txt" +alias todo="vim ~/Documents/todo.txt" # man pages in colors man() { |