├── README.md ├── alacritty ├── alacritty (another copy).toml ├── alacritty (copy).toml └── alacritty.toml ├── cava ├── config └── shaders │ ├── bar_spectrum.frag │ ├── northern_lights.frag │ └── pass_through.vert ├── hypr ├── hyprland.conf ├── hyprlock.conf └── scripts │ ├── screenshot │ ├── screenshot_area │ └── screenshot_full ├── rofi ├── applets │ ├── bin │ │ ├── appasroot.sh │ │ ├── apps.sh │ │ ├── battery.sh │ │ ├── brightness.sh │ │ ├── mpd.sh │ │ ├── powermenu.sh │ │ ├── quicklinks.sh │ │ ├── screenshot.sh │ │ └── volume.sh │ ├── shared │ │ ├── colors.rasi │ │ ├── fonts.rasi │ │ └── theme.bash │ ├── type-1 │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ └── style-3.rasi │ ├── type-2 │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ └── style-3.rasi │ ├── type-3 │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ └── style-3.rasi │ ├── type-4 │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ └── style-3.rasi │ └── type-5 │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ └── style-3.rasi ├── colors │ ├── adapta.rasi │ ├── arc.rasi │ ├── black.rasi │ ├── catppuccin.rasi │ ├── cyberpunk.rasi │ ├── dracula.rasi │ ├── everforest.rasi │ ├── gruvbox.rasi │ ├── lovelace.rasi │ ├── my.rasi │ ├── navy.rasi │ ├── nord.rasi │ ├── onedark.rasi │ ├── paper.rasi │ ├── solarized.rasi │ ├── tokyonight.rasi │ └── yousai.rasi ├── config.rasi ├── images │ ├── a.png │ ├── b.png │ ├── c.png │ ├── crop.png │ ├── crop2.png │ ├── d.png │ ├── e.jpg │ ├── f.png │ ├── flowers-1.png │ ├── flowers-2.png │ ├── flowers-3.png │ ├── g.png │ ├── gradient.png │ ├── h.jpg │ ├── i.jpg │ ├── j.jpg │ ├── k.png │ ├── paper.png │ ├── power.png │ ├── t.png │ ├── user.jpeg │ └── wow.png ├── launchers │ ├── type-1 │ │ ├── launcher.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-10.rasi │ │ ├── style-11.rasi │ │ ├── style-12.rasi │ │ ├── style-13.rasi │ │ ├── style-14.rasi │ │ ├── style-15.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ ├── style-5.rasi │ │ ├── style-6.rasi │ │ ├── style-7.rasi │ │ ├── style-8.rasi │ │ └── style-9.rasi │ ├── type-2 │ │ ├── launcher.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-10.rasi │ │ ├── style-11.rasi │ │ ├── style-12.rasi │ │ ├── style-13.rasi │ │ ├── style-14.rasi │ │ ├── style-15.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ ├── style-5.rasi │ │ ├── style-6.rasi │ │ ├── style-7.rasi │ │ ├── style-8.rasi │ │ └── style-9.rasi │ ├── type-3 │ │ ├── launcher.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-10.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ ├── style-5.rasi │ │ ├── style-6.rasi │ │ ├── style-7.rasi │ │ ├── style-8.rasi │ │ └── style-9.rasi │ ├── type-4 │ │ ├── launcher.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-10.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ ├── style-5.rasi │ │ ├── style-6.rasi │ │ ├── style-7.rasi │ │ ├── style-8.rasi │ │ └── style-9.rasi │ ├── type-5 │ │ ├── launcher.sh │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ └── style-5.rasi │ ├── type-6 │ │ ├── launcher.sh │ │ ├── style-1.rasi │ │ ├── style-10.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ ├── style-5.rasi │ │ ├── style-6.rasi │ │ ├── style-7.rasi │ │ ├── style-8.rasi │ │ └── style-9.rasi │ └── type-7 │ │ ├── launcher.sh │ │ ├── nohup.out │ │ ├── style-1.rasi │ │ ├── style-10.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ ├── style-5.rasi │ │ ├── style-6.rasi │ │ ├── style-7.rasi │ │ ├── style-8.rasi │ │ └── style-9.rasi ├── launchpad.rasi ├── powermenu │ ├── type-1 │ │ ├── powermenu.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ └── style-5.rasi │ ├── type-2 │ │ ├── powermenu.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-10.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ ├── style-5.rasi │ │ ├── style-6.rasi │ │ ├── style-7.rasi │ │ ├── style-8.rasi │ │ └── style-9.rasi │ ├── type-3 │ │ ├── powermenu.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ ├── confirm.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ └── style-5.rasi │ ├── type-4 │ │ ├── powermenu.sh │ │ ├── shared │ │ │ ├── colors.rasi │ │ │ ├── confirm.rasi │ │ │ └── fonts.rasi │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ └── style-5.rasi │ ├── type-5 │ │ ├── powermenu.sh │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ └── style-5.rasi │ └── type-6 │ │ ├── powermenu.sh │ │ ├── style-1.rasi │ │ ├── style-2.rasi │ │ ├── style-3.rasi │ │ ├── style-4.rasi │ │ └── style-5.rasi ├── rofi-wifi-menu.sh ├── ultimate.rasi └── windows11-grid-dark.rasi ├── swaylock └── config ├── swaync ├── config.json ├── nohup.out ├── style (copy).css └── style.css └── waybar ├── backup ├── config-hypr ├── mediaplayer.py ├── modules │ ├── mail.py │ ├── spotify.sh │ ├── storage.sh │ └── weather.sh ├── style.css └── waybar.sh ├── config-hypr ├── mediaplayer.py ├── modules ├── mail.py ├── spotify.sh ├── storage.sh └── weather.sh ├── nohup.out ├── style (copy).css ├── style.css ├── style2.css └── waybar.sh /README.md: -------------------------------------------------------------------------------- 1 | # *auspicious dots!* 2 | ![Banner](https://i.imgur.com/I3Fk5I3.gif) 3 | ## *Showcase*: 4 | ![enter image description here](https://i.imgur.com/2GHSpXr.png)![enter image description here](https://i.imgur.com/66rlfYd.png)![enter image description here](https://i.imgur.com/MQSRVvX.png) 5 | ![enter image description here](https://i.imgur.com/iuRoI4O.png) 6 | ![enter image description here](https://i.imgur.com/76iPBdM.png)![enter image description here](https://i.imgur.com/F84l7m8.png)![enter image description here](https://i.imgur.com/3ojkmgs.png) 7 | 8 | ##### *Why "auspicious" you say? Well, these dots signify the start and end of something for me!* 9 | *Choosing the colors took the most time, initially I started with [BlackLotus Colorscheme](https://github.com/PoisonIsBestType/BlackLotus/tree/main), which was very attractive, but didn't had much colors, then I tried [Srcery Colorscheme](https://github.com/srcery-colors/srcery-vim) then I stumbled upon an art on DeviantArt and that became the basis for colors, I handpicked the colors from it (oh how tiring it was!) but then they were trashy too, so I then used AI Color Scheme Generators, which gave me some colors to build upon further and then finally some ChatGPT did it nicely!* 10 | 11 | If you've read this, thank you, I hope you'll use the colors nicely, it took me 3 days to collect them! And ofc don't forget to star if you liked this! 12 | 13 | Thank you! 14 | # *How I did it?* 15 | - OS: CachyOS with Hyprland 16 | - GTK Theme: [Fluent Round Dark](https://www.gnome-look.org/p/1574551) 17 | - Icon Theme: [We10X Special Dark](https://www.pling.com/p/1366371) 18 | - Cursor Theme: [Bibata Modern Ice](https://www.pling.com/p/1197198/) 19 | - System Font: [SF Pro Text Medium](https://github.com/sahibjotsaggu/San-Francisco-Pro-Fonts) 20 | - Terminal Font: [JetBrains Mono Nerd Font](https://www.jetbrains.com/lp/mono/) 21 | - Launcher: Rofi 22 | - Bar: Waybar 23 | - Notification Center: Swaync 24 | - Firefox Startpage: [Bonjourr](https://github.com/victrme/Bonjourr) 25 | - Visualizer: Cava 26 | - Spotify Extensions: Toggle Lyrics Plus and Beautiful Lyrics 27 | - ColorScheme Inspirations: Initially began with a wallpaper, later I handpicked all these colors, literally took the most of my time in this rice! 28 | 29 | ## Some Notes For Setting This Up: 30 | 1. I have modified [these rofi configs](https://github.com/adi1090x/rofi) , but as they were interlinked, many files from this original repo are still present. So to launch my modified rofi stuff execute these scripts: 31 | - WiFi Menu: rofi/rofi-wifi-menu.sh 32 | - Menu: rofi/launchers/type-7/launcher.sh 33 | - PowerMenu: rofi/applets/bin/powermenu.sh 34 | 2. Now, to modify these scripts and their behavior, modify these files: 35 | - WiFi Menu: rofi/ultimate.rasi 36 | - Menu: rofi/launchers/type-7/style-8.rasi 37 | - Powermenu: rofi/applets/type-4/style-3.rasi 38 | 39 | 40 | # *Wallpapers:* 41 | ![enter image description here](https://i.imgur.com/FnAXP3X.jpeg) 42 | 43 | ![enter image description here](https://i.imgur.com/Gy5ULvp.png) 44 | ![enter image description here](https://i.imgur.com/Gy5osKg.gif) 45 | ![enter image description here](https://i.imgur.com/hfbGM69.png) 46 | ![enter image description here](https://i.imgur.com/jqHPNT5.png) 47 | ![enter image description here](https://i.imgur.com/FzH0VV2.png) 48 | ![enter image description here](https://i.imgur.com/RVC2HBb.jpg) 49 | ![enter image description here](https://i.imgur.com/maGqevZ.png) 50 | -------------------------------------------------------------------------------- /alacritty/alacritty (another copy).toml: -------------------------------------------------------------------------------- 1 | live_config_reload = true 2 | working_directory = "None" 3 | 4 | [env] 5 | TERM = "xterm-256color" 6 | WINIT_X11_SCALE_FACTOR = "1" 7 | 8 | [window] 9 | dynamic_padding = true 10 | decorations = "full" 11 | title = "Alacritty@CachyOS" 12 | opacity = 0.8 13 | decorations_theme_variant = "Dark" 14 | 15 | [window.dimensions] 16 | columns = 100 17 | lines = 30 18 | 19 | [window.class] 20 | instance = "Alacritty" 21 | general = "Alacritty" 22 | 23 | [scrolling] 24 | history = 10000 25 | multiplier = 3 26 | 27 | [colors] 28 | draw_bold_text_with_bright_colors = true 29 | 30 | [colors.primary] 31 | background = "0x2E3440" 32 | foreground = "0xD8DEE9" 33 | 34 | [colors.normal] 35 | black = "0x1C1B19" 36 | red = "0xEF2F27" 37 | green = "0x519F50" 38 | yellow = "0xFBB829" 39 | blue = "0x2C78BF" 40 | magenta = "0xE02C6D" 41 | cyan = "0x0AAEB3" 42 | white = "0xBAA67F" 43 | 44 | [colors.bright] 45 | black = "0x918175" 46 | red = "0xF75341" 47 | green = "0x98BC37" 48 | yellow = "0xFED06E" 49 | blue = "0x68A8E4" 50 | magenta = "0xFF5C8F" 51 | cyan = "0x2BE4D0" 52 | white = "0xFCE8C3" 53 | 54 | [font] 55 | size = 12 56 | 57 | [font.normal] 58 | family = "monospace" 59 | style = "Regular" 60 | 61 | [font.bold] 62 | family = "monospace" 63 | style = "Bold" 64 | 65 | [font.italic] 66 | family = "monospace" 67 | style = "Italic" 68 | 69 | [font.bold_italic] 70 | family = "monospace" 71 | style = "Bold Italic" 72 | 73 | [selection] 74 | semantic_escape_chars = ",│`|:\"' ()[]{}<>\t" 75 | save_to_clipboard = true 76 | 77 | [cursor] 78 | style = "Underline" 79 | vi_mode_style = "None" 80 | unfocused_hollow = true 81 | thickness = 0.15 82 | 83 | [mouse] 84 | hide_when_typing = true 85 | 86 | [[mouse.bindings]] 87 | mouse = "Middle" 88 | action = "PasteSelection" 89 | 90 | [keyboard] 91 | [[keyboard.bindings]] 92 | key = "Paste" 93 | action = "Paste" 94 | 95 | [[keyboard.bindings]] 96 | key = "Copy" 97 | action = "Copy" 98 | 99 | [[keyboard.bindings]] 100 | key = "L" 101 | mods = "Control" 102 | action = "ClearLogNotice" 103 | 104 | [[keyboard.bindings]] 105 | key = "L" 106 | mods = "Control" 107 | mode = "~Vi" 108 | chars = "\f" 109 | 110 | [[keyboard.bindings]] 111 | key = "PageUp" 112 | mods = "Shift" 113 | mode = "~Alt" 114 | action = "ScrollPageUp" 115 | 116 | [[keyboard.bindings]] 117 | key = "PageDown" 118 | mods = "Shift" 119 | mode = "~Alt" 120 | action = "ScrollPageDown" 121 | 122 | [[keyboard.bindings]] 123 | key = "Home" 124 | mods = "Shift" 125 | mode = "~Alt" 126 | action = "ScrollToTop" 127 | 128 | [[keyboard.bindings]] 129 | key = "End" 130 | mods = "Shift" 131 | mode = "~Alt" 132 | action = "ScrollToBottom" 133 | 134 | [[keyboard.bindings]] 135 | key = "V" 136 | mods = "Control|Shift" 137 | action = "Paste" 138 | 139 | [[keyboard.bindings]] 140 | key = "C" 141 | mods = "Control|Shift" 142 | action = "Copy" 143 | 144 | [[keyboard.bindings]] 145 | key = "F" 146 | mods = "Control|Shift" 147 | action = "SearchForward" 148 | 149 | [[keyboard.bindings]] 150 | key = "B" 151 | mods = "Control|Shift" 152 | action = "SearchBackward" 153 | 154 | [[keyboard.bindings]] 155 | key = "C" 156 | mods = "Control|Shift" 157 | mode = "Vi" 158 | action = "ClearSelection" 159 | 160 | [[keyboard.bindings]] 161 | key = "Key0" 162 | mods = "Control" 163 | action = "ResetFontSize" 164 | -------------------------------------------------------------------------------- /alacritty/alacritty (copy).toml: -------------------------------------------------------------------------------- 1 | live_config_reload = true 2 | working_directory = "None" 3 | 4 | [env] 5 | TERM = "xterm-256color" 6 | WINIT_X11_SCALE_FACTOR = "1" 7 | 8 | [window] 9 | dynamic_padding = true 10 | decorations = "full" 11 | title = "Alacritty@CachyOS" 12 | opacity = 0.8 13 | decorations_theme_variant = "Dark" 14 | 15 | [window.dimensions] 16 | columns = 100 17 | lines = 30 18 | 19 | [window.class] 20 | instance = "Alacritty" 21 | general = "Alacritty" 22 | 23 | [scrolling] 24 | history = 10000 25 | multiplier = 3 26 | 27 | [colors] 28 | draw_bold_text_with_bright_colors = true 29 | 30 | [colors.primary] 31 | background = "0x2E3440" 32 | foreground = "0xD8DEE9" 33 | 34 | [colors.normal] 35 | black = "0x3B4252" 36 | red = "0xBF616A" 37 | green = "0xA3BE8C" 38 | yellow = "0xEBCB8B" 39 | blue = "0x81A1C1" 40 | magenta = "0xB48EAD" 41 | cyan = "0x88C0D0" 42 | white = "0xE5E9F0" 43 | 44 | [colors.bright] 45 | black = "0x4C566A" 46 | red = "0xBF616A" 47 | green = "0xA3BE8C" 48 | yellow = "0xEBCB8B" 49 | blue = "0x81A1C1" 50 | magenta = "0xB48EAD" 51 | cyan = "0x8FBCBB" 52 | white = "0xECEFF4" 53 | 54 | [font] 55 | size = 12 56 | 57 | [font.normal] 58 | family = "monospace" 59 | style = "Regular" 60 | 61 | [font.bold] 62 | family = "monospace" 63 | style = "Bold" 64 | 65 | [font.italic] 66 | family = "monospace" 67 | style = "Italic" 68 | 69 | [font.bold_italic] 70 | family = "monospace" 71 | style = "Bold Italic" 72 | 73 | [selection] 74 | semantic_escape_chars = ",│`|:\"' ()[]{}<>\t" 75 | save_to_clipboard = true 76 | 77 | [cursor] 78 | style = "Underline" 79 | vi_mode_style = "None" 80 | unfocused_hollow = true 81 | thickness = 0.15 82 | 83 | [mouse] 84 | hide_when_typing = true 85 | 86 | [[mouse.bindings]] 87 | mouse = "Middle" 88 | action = "PasteSelection" 89 | 90 | [keyboard] 91 | [[keyboard.bindings]] 92 | key = "Paste" 93 | action = "Paste" 94 | 95 | [[keyboard.bindings]] 96 | key = "Copy" 97 | action = "Copy" 98 | 99 | [[keyboard.bindings]] 100 | key = "L" 101 | mods = "Control" 102 | action = "ClearLogNotice" 103 | 104 | [[keyboard.bindings]] 105 | key = "L" 106 | mods = "Control" 107 | mode = "~Vi" 108 | chars = "\f" 109 | 110 | [[keyboard.bindings]] 111 | key = "PageUp" 112 | mods = "Shift" 113 | mode = "~Alt" 114 | action = "ScrollPageUp" 115 | 116 | [[keyboard.bindings]] 117 | key = "PageDown" 118 | mods = "Shift" 119 | mode = "~Alt" 120 | action = "ScrollPageDown" 121 | 122 | [[keyboard.bindings]] 123 | key = "Home" 124 | mods = "Shift" 125 | mode = "~Alt" 126 | action = "ScrollToTop" 127 | 128 | [[keyboard.bindings]] 129 | key = "End" 130 | mods = "Shift" 131 | mode = "~Alt" 132 | action = "ScrollToBottom" 133 | 134 | [[keyboard.bindings]] 135 | key = "V" 136 | mods = "Control|Shift" 137 | action = "Paste" 138 | 139 | [[keyboard.bindings]] 140 | key = "C" 141 | mods = "Control|Shift" 142 | action = "Copy" 143 | 144 | [[keyboard.bindings]] 145 | key = "F" 146 | mods = "Control|Shift" 147 | action = "SearchForward" 148 | 149 | [[keyboard.bindings]] 150 | key = "B" 151 | mods = "Control|Shift" 152 | action = "SearchBackward" 153 | 154 | [[keyboard.bindings]] 155 | key = "C" 156 | mods = "Control|Shift" 157 | mode = "Vi" 158 | action = "ClearSelection" 159 | 160 | [[keyboard.bindings]] 161 | key = "Key0" 162 | mods = "Control" 163 | action = "ResetFontSize" 164 | -------------------------------------------------------------------------------- /alacritty/alacritty.toml: -------------------------------------------------------------------------------- 1 | live_config_reload = true 2 | working_directory = "None" 3 | 4 | [env] 5 | TERM = "xterm-256color" 6 | WINIT_X11_SCALE_FACTOR = "1" 7 | 8 | [window] 9 | dynamic_padding = true 10 | decorations = "full" 11 | title = "Alacritty@CachyOS" 12 | opacity = 0.8 13 | decorations_theme_variant = "Dark" 14 | 15 | [window.dimensions] 16 | columns = 100 17 | lines = 30 18 | 19 | [window.class] 20 | instance = "Alacritty" 21 | general = "Alacritty" 22 | 23 | [scrolling] 24 | history = 10000 25 | multiplier = 3 26 | 27 | [colors] 28 | draw_bold_text_with_bright_colors = true 29 | 30 | [colors.primary] 31 | background = "0x2E3440" 32 | foreground = "0xD8DEE9" 33 | 34 | [colors.normal] 35 | black = "0x3B4252" 36 | red = "0xBF616A" 37 | green = "0xA3BE8C" 38 | yellow = "0xEBCB8B" 39 | blue = "0x81A1C1" 40 | magenta = "0xB48EAD" 41 | cyan = "0x88C0D0" 42 | white = "0xE5E9F0" 43 | 44 | [colors.bright] 45 | black = "0x4C566A" 46 | red = "0xBF616A" 47 | green = "0xA3BE8C" 48 | yellow = "0xEBCB8B" 49 | blue = "0x81A1C1" 50 | magenta = "0xB48EAD" 51 | cyan = "0x8FBCBB" 52 | white = "0xECEFF4" 53 | 54 | 55 | [font] 56 | size = 12 57 | 58 | [font.normal] 59 | family = "JetBrains Mono Nerd Font" 60 | style = "Regular" 61 | 62 | [font.bold] 63 | family = "monospace" 64 | style = "Bold" 65 | 66 | [font.italic] 67 | family = "monospace" 68 | style = "Italic" 69 | 70 | [font.bold_italic] 71 | family = "monospace" 72 | style = "Bold Italic" 73 | 74 | [selection] 75 | semantic_escape_chars = ",│`|:\"' ()[]{}<>\t" 76 | save_to_clipboard = true 77 | 78 | [cursor] 79 | style = "Underline" 80 | vi_mode_style = "None" 81 | unfocused_hollow = true 82 | thickness = 0.15 83 | 84 | [mouse] 85 | hide_when_typing = true 86 | 87 | [[mouse.bindings]] 88 | mouse = "Middle" 89 | action = "PasteSelection" 90 | 91 | [keyboard] 92 | [[keyboard.bindings]] 93 | key = "Paste" 94 | action = "Paste" 95 | 96 | [[keyboard.bindings]] 97 | key = "Copy" 98 | action = "Copy" 99 | 100 | [[keyboard.bindings]] 101 | key = "L" 102 | mods = "Control" 103 | action = "ClearLogNotice" 104 | 105 | [[keyboard.bindings]] 106 | key = "L" 107 | mods = "Control" 108 | mode = "~Vi" 109 | chars = "\f" 110 | 111 | [[keyboard.bindings]] 112 | key = "PageUp" 113 | mods = "Shift" 114 | mode = "~Alt" 115 | action = "ScrollPageUp" 116 | 117 | [[keyboard.bindings]] 118 | key = "PageDown" 119 | mods = "Shift" 120 | mode = "~Alt" 121 | action = "ScrollPageDown" 122 | 123 | [[keyboard.bindings]] 124 | key = "Home" 125 | mods = "Shift" 126 | mode = "~Alt" 127 | action = "ScrollToTop" 128 | 129 | [[keyboard.bindings]] 130 | key = "End" 131 | mods = "Shift" 132 | mode = "~Alt" 133 | action = "ScrollToBottom" 134 | 135 | [[keyboard.bindings]] 136 | key = "V" 137 | mods = "Control|Shift" 138 | action = "Paste" 139 | 140 | [[keyboard.bindings]] 141 | key = "C" 142 | mods = "Control|Shift" 143 | action = "Copy" 144 | 145 | [[keyboard.bindings]] 146 | key = "F" 147 | mods = "Control|Shift" 148 | action = "SearchForward" 149 | 150 | [[keyboard.bindings]] 151 | key = "B" 152 | mods = "Control|Shift" 153 | action = "SearchBackward" 154 | 155 | [[keyboard.bindings]] 156 | key = "C" 157 | mods = "Control|Shift" 158 | mode = "Vi" 159 | action = "ClearSelection" 160 | 161 | [[keyboard.bindings]] 162 | key = "Key0" 163 | mods = "Control" 164 | action = "ResetFontSize" 165 | -------------------------------------------------------------------------------- /cava/shaders/bar_spectrum.frag: -------------------------------------------------------------------------------- 1 | #version 330 2 | 3 | in vec2 fragCoord; 4 | out vec4 fragColor; 5 | 6 | // bar values. defaults to left channels first (low to high), then right (high to low). 7 | uniform float bars[512]; 8 | 9 | uniform int bars_count; // number of bars (left + right) (configurable) 10 | uniform int bar_width; // bar width (configurable), not used here 11 | uniform int bar_spacing; // space bewteen bars (configurable) 12 | 13 | uniform vec3 u_resolution; // window resolution 14 | 15 | //colors, configurable in cava config file (r,g,b) (0.0 - 1.0) 16 | uniform vec3 bg_color; // background color 17 | uniform vec3 fg_color; // foreground color 18 | 19 | uniform int gradient_count; 20 | uniform vec3 gradient_colors[8]; // gradient colors 21 | 22 | vec3 normalize_C(float y,vec3 col_1, vec3 col_2, float y_min, float y_max) 23 | { 24 | //create color based on fraction of this color and next color 25 | float yr = (y - y_min) / (y_max - y_min); 26 | return col_1 * (1.0 - yr) + col_2 * yr; 27 | } 28 | 29 | void main() 30 | { 31 | // find which bar to use based on where we are on the x axis 32 | float x = u_resolution.x * fragCoord.x; 33 | int bar = int(bars_count * fragCoord.x); 34 | 35 | //calculate a bar size 36 | float bar_size = u_resolution.x / bars_count; 37 | 38 | //the y coordinate and bar values are the same 39 | float y = bars[bar]; 40 | 41 | // make sure there is a thin line at bottom 42 | if (y * u_resolution.y < 1.0) 43 | { 44 | y = 1.0 / u_resolution.y; 45 | } 46 | 47 | //draw the bar up to current height 48 | if (y > fragCoord.y) 49 | { 50 | //make some space between bars basen on settings 51 | if (x > (bar + 1) * (bar_size) - bar_spacing) 52 | { 53 | fragColor = vec4(bg_color,1.0); 54 | } 55 | else 56 | { 57 | if (gradient_count == 0) 58 | { 59 | fragColor = vec4(fg_color,1.0); 60 | } 61 | else 62 | { 63 | //find which color in the configured gradient we are at 64 | int color = int((gradient_count - 1) * fragCoord.y); 65 | 66 | //find where on y this and next color is supposed to be 67 | float y_min = color / (gradient_count - 1.0); 68 | float y_max = (color + 1.0) / (gradient_count - 1.0); 69 | 70 | //make color 71 | fragColor = vec4(normalize_C(fragCoord.y, gradient_colors[color], gradient_colors[color + 1], y_min, y_max), 1.0); 72 | } 73 | } 74 | } 75 | else 76 | { 77 | fragColor = vec4(bg_color,1.0); 78 | } 79 | } -------------------------------------------------------------------------------- /cava/shaders/northern_lights.frag: -------------------------------------------------------------------------------- 1 | #version 330 2 | 3 | in vec2 fragCoord; 4 | out vec4 fragColor; 5 | 6 | // bar values. defaults to left channels first (low to high), then right (high to low). 7 | uniform float bars[512]; 8 | 9 | uniform int bars_count; // number of bars (left + right) (configurable) 10 | 11 | uniform vec3 u_resolution; // window resolution, not used here 12 | 13 | //colors, configurable in cava config file 14 | uniform vec3 bg_color; // background color(r,g,b) (0.0 - 1.0), not used here 15 | uniform vec3 fg_color; // foreground color, not used here 16 | 17 | void main() 18 | { 19 | // find which bar to use based on where we are on the x axis 20 | int bar = int(bars_count * fragCoord.x); 21 | 22 | float bar_y = 1.0 - abs((fragCoord.y - 0.5)) * 2.0; 23 | float y = (bars[bar]) * bar_y; 24 | 25 | float bar_x = (fragCoord.x - float(bar) / float(bars_count)) * bars_count; 26 | float bar_r = 1.0 - abs((bar_x - 0.5)) * 2; 27 | 28 | bar_r = bar_r * bar_r * 2; 29 | 30 | // set color 31 | fragColor.r = fg_color.x * y * bar_r; 32 | fragColor.g = fg_color.y * y * bar_r; 33 | fragColor.b = fg_color.z * y * bar_r; 34 | } 35 | -------------------------------------------------------------------------------- /cava/shaders/pass_through.vert: -------------------------------------------------------------------------------- 1 | #version 330 2 | 3 | 4 | // Input vertex data, different for all executions of this shader. 5 | layout(location = 0) in vec3 vertexPosition_modelspace; 6 | 7 | // Output data ; will be interpolated for each fragment. 8 | out vec2 fragCoord; 9 | 10 | void main() 11 | { 12 | gl_Position = vec4(vertexPosition_modelspace,1); 13 | fragCoord = (vertexPosition_modelspace.xy+vec2(1,1))/2.0; 14 | } 15 | -------------------------------------------------------------------------------- /hypr/hyprlock.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | background { 4 | monitor = 5 | path = /home/prtyksh/Downloads/arch.png # only png supported for now 6 | color = rgba(25, 20, 20, 1.0) 7 | 8 | # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations 9 | blur_passes = 0 # 0 disables blurring 10 | blur_size = 7 11 | noise = 0.0117 12 | contrast = 0.8916 13 | brightness = 0.8172 14 | vibrancy = 0.1696 15 | vibrancy_darkness = 0.0 16 | } 17 | 18 | input-field { 19 | monitor = 20 | size = 200, 50 21 | outline_thickness = 3 22 | dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 23 | dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 24 | dots_center = false 25 | outer_color = rgb(151515) 26 | inner_color = rgb(200, 200, 200) 27 | font_color = rgb(10, 10, 10) 28 | fade_on_empty = true 29 | placeholder_text = Input Password... # Text rendered in the input box when it's empty. 30 | hide_input = false 31 | 32 | position = 0, 0 33 | halign = center 34 | valign = center 35 | } 36 | 37 | label { 38 | monitor = 39 | text = Hi there, $USER 40 | color = rgba(200, 200, 200, 1.0) 41 | font_size = 30 42 | font_family = SF Pro Display Bold 43 | 44 | position = 0, 0 45 | halign = center 46 | valign = top 47 | } 48 | -------------------------------------------------------------------------------- /hypr/scripts/screenshot: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | grim -g "$(slurp)" - | wl-copy -t image/png 3 | notify-send "Screenshot copied to clipboard" 4 | -------------------------------------------------------------------------------- /hypr/scripts/screenshot_area: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | grimblast copy area || exit 3 | notify-send "Screenshot copied to clipboard" 4 | -------------------------------------------------------------------------------- /hypr/scripts/screenshot_full: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | grimblast copy output || exit 3 | notify-send "Screenshot copied to clipboard" 4 | -------------------------------------------------------------------------------- /rofi/applets/bin/appasroot.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Run Applications as Root 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Theme Elements 13 | prompt='Applications' 14 | mesg='Run Applications as Root' 15 | 16 | if [[ "$theme" == *'type-1'* ]]; then 17 | list_col='1' 18 | list_row='5' 19 | win_width='400px' 20 | elif [[ "$theme" == *'type-3'* ]]; then 21 | list_col='1' 22 | list_row='5' 23 | win_width='120px' 24 | elif [[ "$theme" == *'type-5'* ]]; then 25 | list_col='1' 26 | list_row='5' 27 | win_width='520px' 28 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 29 | list_col='5' 30 | list_row='1' 31 | win_width='670px' 32 | fi 33 | 34 | # Options 35 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 36 | if [[ "$layout" == 'NO' ]]; then 37 | option_1=" Alacritty" 38 | option_2=" Thunar" 39 | option_3=" Geany" 40 | option_4=" Ranger" 41 | option_5=" Vim" 42 | else 43 | option_1="" 44 | option_2="" 45 | option_3="" 46 | option_4="" 47 | option_5="" 48 | fi 49 | 50 | # Rofi CMD 51 | rofi_cmd() { 52 | rofi -theme-str "window {width: $win_width;}" \ 53 | -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 54 | -theme-str 'textbox-prompt-colon {str: "";}' \ 55 | -dmenu \ 56 | -p "$prompt" \ 57 | -mesg "$mesg" \ 58 | -markup-rows \ 59 | -theme ${theme} 60 | } 61 | 62 | # Pass variables to rofi dmenu 63 | run_rofi() { 64 | echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi_cmd 65 | } 66 | 67 | # Execute Command 68 | run_cmd() { 69 | polkit_cmd="pkexec env PATH=$PATH DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY" 70 | if [[ "$1" == '--opt1' ]]; then 71 | ${polkit_cmd} alacritty 72 | elif [[ "$1" == '--opt2' ]]; then 73 | ${polkit_cmd} dbus-run-session thunar 74 | elif [[ "$1" == '--opt3' ]]; then 75 | ${polkit_cmd} geany 76 | elif [[ "$1" == '--opt4' ]]; then 77 | ${polkit_cmd} alacritty -e ranger 78 | elif [[ "$1" == '--opt5' ]]; then 79 | ${polkit_cmd} alacritty -e vim 80 | fi 81 | } 82 | 83 | # Actions 84 | chosen="$(run_rofi)" 85 | case ${chosen} in 86 | $option_1) 87 | run_cmd --opt1 88 | ;; 89 | $option_2) 90 | run_cmd --opt2 91 | ;; 92 | $option_3) 93 | run_cmd --opt3 94 | ;; 95 | $option_4) 96 | run_cmd --opt4 97 | ;; 98 | $option_5) 99 | run_cmd --opt5 100 | ;; 101 | esac 102 | 103 | -------------------------------------------------------------------------------- /rofi/applets/bin/apps.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Favorite Applications 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Theme Elements 13 | prompt='Applications' 14 | mesg="Installed Packages : `pacman -Q | wc -l` (pacman)" 15 | 16 | if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then 17 | list_col='1' 18 | list_row='6' 19 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 20 | list_col='6' 21 | list_row='1' 22 | fi 23 | 24 | # CMDs (add your apps here) 25 | term_cmd='alacritty' 26 | file_cmd='thunar' 27 | text_cmd='geany' 28 | web_cmd='firefox' 29 | music_cmd='alacritty -e ncmpcpp' 30 | setting_cmd='xfce4-settings-manager' 31 | 32 | # Options 33 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 34 | if [[ "$layout" == 'NO' ]]; then 35 | option_1=" Terminal ($term_cmd)" 36 | option_2=" Files ($file_cmd)" 37 | option_3=" Editor ($text_cmd)" 38 | option_4=" Browser ($web_cmd)" 39 | option_5=" Music ($music_cmd)" 40 | option_6=" Settings ($setting_cmd)" 41 | else 42 | option_1="" 43 | option_2="" 44 | option_3="" 45 | option_4="" 46 | option_5="" 47 | option_6="" 48 | fi 49 | 50 | # Rofi CMD 51 | rofi_cmd() { 52 | rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 53 | -theme-str 'textbox-prompt-colon {str: "";}' \ 54 | -dmenu \ 55 | -p "$prompt" \ 56 | -mesg "$mesg" \ 57 | -markup-rows \ 58 | -theme ${theme} 59 | } 60 | 61 | # Pass variables to rofi dmenu 62 | run_rofi() { 63 | echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd 64 | } 65 | 66 | # Execute Command 67 | run_cmd() { 68 | if [[ "$1" == '--opt1' ]]; then 69 | ${term_cmd} 70 | elif [[ "$1" == '--opt2' ]]; then 71 | ${file_cmd} 72 | elif [[ "$1" == '--opt3' ]]; then 73 | ${text_cmd} 74 | elif [[ "$1" == '--opt4' ]]; then 75 | ${web_cmd} 76 | elif [[ "$1" == '--opt5' ]]; then 77 | ${music_cmd} 78 | elif [[ "$1" == '--opt6' ]]; then 79 | ${setting_cmd} 80 | fi 81 | } 82 | 83 | # Actions 84 | chosen="$(run_rofi)" 85 | case ${chosen} in 86 | $option_1) 87 | run_cmd --opt1 88 | ;; 89 | $option_2) 90 | run_cmd --opt2 91 | ;; 92 | $option_3) 93 | run_cmd --opt3 94 | ;; 95 | $option_4) 96 | run_cmd --opt4 97 | ;; 98 | $option_5) 99 | run_cmd --opt5 100 | ;; 101 | $option_6) 102 | run_cmd --opt6 103 | ;; 104 | esac 105 | -------------------------------------------------------------------------------- /rofi/applets/bin/battery.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Battery 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Battery Info 13 | battery="`acpi -b | cut -d',' -f1 | cut -d':' -f1`" 14 | status="`acpi -b | cut -d',' -f1 | cut -d':' -f2 | tr -d ' '`" 15 | percentage="`acpi -b | cut -d',' -f2 | tr -d ' ',\%`" 16 | time="`acpi -b | cut -d',' -f3`" 17 | 18 | if [[ -z "$time" ]]; then 19 | time=' Fully Charged' 20 | fi 21 | 22 | # Theme Elements 23 | prompt="$status" 24 | mesg="${battery}: ${percentage}%,${time}" 25 | 26 | if [[ "$theme" == *'type-1'* ]]; then 27 | list_col='1' 28 | list_row='4' 29 | win_width='400px' 30 | elif [[ "$theme" == *'type-3'* ]]; then 31 | list_col='1' 32 | list_row='4' 33 | win_width='120px' 34 | elif [[ "$theme" == *'type-5'* ]]; then 35 | list_col='1' 36 | list_row='4' 37 | win_width='500px' 38 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 39 | list_col='4' 40 | list_row='1' 41 | win_width='550px' 42 | fi 43 | 44 | # Charging Status 45 | active="" 46 | urgent="" 47 | if [[ $status = *"Charging"* ]]; then 48 | active="-a 1" 49 | ICON_CHRG="" 50 | elif [[ $status = *"Full"* ]]; then 51 | active="-u 1" 52 | ICON_CHRG="" 53 | else 54 | urgent="-u 1" 55 | ICON_CHRG="" 56 | fi 57 | 58 | # Discharging 59 | if [[ $percentage -ge 5 ]] && [[ $percentage -le 19 ]]; then 60 | ICON_DISCHRG="" 61 | elif [[ $percentage -ge 20 ]] && [[ $percentage -le 39 ]]; then 62 | ICON_DISCHRG="" 63 | elif [[ $percentage -ge 40 ]] && [[ $percentage -le 59 ]]; then 64 | ICON_DISCHRG="" 65 | elif [[ $percentage -ge 60 ]] && [[ $percentage -le 79 ]]; then 66 | ICON_DISCHRG="" 67 | elif [[ $percentage -ge 80 ]] && [[ $percentage -le 100 ]]; then 68 | ICON_DISCHRG="" 69 | fi 70 | 71 | # Options 72 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 73 | if [[ "$layout" == 'NO' ]]; then 74 | option_1=" Remaining ${percentage}%" 75 | option_2=" $status" 76 | option_3=" Power Manager" 77 | option_4=" Diagnose" 78 | else 79 | option_1="$ICON_DISCHRG" 80 | option_2="$ICON_CHRG" 81 | option_3="" 82 | option_4="" 83 | fi 84 | 85 | # Rofi CMD 86 | rofi_cmd() { 87 | rofi -theme-str "window {width: $win_width;}" \ 88 | -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 89 | -theme-str "textbox-prompt-colon {str: \"$ICON_DISCHRG\";}" \ 90 | -dmenu \ 91 | -p "$prompt" \ 92 | -mesg "$mesg" \ 93 | ${active} ${urgent} \ 94 | -markup-rows \ 95 | -theme ${theme} 96 | } 97 | 98 | # Pass variables to rofi dmenu 99 | run_rofi() { 100 | echo -e "$option_1\n$option_2\n$option_3\n$option_4" | rofi_cmd 101 | } 102 | 103 | # Execute Command 104 | run_cmd() { 105 | polkit_cmd="pkexec env PATH=$PATH DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY" 106 | if [[ "$1" == '--opt1' ]]; then 107 | notify-send -u low " Remaining : ${percentage}%" 108 | elif [[ "$1" == '--opt2' ]]; then 109 | notify-send -u low "$ICON_CHRG Status : $status" 110 | elif [[ "$1" == '--opt3' ]]; then 111 | xfce4-power-manager-settings 112 | elif [[ "$1" == '--opt4' ]]; then 113 | ${polkit_cmd} alacritty -e powertop 114 | fi 115 | } 116 | 117 | # Actions 118 | chosen="$(run_rofi)" 119 | case ${chosen} in 120 | $option_1) 121 | run_cmd --opt1 122 | ;; 123 | $option_2) 124 | run_cmd --opt2 125 | ;; 126 | $option_3) 127 | run_cmd --opt3 128 | ;; 129 | $option_4) 130 | run_cmd --opt4 131 | ;; 132 | esac 133 | 134 | 135 | -------------------------------------------------------------------------------- /rofi/applets/bin/brightness.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Brightness 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Brightness Info 13 | backlight="$(printf "%.0f\n" `light -G`)" 14 | card="`light -L | grep 'backlight' | head -n1 | cut -d'/' -f3`" 15 | 16 | if [[ $backlight -ge 0 ]] && [[ $backlight -le 29 ]]; then 17 | level="Low" 18 | elif [[ $backlight -ge 30 ]] && [[ $backlight -le 49 ]]; then 19 | level="Optimal" 20 | elif [[ $backlight -ge 50 ]] && [[ $backlight -le 69 ]]; then 21 | level="High" 22 | elif [[ $backlight -ge 70 ]] && [[ $backlight -le 100 ]]; then 23 | level="Peak" 24 | fi 25 | 26 | # Theme Elements 27 | prompt="${backlight}%" 28 | mesg="Device: ${card}, Level: $level" 29 | 30 | if [[ "$theme" == *'type-1'* ]]; then 31 | list_col='1' 32 | list_row='4' 33 | win_width='400px' 34 | elif [[ "$theme" == *'type-3'* ]]; then 35 | list_col='1' 36 | list_row='4' 37 | win_width='120px' 38 | elif [[ "$theme" == *'type-5'* ]]; then 39 | list_col='1' 40 | list_row='4' 41 | win_width='425px' 42 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 43 | list_col='4' 44 | list_row='1' 45 | win_width='550px' 46 | fi 47 | 48 | # Options 49 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 50 | if [[ "$layout" == 'NO' ]]; then 51 | option_1=" Increase" 52 | option_2=" Optimal" 53 | option_3=" Decrease" 54 | option_4=" Settings" 55 | else 56 | option_1="" 57 | option_2="" 58 | option_3="" 59 | option_4="" 60 | fi 61 | 62 | # Rofi CMD 63 | rofi_cmd() { 64 | rofi -theme-str "window {width: $win_width;}" \ 65 | -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 66 | -theme-str 'textbox-prompt-colon {str: "";}' \ 67 | -dmenu \ 68 | -p "$prompt" \ 69 | -mesg "$mesg" \ 70 | -markup-rows \ 71 | -theme ${theme} 72 | } 73 | 74 | # Pass variables to rofi dmenu 75 | run_rofi() { 76 | echo -e "$option_1\n$option_2\n$option_3\n$option_4" | rofi_cmd 77 | } 78 | 79 | # Execute Command 80 | run_cmd() { 81 | if [[ "$1" == '--opt1' ]]; then 82 | light -A 5 83 | elif [[ "$1" == '--opt2' ]]; then 84 | light -S 25 85 | elif [[ "$1" == '--opt3' ]]; then 86 | light -U 5 87 | elif [[ "$1" == '--opt4' ]]; then 88 | xfce4-power-manager-settings 89 | fi 90 | } 91 | 92 | # Actions 93 | chosen="$(run_rofi)" 94 | case ${chosen} in 95 | $option_1) 96 | run_cmd --opt1 97 | ;; 98 | $option_2) 99 | run_cmd --opt2 100 | ;; 101 | $option_3) 102 | run_cmd --opt3 103 | ;; 104 | $option_4) 105 | run_cmd --opt4 106 | ;; 107 | esac 108 | -------------------------------------------------------------------------------- /rofi/applets/bin/mpd.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : MPD (music) 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Theme Elements 13 | status="`mpc status`" 14 | if [[ -z "$status" ]]; then 15 | prompt='Offline' 16 | mesg="MPD is Offline" 17 | else 18 | prompt="`mpc -f "%artist%" current`" 19 | mesg="`mpc -f "%title%" current` :: `mpc status | grep "#" | awk '{print $3}'`" 20 | fi 21 | 22 | if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then 23 | list_col='1' 24 | list_row='6' 25 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 26 | list_col='6' 27 | list_row='1' 28 | fi 29 | 30 | # Options 31 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 32 | if [[ "$layout" == 'NO' ]]; then 33 | if [[ ${status} == *"[playing]"* ]]; then 34 | option_1=" Pause" 35 | else 36 | option_1=" Play" 37 | fi 38 | option_2=" Stop" 39 | option_3=" Previous" 40 | option_4=" Next" 41 | option_5=" Repeat" 42 | option_6=" Random" 43 | else 44 | if [[ ${status} == *"[playing]"* ]]; then 45 | option_1="" 46 | else 47 | option_1="" 48 | fi 49 | option_2="" 50 | option_3="" 51 | option_4="" 52 | option_5="" 53 | option_6="" 54 | fi 55 | 56 | # Toggle Actions 57 | active='' 58 | urgent='' 59 | # Repeat 60 | if [[ ${status} == *"repeat: on"* ]]; then 61 | active="-a 4" 62 | elif [[ ${status} == *"repeat: off"* ]]; then 63 | urgent="-u 4" 64 | else 65 | option_5=" Parsing Error" 66 | fi 67 | # Random 68 | if [[ ${status} == *"random: on"* ]]; then 69 | [ -n "$active" ] && active+=",5" || active="-a 5" 70 | elif [[ ${status} == *"random: off"* ]]; then 71 | [ -n "$urgent" ] && urgent+=",5" || urgent="-u 5" 72 | else 73 | option_6=" Parsing Error" 74 | fi 75 | 76 | # Rofi CMD 77 | rofi_cmd() { 78 | rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 79 | -theme-str 'textbox-prompt-colon {str: "";}' \ 80 | -dmenu \ 81 | -p "$prompt" \ 82 | -mesg "$mesg" \ 83 | ${active} ${urgent} \ 84 | -markup-rows \ 85 | -theme ${theme} 86 | } 87 | 88 | # Pass variables to rofi dmenu 89 | run_rofi() { 90 | echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd 91 | } 92 | 93 | # Execute Command 94 | run_cmd() { 95 | if [[ "$1" == '--opt1' ]]; then 96 | mpc -q toggle && notify-send -u low -t 1000 " `mpc current`" 97 | elif [[ "$1" == '--opt2' ]]; then 98 | mpc -q stop 99 | elif [[ "$1" == '--opt3' ]]; then 100 | mpc -q prev && notify-send -u low -t 1000 " `mpc current`" 101 | elif [[ "$1" == '--opt4' ]]; then 102 | mpc -q next && notify-send -u low -t 1000 " `mpc current`" 103 | elif [[ "$1" == '--opt5' ]]; then 104 | mpc -q repeat 105 | elif [[ "$1" == '--opt6' ]]; then 106 | mpc -q random 107 | fi 108 | } 109 | 110 | # Actions 111 | chosen="$(run_rofi)" 112 | case ${chosen} in 113 | $option_1) 114 | run_cmd --opt1 115 | ;; 116 | $option_2) 117 | run_cmd --opt2 118 | ;; 119 | $option_3) 120 | run_cmd --opt3 121 | ;; 122 | $option_4) 123 | run_cmd --opt4 124 | ;; 125 | $option_5) 126 | run_cmd --opt5 127 | ;; 128 | $option_6) 129 | run_cmd --opt6 130 | ;; 131 | esac 132 | -------------------------------------------------------------------------------- /rofi/applets/bin/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Power Menu 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Theme Elements 13 | prompt="`hostname`" 14 | mesg="Uptime : `uptime -p | sed -e 's/up //g'`" 15 | 16 | if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then 17 | list_col='1' 18 | list_row='6' 19 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 20 | list_col='6' 21 | list_row='1' 22 | fi 23 | 24 | # Options 25 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 26 | if [[ "$layout" == 'NO' ]]; then 27 | option_1=" Lock" 28 | option_2=" Logout" 29 | option_3=" Suspend" 30 | option_4=" Hibernate" 31 | option_5=" Reboot" 32 | option_6=" Shutdown" 33 | yes=' Yes' 34 | no=' No' 35 | else 36 | option_1="" 37 | option_2="" 38 | option_3="" 39 | option_4="" 40 | option_5="" 41 | option_6="" 42 | yes='' 43 | no='' 44 | fi 45 | 46 | # Rofi CMD 47 | rofi_cmd() { 48 | rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 49 | -theme-str 'textbox-prompt-colon {str: "";}' \ 50 | -dmenu \ 51 | -p "$prompt" \ 52 | -mesg "$mesg" \ 53 | -markup-rows \ 54 | -theme ${theme} 55 | } 56 | 57 | # Pass variables to rofi dmenu 58 | run_rofi() { 59 | echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd 60 | } 61 | 62 | # Confirmation CMD 63 | confirm_cmd() { 64 | rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 350px;}' \ 65 | -theme-str 'mainbox {orientation: vertical; children: [ "message", "listview" ];}' \ 66 | -theme-str 'listview {columns: 2; lines: 1;}' \ 67 | -theme-str 'element-text {horizontal-align: 0.5;}' \ 68 | -theme-str 'textbox {horizontal-align: 0.5;}' \ 69 | -dmenu \ 70 | -p 'Confirmation' \ 71 | -mesg 'Are you Sure?' \ 72 | -theme ${theme} 73 | } 74 | 75 | # Ask for confirmation 76 | confirm_exit() { 77 | echo -e "$yes\n$no" | confirm_cmd 78 | } 79 | 80 | # Confirm and execute 81 | confirm_run () { 82 | selected="$(confirm_exit)" 83 | if [[ "$selected" == "$yes" ]]; then 84 | ${1} && ${2} && ${3} 85 | else 86 | exit 87 | fi 88 | } 89 | 90 | # Execute Command 91 | run_cmd() { 92 | if [[ "$1" == '--opt1' ]]; then 93 | swaylock 94 | elif [[ "$1" == '--opt2' ]]; then 95 | confirm_run 'kill -9 -1' 96 | elif [[ "$1" == '--opt3' ]]; then 97 | confirm_run 'mpc -q pause' 'amixer set Master mute' 'systemctl suspend' 98 | elif [[ "$1" == '--opt4' ]]; then 99 | confirm_run 'systemctl hibernate' 100 | elif [[ "$1" == '--opt5' ]]; then 101 | confirm_run 'systemctl reboot' 102 | elif [[ "$1" == '--opt6' ]]; then 103 | confirm_run 'systemctl poweroff' 104 | fi 105 | } 106 | 107 | # Actions 108 | chosen="$(run_rofi)" 109 | case ${chosen} in 110 | $option_1) 111 | run_cmd --opt1 112 | ;; 113 | $option_2) 114 | run_cmd --opt2 115 | ;; 116 | $option_3) 117 | run_cmd --opt3 118 | ;; 119 | $option_4) 120 | run_cmd --opt4 121 | ;; 122 | $option_5) 123 | run_cmd --opt5 124 | ;; 125 | $option_6) 126 | run_cmd --opt6 127 | ;; 128 | esac 129 | 130 | -------------------------------------------------------------------------------- /rofi/applets/bin/quicklinks.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Quick Links 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Theme Elements 13 | prompt='Quick Links' 14 | mesg="Using '$BROWSER' as web browser" 15 | 16 | if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-3'* ) || ( "$theme" == *'type-5'* ) ]]; then 17 | list_col='1' 18 | list_row='6' 19 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 20 | list_col='6' 21 | list_row='1' 22 | fi 23 | 24 | if [[ ( "$theme" == *'type-1'* ) || ( "$theme" == *'type-5'* ) ]]; then 25 | efonts="JetBrains Mono Nerd Font 10" 26 | else 27 | efonts="JetBrains Mono Nerd Font 28" 28 | fi 29 | 30 | # Options 31 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 32 | if [[ "$layout" == 'NO' ]]; then 33 | option_1=" Google" 34 | option_2=" Gmail" 35 | option_3=" Youtube" 36 | option_4=" Github" 37 | option_5=" Reddit" 38 | option_6=" Twitter" 39 | else 40 | option_1="" 41 | option_2="" 42 | option_3="" 43 | option_4="" 44 | option_5="" 45 | option_6="" 46 | fi 47 | 48 | # Rofi CMD 49 | rofi_cmd() { 50 | rofi -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 51 | -theme-str 'textbox-prompt-colon {str: "";}' \ 52 | -theme-str "element-text {font: \"$efonts\";}" \ 53 | -dmenu \ 54 | -p "$prompt" \ 55 | -mesg "$mesg" \ 56 | -markup-rows \ 57 | -theme ${theme} 58 | } 59 | 60 | # Pass variables to rofi dmenu 61 | run_rofi() { 62 | echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5\n$option_6" | rofi_cmd 63 | } 64 | 65 | # Execute Command 66 | run_cmd() { 67 | if [[ "$1" == '--opt1' ]]; then 68 | xdg-open 'https://www.google.com/' 69 | elif [[ "$1" == '--opt2' ]]; then 70 | xdg-open 'https://mail.google.com/' 71 | elif [[ "$1" == '--opt3' ]]; then 72 | xdg-open 'https://www.youtube.com/' 73 | elif [[ "$1" == '--opt4' ]]; then 74 | xdg-open 'https://www.github.com/' 75 | elif [[ "$1" == '--opt5' ]]; then 76 | xdg-open 'https://www.reddit.com/' 77 | elif [[ "$1" == '--opt6' ]]; then 78 | xdg-open 'https://www.twitter.com/' 79 | fi 80 | } 81 | 82 | # Actions 83 | chosen="$(run_rofi)" 84 | case ${chosen} in 85 | $option_1) 86 | run_cmd --opt1 87 | ;; 88 | $option_2) 89 | run_cmd --opt2 90 | ;; 91 | $option_3) 92 | run_cmd --opt3 93 | ;; 94 | $option_4) 95 | run_cmd --opt4 96 | ;; 97 | $option_5) 98 | run_cmd --opt5 99 | ;; 100 | $option_6) 101 | run_cmd --opt6 102 | ;; 103 | esac 104 | -------------------------------------------------------------------------------- /rofi/applets/bin/screenshot.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Screenshot 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Theme Elements 13 | prompt='Screenshot' 14 | mesg="DIR: `xdg-user-dir PICTURES`/Screenshots" 15 | 16 | if [[ "$theme" == *'type-1'* ]]; then 17 | list_col='1' 18 | list_row='5' 19 | win_width='400px' 20 | elif [[ "$theme" == *'type-3'* ]]; then 21 | list_col='1' 22 | list_row='5' 23 | win_width='120px' 24 | elif [[ "$theme" == *'type-5'* ]]; then 25 | list_col='1' 26 | list_row='5' 27 | win_width='520px' 28 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 29 | list_col='5' 30 | list_row='1' 31 | win_width='670px' 32 | fi 33 | 34 | # Options 35 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 36 | if [[ "$layout" == 'NO' ]]; then 37 | option_1=" Capture Desktop" 38 | option_2=" Capture Area" 39 | option_3=" Capture Window" 40 | option_4=" Capture in 5s" 41 | option_5=" Capture in 10s" 42 | else 43 | option_1="" 44 | option_2="" 45 | option_3="" 46 | option_4="" 47 | option_5="" 48 | fi 49 | 50 | # Rofi CMD 51 | rofi_cmd() { 52 | rofi -theme-str "window {width: $win_width;}" \ 53 | -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 54 | -theme-str 'textbox-prompt-colon {str: "";}' \ 55 | -dmenu \ 56 | -p "$prompt" \ 57 | -mesg "$mesg" \ 58 | -markup-rows \ 59 | -theme ${theme} 60 | } 61 | 62 | # Pass variables to rofi dmenu 63 | run_rofi() { 64 | echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi_cmd 65 | } 66 | 67 | # Screenshot 68 | time=`date +%Y-%m-%d-%H-%M-%S` 69 | geometry=`xrandr | grep 'current' | head -n1 | cut -d',' -f2 | tr -d '[:blank:],current'` 70 | dir="`xdg-user-dir PICTURES`/Screenshots" 71 | file="Screenshot_${time}_${geometry}.png" 72 | 73 | if [[ ! -d "$dir" ]]; then 74 | mkdir -p "$dir" 75 | fi 76 | 77 | # notify and view screenshot 78 | notify_view() { 79 | notify_cmd_shot='dunstify -u low --replace=699' 80 | ${notify_cmd_shot} "Copied to clipboard." 81 | viewnior ${dir}/"$file" 82 | if [[ -e "$dir/$file" ]]; then 83 | ${notify_cmd_shot} "Screenshot Saved." 84 | else 85 | ${notify_cmd_shot} "Screenshot Deleted." 86 | fi 87 | } 88 | 89 | # Copy screenshot to clipboard 90 | copy_shot () { 91 | tee "$file" | xclip -selection clipboard -t image/png 92 | } 93 | 94 | # countdown 95 | countdown () { 96 | for sec in `seq $1 -1 1`; do 97 | dunstify -t 1000 --replace=699 "Taking shot in : $sec" 98 | sleep 1 99 | done 100 | } 101 | 102 | # take shots 103 | shotnow () { 104 | cd ${dir} && sleep 0.5 && maim -u -f png | copy_shot 105 | notify_view 106 | } 107 | 108 | shot5 () { 109 | countdown '5' 110 | sleep 1 && cd ${dir} && maim -u -f png | copy_shot 111 | notify_view 112 | } 113 | 114 | shot10 () { 115 | countdown '10' 116 | sleep 1 && cd ${dir} && maim -u -f png | copy_shot 117 | notify_view 118 | } 119 | 120 | shotwin () { 121 | cd ${dir} && maim -u -f png -i `xdotool getactivewindow` | copy_shot 122 | notify_view 123 | } 124 | 125 | shotarea () { 126 | cd ${dir} && maim -u -f png -s -b 2 -c 0.35,0.55,0.85,0.25 -l | copy_shot 127 | notify_view 128 | } 129 | 130 | # Execute Command 131 | run_cmd() { 132 | if [[ "$1" == '--opt1' ]]; then 133 | shotnow 134 | elif [[ "$1" == '--opt2' ]]; then 135 | shotarea 136 | elif [[ "$1" == '--opt3' ]]; then 137 | shotwin 138 | elif [[ "$1" == '--opt4' ]]; then 139 | shot5 140 | elif [[ "$1" == '--opt5' ]]; then 141 | shot10 142 | fi 143 | } 144 | 145 | # Actions 146 | chosen="$(run_rofi)" 147 | case ${chosen} in 148 | $option_1) 149 | run_cmd --opt1 150 | ;; 151 | $option_2) 152 | run_cmd --opt2 153 | ;; 154 | $option_3) 155 | run_cmd --opt3 156 | ;; 157 | $option_4) 158 | run_cmd --opt4 159 | ;; 160 | $option_5) 161 | run_cmd --opt5 162 | ;; 163 | esac 164 | 165 | 166 | -------------------------------------------------------------------------------- /rofi/applets/bin/volume.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Applets : Volume 7 | 8 | # Import Current Theme 9 | source "$HOME"/.config/rofi/applets/shared/theme.bash 10 | theme="$type/$style" 11 | 12 | # Volume Info 13 | mixer="`amixer info Master | grep 'Mixer name' | cut -d':' -f2 | tr -d \',' '`" 14 | speaker="`amixer get Master | tail -n1 | awk -F ' ' '{print $5}' | tr -d '[]'`" 15 | mic="`amixer get Capture | tail -n1 | awk -F ' ' '{print $5}' | tr -d '[]'`" 16 | 17 | active="" 18 | urgent="" 19 | 20 | # Speaker Info 21 | amixer get Master | grep '\[on\]' &>/dev/null 22 | if [[ "$?" == 0 ]]; then 23 | active="-a 1" 24 | stext='Unmute' 25 | sicon='' 26 | else 27 | urgent="-u 1" 28 | stext='Mute' 29 | sicon='' 30 | fi 31 | 32 | # Microphone Info 33 | amixer get Capture | grep '\[on\]' &>/dev/null 34 | if [[ "$?" == 0 ]]; then 35 | [ -n "$active" ] && active+=",3" || active="-a 3" 36 | mtext='Unmute' 37 | micon='' 38 | else 39 | [ -n "$urgent" ] && urgent+=",3" || urgent="-u 3" 40 | mtext='Mute' 41 | micon='' 42 | fi 43 | 44 | # Theme Elements 45 | prompt="S:$stext, M:$mtext" 46 | mesg="$mixer - Speaker: $speaker, Mic: $mic" 47 | 48 | if [[ "$theme" == *'type-1'* ]]; then 49 | list_col='1' 50 | list_row='5' 51 | win_width='400px' 52 | elif [[ "$theme" == *'type-3'* ]]; then 53 | list_col='1' 54 | list_row='5' 55 | win_width='120px' 56 | elif [[ "$theme" == *'type-5'* ]]; then 57 | list_col='1' 58 | list_row='5' 59 | win_width='520px' 60 | elif [[ ( "$theme" == *'type-2'* ) || ( "$theme" == *'type-4'* ) ]]; then 61 | list_col='5' 62 | list_row='1' 63 | win_width='670px' 64 | fi 65 | 66 | # Options 67 | layout=`cat ${theme} | grep 'USE_ICON' | cut -d'=' -f2` 68 | if [[ "$layout" == 'NO' ]]; then 69 | option_1=" Increase" 70 | option_2="$sicon $stext" 71 | option_3=" Decrese" 72 | option_4="$micon $mtext" 73 | option_5=" Settings" 74 | else 75 | option_1="" 76 | option_2="$sicon" 77 | option_3="" 78 | option_4="$micon" 79 | option_5="" 80 | fi 81 | 82 | # Rofi CMD 83 | rofi_cmd() { 84 | rofi -theme-str "window {width: $win_width;}" \ 85 | -theme-str "listview {columns: $list_col; lines: $list_row;}" \ 86 | -theme-str 'textbox-prompt-colon {str: "";}' \ 87 | -dmenu \ 88 | -p "$prompt" \ 89 | -mesg "$mesg" \ 90 | ${active} ${urgent} \ 91 | -markup-rows \ 92 | -theme ${theme} 93 | } 94 | 95 | # Pass variables to rofi dmenu 96 | run_rofi() { 97 | echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi_cmd 98 | } 99 | 100 | # Execute Command 101 | run_cmd() { 102 | if [[ "$1" == '--opt1' ]]; then 103 | amixer -Mq set Master,0 5%+ unmute 104 | elif [[ "$1" == '--opt2' ]]; then 105 | amixer set Master toggle 106 | elif [[ "$1" == '--opt3' ]]; then 107 | amixer -Mq set Master,0 5%- unmute 108 | elif [[ "$1" == '--opt4' ]]; then 109 | amixer set Capture toggle 110 | elif [[ "$1" == '--opt5' ]]; then 111 | pavucontrol 112 | fi 113 | } 114 | 115 | # Actions 116 | chosen="$(run_rofi)" 117 | case ${chosen} in 118 | $option_1) 119 | run_cmd --opt1 120 | ;; 121 | $option_2) 122 | run_cmd --opt2 123 | ;; 124 | $option_3) 125 | run_cmd --opt3 126 | ;; 127 | $option_4) 128 | run_cmd --opt4 129 | ;; 130 | $option_5) 131 | run_cmd --opt5 132 | ;; 133 | esac 134 | 135 | -------------------------------------------------------------------------------- /rofi/applets/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/applets/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "JetBrains Mono Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/applets/shared/theme.bash: -------------------------------------------------------------------------------- 1 | ## Current Theme 2 | 3 | type="$HOME/.config/rofi/applets/type-4" 4 | style='style-3.rasi' 5 | -------------------------------------------------------------------------------- /rofi/applets/type-1/style-1.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "../shared/colors.rasi" 17 | @import "../shared/fonts.rasi" 18 | 19 | /* 20 | USE_ICON=NO 21 | */ 22 | 23 | /*****----- Main Window -----*****/ 24 | window { 25 | transparency: "real"; 26 | location: center; 27 | anchor: center; 28 | fullscreen: false; 29 | width: 400px; 30 | x-offset: 0px; 31 | y-offset: 0px; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 1px solid; 35 | border-radius: 0px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 10px; 45 | margin: 0px; 46 | padding: 20px; 47 | background-color: transparent; 48 | children: [ "inputbar", "message", "listview" ]; 49 | } 50 | 51 | /*****----- Inputbar -----*****/ 52 | inputbar { 53 | enabled: true; 54 | spacing: 10px; 55 | padding: 0px; 56 | border: 0px; 57 | border-radius: 0px; 58 | border-color: @selected; 59 | background-color: transparent; 60 | text-color: @foreground; 61 | children: [ "textbox-prompt-colon", "prompt"]; 62 | } 63 | 64 | textbox-prompt-colon { 65 | enabled: true; 66 | expand: false; 67 | str: ""; 68 | padding: 10px 13px; 69 | border-radius: 0px; 70 | background-color: @urgent; 71 | text-color: @background; 72 | } 73 | prompt { 74 | enabled: true; 75 | padding: 10px; 76 | border-radius: 0px; 77 | background-color: @active; 78 | text-color: @background; 79 | } 80 | 81 | /*****----- Message -----*****/ 82 | message { 83 | enabled: true; 84 | margin: 0px; 85 | padding: 10px; 86 | border: 0px solid; 87 | border-radius: 0px; 88 | border-color: @selected; 89 | background-color: @background-alt; 90 | text-color: @foreground; 91 | } 92 | textbox { 93 | background-color: inherit; 94 | text-color: inherit; 95 | vertical-align: 0.5; 96 | horizontal-align: 0.0; 97 | } 98 | 99 | /*****----- Listview -----*****/ 100 | listview { 101 | enabled: true; 102 | columns: 1; 103 | lines: 6; 104 | cycle: true; 105 | scrollbar: false; 106 | layout: vertical; 107 | 108 | spacing: 5px; 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: 10px; 117 | border: 0px solid; 118 | border-radius: 0px; 119 | border-color: @selected; 120 | background-color: transparent; 121 | text-color: @foreground; 122 | cursor: pointer; 123 | } 124 | element-text { 125 | background-color: transparent; 126 | text-color: inherit; 127 | cursor: inherit; 128 | vertical-align: 0.5; 129 | horizontal-align: 0.0; 130 | } 131 | 132 | element normal.normal, 133 | element alternate.normal { 134 | background-color: var(background); 135 | text-color: var(foreground); 136 | } 137 | element normal.urgent, 138 | element alternate.urgent, 139 | element selected.active { 140 | background-color: var(urgent); 141 | text-color: var(background); 142 | } 143 | element normal.active, 144 | element alternate.active, 145 | element selected.urgent { 146 | background-color: var(active); 147 | text-color: var(background); 148 | } 149 | element selected.normal { 150 | background-color: var(selected); 151 | text-color: var(background); 152 | } 153 | -------------------------------------------------------------------------------- /rofi/applets/type-1/style-2.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "../shared/colors.rasi" 17 | @import "../shared/fonts.rasi" 18 | 19 | /* 20 | USE_ICON=NO 21 | */ 22 | 23 | /*****----- Main Window -----*****/ 24 | window { 25 | transparency: "real"; 26 | location: center; 27 | anchor: center; 28 | fullscreen: false; 29 | width: 400px; 30 | x-offset: 0px; 31 | y-offset: 0px; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 1px solid; 35 | border-radius: 12px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 10px; 45 | margin: 0px; 46 | padding: 20px; 47 | background-color: transparent; 48 | children: [ "inputbar", "message", "listview" ]; 49 | } 50 | 51 | /*****----- Inputbar -----*****/ 52 | inputbar { 53 | enabled: true; 54 | spacing: 10px; 55 | padding: 0px; 56 | border: 0px; 57 | border-radius: 0px; 58 | border-color: @selected; 59 | background-color: transparent; 60 | text-color: @foreground; 61 | children: [ "textbox-prompt-colon", "prompt"]; 62 | } 63 | 64 | textbox-prompt-colon { 65 | enabled: true; 66 | expand: false; 67 | str: ""; 68 | padding: 10px 13px; 69 | border-radius: 12px; 70 | background-color: @urgent; 71 | text-color: @background; 72 | } 73 | prompt { 74 | enabled: true; 75 | padding: 10px; 76 | border-radius: 12px; 77 | background-color: @active; 78 | text-color: @background; 79 | } 80 | 81 | /*****----- Message -----*****/ 82 | message { 83 | enabled: true; 84 | margin: 0px; 85 | padding: 10px; 86 | border: 0px solid; 87 | border-radius: 12px; 88 | border-color: @selected; 89 | background-color: @background-alt; 90 | text-color: @foreground; 91 | } 92 | textbox { 93 | background-color: inherit; 94 | text-color: inherit; 95 | vertical-align: 0.5; 96 | horizontal-align: 0.0; 97 | } 98 | 99 | /*****----- Listview -----*****/ 100 | listview { 101 | enabled: true; 102 | columns: 1; 103 | lines: 6; 104 | cycle: true; 105 | scrollbar: false; 106 | layout: vertical; 107 | 108 | spacing: 5px; 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: 10px; 117 | border: 0px solid; 118 | border-radius: 12px; 119 | border-color: @selected; 120 | background-color: transparent; 121 | text-color: @foreground; 122 | cursor: pointer; 123 | } 124 | element-text { 125 | background-color: transparent; 126 | text-color: inherit; 127 | cursor: inherit; 128 | vertical-align: 0.5; 129 | horizontal-align: 0.0; 130 | } 131 | 132 | element normal.normal, 133 | element alternate.normal { 134 | background-color: var(background); 135 | text-color: var(foreground); 136 | } 137 | element normal.urgent, 138 | element alternate.urgent, 139 | element selected.active { 140 | background-color: var(urgent); 141 | text-color: var(background); 142 | } 143 | element normal.active, 144 | element alternate.active, 145 | element selected.urgent { 146 | background-color: var(active); 147 | text-color: var(background); 148 | } 149 | element selected.normal { 150 | background-color: var(selected); 151 | text-color: var(background); 152 | } 153 | -------------------------------------------------------------------------------- /rofi/applets/type-1/style-3.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "../shared/colors.rasi" 17 | @import "../shared/fonts.rasi" 18 | 19 | /* 20 | USE_ICON=NO 21 | */ 22 | 23 | /*****----- Main Window -----*****/ 24 | window { 25 | transparency: "real"; 26 | location: center; 27 | anchor: center; 28 | fullscreen: false; 29 | width: 400px; 30 | x-offset: 0px; 31 | y-offset: 0px; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 1px solid; 35 | border-radius: 30px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 10px; 45 | margin: 0px; 46 | padding: 20px; 47 | background-color: transparent; 48 | children: [ "inputbar", "message", "listview" ]; 49 | } 50 | 51 | /*****----- Inputbar -----*****/ 52 | inputbar { 53 | enabled: true; 54 | spacing: 10px; 55 | padding: 0px; 56 | border: 0px; 57 | border-radius: 0px; 58 | border-color: @selected; 59 | background-color: transparent; 60 | text-color: @foreground; 61 | children: [ "textbox-prompt-colon", "prompt"]; 62 | } 63 | 64 | textbox-prompt-colon { 65 | enabled: true; 66 | expand: false; 67 | str: ""; 68 | padding: 10px 13px; 69 | border-radius: 100%; 70 | background-color: @urgent; 71 | text-color: @background; 72 | } 73 | prompt { 74 | enabled: true; 75 | padding: 10px; 76 | border-radius: 100%; 77 | background-color: @active; 78 | text-color: @background; 79 | } 80 | 81 | /*****----- Message -----*****/ 82 | message { 83 | enabled: true; 84 | margin: 0px; 85 | padding: 10px; 86 | border: 0px solid; 87 | border-radius: 100%; 88 | border-color: @selected; 89 | background-color: @background-alt; 90 | text-color: @foreground; 91 | } 92 | textbox { 93 | background-color: inherit; 94 | text-color: inherit; 95 | vertical-align: 0.5; 96 | horizontal-align: 0.0; 97 | } 98 | 99 | /*****----- Listview -----*****/ 100 | listview { 101 | enabled: true; 102 | columns: 1; 103 | lines: 6; 104 | cycle: true; 105 | scrollbar: false; 106 | layout: vertical; 107 | 108 | spacing: 5px; 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: 10px; 117 | border: 0px solid; 118 | border-radius: 100%; 119 | border-color: @selected; 120 | background-color: transparent; 121 | text-color: @foreground; 122 | cursor: pointer; 123 | } 124 | element-text { 125 | background-color: transparent; 126 | text-color: inherit; 127 | cursor: inherit; 128 | vertical-align: 0.5; 129 | horizontal-align: 0.0; 130 | } 131 | 132 | element normal.normal, 133 | element alternate.normal { 134 | background-color: var(background); 135 | text-color: var(foreground); 136 | } 137 | element normal.urgent, 138 | element alternate.urgent, 139 | element selected.active { 140 | background-color: var(urgent); 141 | text-color: var(background); 142 | } 143 | element normal.active, 144 | element alternate.active, 145 | element selected.urgent { 146 | background-color: var(active); 147 | text-color: var(background); 148 | } 149 | element selected.normal { 150 | background-color: var(selected); 151 | text-color: var(background); 152 | } 153 | -------------------------------------------------------------------------------- /rofi/applets/type-2/style-1.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "../shared/colors.rasi" 17 | @import "../shared/fonts.rasi" 18 | 19 | /* 20 | USE_ICON=YES 21 | */ 22 | 23 | /*****----- Main Window -----*****/ 24 | window { 25 | transparency: "real"; 26 | location: center; 27 | anchor: center; 28 | fullscreen: false; 29 | width: 800px; 30 | x-offset: 0px; 31 | y-offset: 0px; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 0px solid; 35 | border-radius: 0px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 15px; 45 | margin: 0px; 46 | padding: 30px; 47 | background-color: transparent; 48 | children: [ "inputbar", "message", "listview" ]; 49 | } 50 | 51 | /*****----- Inputbar -----*****/ 52 | inputbar { 53 | enabled: true; 54 | spacing: 10px; 55 | padding: 0px; 56 | border: 0px; 57 | border-radius: 0px; 58 | border-color: @selected; 59 | background-color: transparent; 60 | text-color: @foreground; 61 | children: [ "textbox-prompt-colon", "prompt"]; 62 | } 63 | 64 | textbox-prompt-colon { 65 | enabled: true; 66 | expand: false; 67 | str: ""; 68 | padding: 10px 13px; 69 | border-radius: 0px; 70 | background-color: @urgent; 71 | text-color: @background; 72 | } 73 | prompt { 74 | enabled: true; 75 | padding: 10px; 76 | border-radius: 0px; 77 | background-color: @active; 78 | text-color: @background; 79 | } 80 | 81 | /*****----- Message -----*****/ 82 | message { 83 | enabled: true; 84 | margin: 0px; 85 | padding: 10px; 86 | border: 0px solid; 87 | border-radius: 0px; 88 | border-color: @selected; 89 | background-color: @background-alt; 90 | text-color: @foreground; 91 | } 92 | textbox { 93 | background-color: inherit; 94 | text-color: inherit; 95 | vertical-align: 0.5; 96 | horizontal-align: 0.0; 97 | } 98 | 99 | /*****----- Listview -----*****/ 100 | listview { 101 | enabled: true; 102 | columns: 6; 103 | lines: 1; 104 | cycle: true; 105 | scrollbar: false; 106 | layout: vertical; 107 | 108 | spacing: 15px; 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: 30px 10px; 117 | border: 0px solid; 118 | border-radius: 0px; 119 | border-color: @selected; 120 | background-color: transparent; 121 | text-color: @foreground; 122 | cursor: pointer; 123 | } 124 | element-text { 125 | font: "feather 28"; 126 | background-color: transparent; 127 | text-color: inherit; 128 | cursor: inherit; 129 | vertical-align: 0.5; 130 | horizontal-align: 0.5; 131 | } 132 | 133 | element normal.normal, 134 | element alternate.normal { 135 | background-color: var(background-alt); 136 | text-color: var(foreground); 137 | } 138 | element normal.urgent, 139 | element alternate.urgent, 140 | element selected.active { 141 | background-color: var(urgent); 142 | text-color: var(background); 143 | } 144 | element normal.active, 145 | element alternate.active, 146 | element selected.urgent { 147 | background-color: var(active); 148 | text-color: var(background); 149 | } 150 | element selected.normal { 151 | background-color: var(selected); 152 | text-color: var(background); 153 | } 154 | -------------------------------------------------------------------------------- /rofi/applets/type-3/style-1.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "../shared/colors.rasi" 17 | @import "../shared/fonts.rasi" 18 | 19 | /* 20 | USE_ICON=YES 21 | */ 22 | 23 | /*****----- Main Window -----*****/ 24 | window { 25 | transparency: "real"; 26 | location: east; 27 | anchor: east; 28 | fullscreen: false; 29 | width: 120px; 30 | x-offset: -20px; 31 | y-offset: 0px; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 0px solid; 35 | border-radius: 0px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 15px; 45 | margin: 0px; 46 | padding: 15px; 47 | background-color: transparent; 48 | children: [ "listview" ]; 49 | } 50 | 51 | /*****----- Inputbar -----*****/ 52 | inputbar { 53 | enabled: true; 54 | spacing: 10px; 55 | padding: 0px; 56 | border: 0px; 57 | border-radius: 0px; 58 | border-color: @selected; 59 | background-color: transparent; 60 | text-color: @foreground; 61 | children: [ "textbox-prompt-colon", "prompt"]; 62 | } 63 | 64 | textbox-prompt-colon { 65 | enabled: true; 66 | expand: false; 67 | str: ""; 68 | padding: 10px 13px; 69 | border-radius: 0px; 70 | background-color: @urgent; 71 | text-color: @background; 72 | } 73 | prompt { 74 | enabled: true; 75 | padding: 10px; 76 | border-radius: 0px; 77 | background-color: @active; 78 | text-color: @background; 79 | } 80 | 81 | /*****----- Message -----*****/ 82 | message { 83 | enabled: true; 84 | margin: 0px; 85 | padding: 10px; 86 | border: 0px solid; 87 | border-radius: 0px; 88 | border-color: @selected; 89 | background-color: @background-alt; 90 | text-color: @foreground; 91 | } 92 | textbox { 93 | background-color: inherit; 94 | text-color: inherit; 95 | vertical-align: 0.5; 96 | horizontal-align: 0.0; 97 | } 98 | 99 | /*****----- Listview -----*****/ 100 | listview { 101 | enabled: true; 102 | columns: 6; 103 | lines: 1; 104 | cycle: true; 105 | scrollbar: false; 106 | layout: vertical; 107 | 108 | spacing: 15px; 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: 23px 10px; 117 | border: 0px solid; 118 | border-radius: 0px; 119 | border-color: @selected; 120 | background-color: transparent; 121 | text-color: @foreground; 122 | cursor: pointer; 123 | } 124 | element-text { 125 | font: "feather 24"; 126 | background-color: transparent; 127 | text-color: inherit; 128 | cursor: inherit; 129 | vertical-align: 0.5; 130 | horizontal-align: 0.5; 131 | } 132 | 133 | element normal.normal, 134 | element alternate.normal { 135 | background-color: var(background-alt); 136 | text-color: var(foreground); 137 | } 138 | element normal.urgent, 139 | element alternate.urgent, 140 | element selected.active { 141 | background-color: var(urgent); 142 | text-color: var(background); 143 | } 144 | element normal.active, 145 | element alternate.active, 146 | element selected.urgent { 147 | background-color: var(active); 148 | text-color: var(background); 149 | } 150 | element selected.normal { 151 | background-color: var(selected); 152 | text-color: var(background); 153 | } 154 | -------------------------------------------------------------------------------- /rofi/applets/type-3/style-2.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "../shared/colors.rasi" 17 | @import "../shared/fonts.rasi" 18 | 19 | /* 20 | USE_ICON=YES 21 | */ 22 | 23 | /*****----- Main Window -----*****/ 24 | window { 25 | transparency: "real"; 26 | location: east; 27 | anchor: east; 28 | fullscreen: false; 29 | width: 120px; 30 | x-offset: -20px; 31 | y-offset: 0px; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 0px solid; 35 | border-radius: 10px; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 15px; 45 | margin: 0px; 46 | padding: 15px; 47 | background-color: transparent; 48 | children: [ "listview" ]; 49 | } 50 | 51 | /*****----- Inputbar -----*****/ 52 | inputbar { 53 | enabled: true; 54 | spacing: 10px; 55 | padding: 0px; 56 | border: 0px; 57 | border-radius: 0px; 58 | border-color: @selected; 59 | background-color: transparent; 60 | text-color: @foreground; 61 | children: [ "textbox-prompt-colon", "prompt"]; 62 | } 63 | 64 | textbox-prompt-colon { 65 | enabled: true; 66 | expand: false; 67 | str: ""; 68 | padding: 10px 13px; 69 | border-radius: 0px; 70 | background-color: @urgent; 71 | text-color: @background; 72 | } 73 | prompt { 74 | enabled: true; 75 | padding: 10px; 76 | border-radius: 0px; 77 | background-color: @active; 78 | text-color: @background; 79 | } 80 | 81 | /*****----- Message -----*****/ 82 | message { 83 | enabled: true; 84 | margin: 0px; 85 | padding: 10px; 86 | border: 0px solid; 87 | border-radius: 0px; 88 | border-color: @selected; 89 | background-color: @background-alt; 90 | text-color: @foreground; 91 | } 92 | textbox { 93 | background-color: inherit; 94 | text-color: inherit; 95 | vertical-align: 0.5; 96 | horizontal-align: 0.0; 97 | } 98 | 99 | /*****----- Listview -----*****/ 100 | listview { 101 | enabled: true; 102 | columns: 6; 103 | lines: 1; 104 | cycle: true; 105 | scrollbar: false; 106 | layout: vertical; 107 | 108 | spacing: 15px; 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: 23px 10px; 117 | border: 0px solid; 118 | border-radius: 10px; 119 | border-color: @selected; 120 | background-color: transparent; 121 | text-color: @foreground; 122 | cursor: pointer; 123 | } 124 | element-text { 125 | font: "feather 24"; 126 | background-color: transparent; 127 | text-color: inherit; 128 | cursor: inherit; 129 | vertical-align: 0.5; 130 | horizontal-align: 0.5; 131 | } 132 | 133 | element normal.normal, 134 | element alternate.normal { 135 | background-color: var(background-alt); 136 | text-color: var(foreground); 137 | } 138 | element normal.urgent, 139 | element alternate.urgent, 140 | element selected.active { 141 | background-color: var(urgent); 142 | text-color: var(background); 143 | } 144 | element normal.active, 145 | element alternate.active, 146 | element selected.urgent { 147 | background-color: var(active); 148 | text-color: var(background); 149 | } 150 | element selected.normal { 151 | background-color: var(selected); 152 | text-color: var(background); 153 | } 154 | -------------------------------------------------------------------------------- /rofi/applets/type-3/style-3.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "../shared/colors.rasi" 17 | @import "../shared/fonts.rasi" 18 | 19 | /* 20 | USE_ICON=YES 21 | */ 22 | 23 | /*****----- Main Window -----*****/ 24 | window { 25 | transparency: "real"; 26 | location: east; 27 | anchor: east; 28 | fullscreen: false; 29 | width: 120px; 30 | x-offset: -20px; 31 | y-offset: 0px; 32 | margin: 0px; 33 | padding: 0px; 34 | border: 0px solid; 35 | border-radius: 100%; 36 | border-color: @selected; 37 | cursor: "default"; 38 | background-color: @background; 39 | } 40 | 41 | /*****----- Main Box -----*****/ 42 | mainbox { 43 | enabled: true; 44 | spacing: 15px; 45 | margin: 0px; 46 | padding: 15px; 47 | background-color: transparent; 48 | children: [ "listview" ]; 49 | } 50 | 51 | /*****----- Inputbar -----*****/ 52 | inputbar { 53 | enabled: true; 54 | spacing: 10px; 55 | padding: 0px; 56 | border: 0px; 57 | border-radius: 0px; 58 | border-color: @selected; 59 | background-color: transparent; 60 | text-color: @foreground; 61 | children: [ "textbox-prompt-colon", "prompt"]; 62 | } 63 | 64 | textbox-prompt-colon { 65 | enabled: true; 66 | expand: false; 67 | str: ""; 68 | padding: 10px 13px; 69 | border-radius: 0px; 70 | background-color: @urgent; 71 | text-color: @background; 72 | } 73 | prompt { 74 | enabled: true; 75 | padding: 10px; 76 | border-radius: 0px; 77 | background-color: @active; 78 | text-color: @background; 79 | } 80 | 81 | /*****----- Message -----*****/ 82 | message { 83 | enabled: true; 84 | margin: 0px; 85 | padding: 10px; 86 | border: 0px solid; 87 | border-radius: 0px; 88 | border-color: @selected; 89 | background-color: @background-alt; 90 | text-color: @foreground; 91 | } 92 | textbox { 93 | background-color: inherit; 94 | text-color: inherit; 95 | vertical-align: 0.5; 96 | horizontal-align: 0.0; 97 | } 98 | 99 | /*****----- Listview -----*****/ 100 | listview { 101 | enabled: true; 102 | columns: 6; 103 | lines: 1; 104 | cycle: true; 105 | scrollbar: false; 106 | layout: vertical; 107 | 108 | spacing: 15px; 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: 23px 10px; 117 | border: 0px solid; 118 | border-radius: 100%; 119 | border-color: @selected; 120 | background-color: transparent; 121 | text-color: @foreground; 122 | cursor: pointer; 123 | } 124 | element-text { 125 | font: "feather 24"; 126 | background-color: transparent; 127 | text-color: inherit; 128 | cursor: inherit; 129 | vertical-align: 0.5; 130 | horizontal-align: 0.5; 131 | } 132 | 133 | element normal.normal, 134 | element alternate.normal { 135 | background-color: var(background-alt); 136 | text-color: var(foreground); 137 | } 138 | element normal.urgent, 139 | element alternate.urgent, 140 | element selected.active { 141 | background-color: var(urgent); 142 | text-color: var(background); 143 | } 144 | element normal.active, 145 | element alternate.active, 146 | element selected.urgent { 147 | background-color: var(active); 148 | text-color: var(background); 149 | } 150 | element selected.normal { 151 | background-color: var(selected); 152 | text-color: var(background); 153 | } 154 | -------------------------------------------------------------------------------- /rofi/colors/adapta.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #222D32FF; 11 | background-alt: #29353BFF; 12 | foreground: #B8C2C6FF; 13 | selected: #00BCD4FF; 14 | active: #21FF90FF; 15 | urgent: #FF4B60FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/arc.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #2F343FFF; 11 | background-alt: #383C4AFF; 12 | foreground: #BAC5D0FF; 13 | selected: #5294E2FF; 14 | active: #98C379FF; 15 | urgent: #E06B74FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/black.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #000000FF; 11 | background-alt: #101010FF; 12 | foreground: #FFFFFFFF; 13 | selected: #62AEEFFF; 14 | active: #98C379FF; 15 | urgent: #E06B74FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/catppuccin.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #1E1D2FFF; 11 | background-alt: #282839FF; 12 | foreground: #D9E0EEFF; 13 | selected: #7AA2F7FF; 14 | active: #ABE9B3FF; 15 | urgent: #F28FADFF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/cyberpunk.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #000B1EFF; 11 | background-alt: #0A1528FF; 12 | foreground: #0ABDC6FF; 13 | selected: #0ABDC6FF; 14 | active: #00FF00FF; 15 | urgent: #FF0000FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/dracula.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #1E1F29FF; 11 | background-alt: #282A36FF; 12 | foreground: #FFFFFFFF; 13 | selected: #BD93F9FF; 14 | active: #50FA7BFF; 15 | urgent: #FF5555FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/everforest.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #323D43FF; 11 | background-alt: #3C474DFF; 12 | foreground: #DAD1BEFF; 13 | selected: #7FBBB3FF; 14 | active: #A7C080FF; 15 | urgent: #E67E80FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/gruvbox.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #282828FF; 11 | background-alt: #353535FF; 12 | foreground: #EBDBB2FF; 13 | selected: #83A598FF; 14 | active: #B8BB26FF; 15 | urgent: #FB4934FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/lovelace.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #1D1F28FF; 11 | background-alt: #282A36FF; 12 | foreground: #FDFDFDFF; 13 | selected: #79E6F3FF; 14 | active: #5ADECDFF; 15 | urgent: #F37F97FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/my.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #121212; 11 | background-alt: #191919; 12 | foreground: #c8c8c8; 13 | selected: #3c81f7; 14 | active: #798347; 15 | urgent: #a55377; 16 | violet: #6d64d8; 17 | red: #a55377; 18 | } 19 | -------------------------------------------------------------------------------- /rofi/colors/navy.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #021B21FF; 11 | background-alt: #0C252BFF; 12 | foreground: #F2F1B9FF; 13 | selected: #44B5B1FF; 14 | active: #7CBF9EFF; 15 | urgent: #C2454EFF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/nord.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #2E3440FF; 11 | background-alt: #383E4AFF; 12 | foreground: #E5E9F0FF; 13 | selected: #81A1C1FF; 14 | active: #A3BE8CFF; 15 | urgent: #BF616AFF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/onedark.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #1E2127FF; 11 | background-alt: #282B31FF; 12 | foreground: #FFFFFFFF; 13 | selected: #61AFEFFF; 14 | active: #98C379FF; 15 | urgent: #E06C75FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/paper.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #F1F1F1FF; 11 | background-alt: #E0E0E0FF; 12 | foreground: #252525FF; 13 | selected: #008EC4FF; 14 | active: #10A778FF; 15 | urgent: #C30771FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/solarized.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #002B36FF; 11 | background-alt: #073642FF; 12 | foreground: #EEE8D5FF; 13 | selected: #268BD2FF; 14 | active: #859900FF; 15 | urgent: #DC322FFF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/tokyonight.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Levi Lacoss (fishyfishfish55) 4 | * Github : @fishyfishfish55 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #15161EFF; 11 | background-alt: #1A1B26FF; 12 | foreground: #C0CAF5FF; 13 | selected: #33467CFF; 14 | active: #414868FF; 15 | urgent: #F7768EFF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/colors/yousai.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | **/ 8 | 9 | * { 10 | background: #F5E7DEFF; 11 | background-alt: #EBDCD2FF; 12 | foreground: #34302DFF; 13 | selected: #D97742FF; 14 | active: #BF8F60FF; 15 | urgent: #B23636FF; 16 | } 17 | -------------------------------------------------------------------------------- /rofi/images/a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/a.png -------------------------------------------------------------------------------- /rofi/images/b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/b.png -------------------------------------------------------------------------------- /rofi/images/c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/c.png -------------------------------------------------------------------------------- /rofi/images/crop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/crop.png -------------------------------------------------------------------------------- /rofi/images/crop2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/crop2.png -------------------------------------------------------------------------------- /rofi/images/d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/d.png -------------------------------------------------------------------------------- /rofi/images/e.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/e.jpg -------------------------------------------------------------------------------- /rofi/images/f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/f.png -------------------------------------------------------------------------------- /rofi/images/flowers-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/flowers-1.png -------------------------------------------------------------------------------- /rofi/images/flowers-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/flowers-2.png -------------------------------------------------------------------------------- /rofi/images/flowers-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/flowers-3.png -------------------------------------------------------------------------------- /rofi/images/g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/g.png -------------------------------------------------------------------------------- /rofi/images/gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/gradient.png -------------------------------------------------------------------------------- /rofi/images/h.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/h.jpg -------------------------------------------------------------------------------- /rofi/images/i.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/i.jpg -------------------------------------------------------------------------------- /rofi/images/j.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/j.jpg -------------------------------------------------------------------------------- /rofi/images/k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/k.png -------------------------------------------------------------------------------- /rofi/images/paper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/paper.png -------------------------------------------------------------------------------- /rofi/images/power.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/power.png -------------------------------------------------------------------------------- /rofi/images/t.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/t.png -------------------------------------------------------------------------------- /rofi/images/user.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/user.jpeg -------------------------------------------------------------------------------- /rofi/images/wow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LoneWolf4713/auspicious-dots/58a0eb2a8da91021964a33275e8b6a4addaa45a9/rofi/images/wow.png -------------------------------------------------------------------------------- /rofi/launchers/type-1/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Launcher (Modi Drun, Run, File Browser, Window) 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | ## style-6 style-7 style-8 style-9 style-10 12 | ## style-11 style-12 style-13 style-14 style-15 13 | 14 | dir="$HOME/.config/rofi/launchers/type-1" 15 | theme='style-9' 16 | 17 | ## Run 18 | rofi \ 19 | -show drun \ 20 | -theme ${dir}/${theme}.rasi 21 | -------------------------------------------------------------------------------- /rofi/launchers/type-1/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/launchers/type-1/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "JetBrains Mono Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/launchers/type-2/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Launcher (Modi Drun, Run, File Browser, Window) 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | ## style-6 style-7 style-8 style-9 style-10 12 | ## style-11 style-12 style-13 style-14 style-15 13 | 14 | dir="$HOME/.config/rofi/launchers/type-2" 15 | theme='style-4' 16 | 17 | ## Run 18 | rofi \ 19 | -show drun \ 20 | -theme ${dir}/${theme}.rasi 21 | -------------------------------------------------------------------------------- /rofi/launchers/type-2/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/my.rasi" 19 | -------------------------------------------------------------------------------- /rofi/launchers/type-2/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "Iosevka Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/launchers/type-3/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Launcher (Modi Drun, Run, File Browser, Window) 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | ## style-6 style-7 style-8 style-9 style-10 12 | 13 | dir="$HOME/.config/rofi/launchers/type-3" 14 | theme='style-7' 15 | 16 | ## Run 17 | rofi \ 18 | -show drun \ 19 | -theme ${dir}/${theme}.rasi 20 | -------------------------------------------------------------------------------- /rofi/launchers/type-3/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/launchers/type-3/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "Iosevka Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/launchers/type-4/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Launcher (Modi Drun, Run, File Browser, Window) 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | ## style-6 style-7 style-8 style-9 style-10 12 | 13 | dir="$HOME/.config/rofi/launchers/type-4" 14 | theme='style-1' 15 | 16 | ## Run 17 | rofi \ 18 | -show drun \ 19 | -theme ${dir}/${theme}.rasi 20 | -------------------------------------------------------------------------------- /rofi/launchers/type-4/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/launchers/type-4/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "Iosevka Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/launchers/type-5/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Launcher (Modi Drun, Run, File Browser, Window) 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | 12 | dir="$HOME/.config/rofi/launchers/type-5" 13 | theme='style-4' 14 | 15 | ## Run 16 | rofi \ 17 | -show drun \ 18 | -theme ${dir}/${theme}.rasi 19 | -------------------------------------------------------------------------------- /rofi/launchers/type-6/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Launcher (Modi Drun, Run, File Browser, Window) 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | ## style-6 style-7 style-8 style-9 style-10 12 | 13 | dir="$HOME/.config/rofi/launchers/type-6" 14 | theme='style-1' 15 | 16 | ## Run 17 | rofi \ 18 | -show drun \ 19 | -theme ${dir}/${theme}.rasi 20 | -------------------------------------------------------------------------------- /rofi/launchers/type-7/launcher.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Launcher (Modi Drun, Run, File Browser, Window) 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | ## style-6 style-7 style-8 style-9 style-10 12 | 13 | dir="$HOME/.config/rofi/launchers/type-7" 14 | theme='style-8' 15 | 16 | ## Run 17 | rofi \ 18 | -show drun \ 19 | -theme ${dir}/${theme}.rasi 20 | -------------------------------------------------------------------------------- /rofi/launchers/type-7/nohup.out: -------------------------------------------------------------------------------- 1 | [2024-02-29 23:11:12.629] [info] Using configuration file /etc/xdg/waybar/config 2 | [2024-02-29 23:11:12.631] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop 3 | [2024-02-29 23:11:12.631] [info] Using CSS file /home/prtyksh/.config/waybar/style.css 4 | [2024-02-29 23:11:12.639] [warning] module sway/workspaces: Disabling module "sway/workspaces", Socket path is empty 5 | [2024-02-29 23:11:12.642] [warning] module sway/mode: Disabling module "sway/mode", Socket path is empty 6 | [2024-02-29 23:11:12.645] [warning] module sway/scratchpad: Disabling module "sway/scratchpad", Socket path is empty 7 | [2024-02-29 23:11:12.651] [warning] module sway/window: Disabling module "sway/window", Socket path is empty 8 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event0 (are you in the input group?): EACCES Permission denied 9 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event1 (are you in the input group?): EACCES Permission denied 10 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event2 (are you in the input group?): EACCES Permission denied 11 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event3 (are you in the input group?): EACCES Permission denied 12 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event4 (are you in the input group?): EACCES Permission denied 13 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event5 (are you in the input group?): EACCES Permission denied 14 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event6 (are you in the input group?): EACCES Permission denied 15 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event7 (are you in the input group?): EACCES Permission denied 16 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event8 (are you in the input group?): EACCES Permission denied 17 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event9 (are you in the input group?): EACCES Permission denied 18 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event10 (are you in the input group?): EACCES Permission denied 19 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event11 (are you in the input group?): EACCES Permission denied 20 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event12 (are you in the input group?): EACCES Permission denied 21 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/event13 (are you in the input group?): EACCES Permission denied 22 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/mice (are you in the input group?): EACCES Permission denied 23 | [2024-02-29 23:11:12.658] [warning] Can't open /dev/input/mouse0 (are you in the input group?): EACCES Permission denied 24 | [2024-02-29 23:11:12.658] [warning] module keyboard-state: Disabling module "keyboard-state", Failed to find keyboard device: EACCES Permission denied 25 | [2024-02-29 23:11:12.661] [warning] module sway/language: Disabling module "sway/language", Socket path is empty 26 | [2024-02-29 23:11:12.662] [warning] No battery named BAT2 27 | [2024-02-29 23:11:12.786] [info] Bar configured (width: 1920, height: 30) for output: eDP-1 28 | [2024-02-29 23:11:13.656] [error] mpd: Failed to connect to MPD: Connection refused 29 | [2024-02-29 23:11:15.657] [error] mpd: Failed to connect to MPD: Connection refused 30 | [2024-02-29 23:11:17.658] [error] mpd: Failed to connect to MPD: Connection refused 31 | [2024-02-29 23:11:19.661] [error] mpd: Failed to connect to MPD: Connection refused 32 | [2024-02-29 23:11:21.662] [error] mpd: Failed to connect to MPD: Connection refused 33 | [2024-02-29 23:11:23.665] [error] mpd: Failed to connect to MPD: Connection refused 34 | [2024-02-29 23:11:25.666] [error] mpd: Failed to connect to MPD: Connection refused 35 | [2024-02-29 23:11:27.668] [error] mpd: Failed to connect to MPD: Connection refused 36 | [2024-02-29 23:11:29.671] [error] mpd: Failed to connect to MPD: Connection refused 37 | [2024-02-29 23:11:31.674] [error] mpd: Failed to connect to MPD: Connection refused 38 | [2024-02-29 23:12:31.860] [info] Using configuration file /home/prtyksh/.config/waybar/config-hypr 39 | [2024-02-29 23:12:31.862] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop 40 | [2024-02-29 23:12:31.862] [info] Using CSS file /home/prtyksh/.config/waybar/style.css 41 | [2024-02-29 23:12:31.868] [warning] Mapping is not an object 42 | [2024-02-29 23:12:31.868] [info] Hyprland IPC starting 43 | [2024-02-29 23:12:32.020] [info] Bar configured (width: 1900, height: 39) for output: eDP-1 44 | -------------------------------------------------------------------------------- /rofi/launchpad.rasi: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * MACOS LAUNCHPAD LIKE THEME FOR ROFI 3 | * User : LR-Tech 4 | * Theme Repo : https://github.com/lr-tech/rofi-themes-collection 5 | *******************************************************************************/ 6 | 7 | * { 8 | font: "Montserrat 9"; 9 | 10 | bg0: #24242480; 11 | bg1: #363636; 12 | bg2: #f5f5f520; 13 | bg3: #f5f5f540; 14 | bg4: #0860f2E6; 15 | 16 | fg0: #f5f5f5; 17 | fg1: #f5f5f580; 18 | 19 | background-color: transparent; 20 | text-color: @fg0; 21 | padding: 0px; 22 | margin: 0px; 23 | } 24 | 25 | window { 26 | fullscreen: true; 27 | padding: 1em; 28 | background-color: @bg0; 29 | } 30 | 31 | mainbox { 32 | padding: 8px; 33 | } 34 | 35 | inputbar { 36 | background-color: @bg2; 37 | 38 | margin: 0px calc( 50% - 120px ); 39 | padding: 2px 4px; 40 | spacing: 4px; 41 | 42 | border: 1px; 43 | border-radius: 2px; 44 | border-color: @bg3; 45 | 46 | children: [icon-search,entry]; 47 | } 48 | 49 | prompt { 50 | enabled: false; 51 | } 52 | 53 | icon-search { 54 | expand: false; 55 | filename: "search"; 56 | vertical-align: 0.5; 57 | } 58 | 59 | entry { 60 | placeholder: "Search"; 61 | placeholder-color: @bg2; 62 | } 63 | 64 | listview { 65 | margin: 48px calc( 50% - 560px ); 66 | spacing: 48px; 67 | columns: 6; 68 | fixed-columns: true; 69 | } 70 | 71 | element, element-text, element-icon { 72 | cursor: pointer; 73 | } 74 | 75 | element { 76 | padding: 8px; 77 | spacing: 4px; 78 | 79 | orientation: vertical; 80 | border-radius: 16px; 81 | } 82 | 83 | element selected { 84 | background-color: @bg4; 85 | } 86 | 87 | element-icon { 88 | size: 4em; 89 | horizontal-align: 0.5; 90 | } 91 | 92 | element-text { 93 | horizontal-align: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /rofi/powermenu/type-1/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Power Menu 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | 12 | # Current Theme 13 | dir="$HOME/.config/rofi/powermenu/type-1" 14 | theme='style-1' 15 | 16 | # CMDs 17 | uptime="`uptime -p | sed -e 's/up //g'`" 18 | host=`hostname` 19 | 20 | # Options 21 | shutdown=' Shutdown' 22 | reboot=' Reboot' 23 | lock=' Lock' 24 | suspend=' Suspend' 25 | logout=' Logout' 26 | yes=' Yes' 27 | no=' No' 28 | 29 | # Rofi CMD 30 | rofi_cmd() { 31 | rofi -dmenu \ 32 | -p "$host" \ 33 | -mesg "Uptime: $uptime" \ 34 | -theme ${dir}/${theme}.rasi 35 | } 36 | 37 | # Confirmation CMD 38 | confirm_cmd() { 39 | rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 250px;}' \ 40 | -theme-str 'mainbox {children: [ "message", "listview" ];}' \ 41 | -theme-str 'listview {columns: 2; lines: 1;}' \ 42 | -theme-str 'element-text {horizontal-align: 0.5;}' \ 43 | -theme-str 'textbox {horizontal-align: 0.5;}' \ 44 | -dmenu \ 45 | -p 'Confirmation' \ 46 | -mesg 'Are you Sure?' \ 47 | -theme ${dir}/${theme}.rasi 48 | } 49 | 50 | # Ask for confirmation 51 | confirm_exit() { 52 | echo -e "$yes\n$no" | confirm_cmd 53 | } 54 | 55 | # Pass variables to rofi dmenu 56 | run_rofi() { 57 | echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd 58 | } 59 | 60 | # Execute Command 61 | run_cmd() { 62 | selected="$(confirm_exit)" 63 | if [[ "$selected" == "$yes" ]]; then 64 | if [[ $1 == '--shutdown' ]]; then 65 | systemctl poweroff 66 | elif [[ $1 == '--reboot' ]]; then 67 | systemctl reboot 68 | elif [[ $1 == '--suspend' ]]; then 69 | mpc -q pause 70 | amixer set Master mute 71 | systemctl suspend 72 | elif [[ $1 == '--logout' ]]; then 73 | if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then 74 | openbox --exit 75 | elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then 76 | bspc quit 77 | elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then 78 | i3-msg exit 79 | elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then 80 | qdbus org.kde.ksmserver /KSMServer logout 0 0 0 81 | fi 82 | fi 83 | else 84 | exit 0 85 | fi 86 | } 87 | 88 | # Actions 89 | chosen="$(run_rofi)" 90 | case ${chosen} in 91 | $shutdown) 92 | run_cmd --shutdown 93 | ;; 94 | $reboot) 95 | run_cmd --reboot 96 | ;; 97 | $lock) 98 | if [[ -x '/usr/bin/betterlockscreen' ]]; then 99 | betterlockscreen -l 100 | elif [[ -x '/usr/bin/i3lock' ]]; then 101 | i3lock 102 | fi 103 | ;; 104 | $suspend) 105 | run_cmd --suspend 106 | ;; 107 | $logout) 108 | run_cmd --logout 109 | ;; 110 | esac 111 | -------------------------------------------------------------------------------- /rofi/powermenu/type-1/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/powermenu/type-1/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "JetBrains Mono Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/powermenu/type-2/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Power Menu 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | ## style-6 style-7 style-8 style-9 style-10 12 | 13 | # Current Theme 14 | dir="$HOME/.config/rofi/powermenu/type-2" 15 | theme='style-1' 16 | 17 | # CMDs 18 | uptime="`uptime -p | sed -e 's/up //g'`" 19 | host=`hostname` 20 | 21 | # Options 22 | shutdown='' 23 | reboot='' 24 | lock='' 25 | suspend='' 26 | logout='' 27 | yes='' 28 | no='' 29 | 30 | # Rofi CMD 31 | rofi_cmd() { 32 | rofi -dmenu \ 33 | -p "Uptime: $uptime" \ 34 | -mesg "Uptime: $uptime" \ 35 | -theme ${dir}/${theme}.rasi 36 | } 37 | 38 | # Confirmation CMD 39 | confirm_cmd() { 40 | rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 350px;}' \ 41 | -theme-str 'mainbox {children: [ "message", "listview" ];}' \ 42 | -theme-str 'listview {columns: 2; lines: 1;}' \ 43 | -theme-str 'element-text {horizontal-align: 0.5;}' \ 44 | -theme-str 'textbox {horizontal-align: 0.5;}' \ 45 | -dmenu \ 46 | -p 'Confirmation' \ 47 | -mesg 'Are you Sure?' \ 48 | -theme ${dir}/${theme}.rasi 49 | } 50 | 51 | # Ask for confirmation 52 | confirm_exit() { 53 | echo -e "$yes\n$no" | confirm_cmd 54 | } 55 | 56 | # Pass variables to rofi dmenu 57 | run_rofi() { 58 | echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd 59 | } 60 | 61 | # Execute Command 62 | run_cmd() { 63 | selected="$(confirm_exit)" 64 | if [[ "$selected" == "$yes" ]]; then 65 | if [[ $1 == '--shutdown' ]]; then 66 | systemctl poweroff 67 | elif [[ $1 == '--reboot' ]]; then 68 | systemctl reboot 69 | elif [[ $1 == '--suspend' ]]; then 70 | mpc -q pause 71 | amixer set Master mute 72 | systemctl suspend 73 | elif [[ $1 == '--logout' ]]; then 74 | if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then 75 | openbox --exit 76 | elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then 77 | bspc quit 78 | elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then 79 | i3-msg exit 80 | elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then 81 | qdbus org.kde.ksmserver /KSMServer logout 0 0 0 82 | fi 83 | fi 84 | else 85 | exit 0 86 | fi 87 | } 88 | 89 | # Actions 90 | chosen="$(run_rofi)" 91 | case ${chosen} in 92 | $shutdown) 93 | run_cmd --shutdown 94 | ;; 95 | $reboot) 96 | run_cmd --reboot 97 | ;; 98 | $lock) 99 | if [[ -x '/usr/bin/betterlockscreen' ]]; then 100 | betterlockscreen -l 101 | elif [[ -x '/usr/bin/i3lock' ]]; then 102 | i3lock 103 | fi 104 | ;; 105 | $suspend) 106 | run_cmd --suspend 107 | ;; 108 | $logout) 109 | run_cmd --logout 110 | ;; 111 | esac 112 | -------------------------------------------------------------------------------- /rofi/powermenu/type-2/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/powermenu/type-2/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "JetBrains Mono Nerd Font 10"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/powermenu/type-3/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Power Menu 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | 12 | # Current Theme 13 | dir="$HOME/.config/rofi/powermenu/type-3" 14 | theme='style-5' 15 | 16 | # CMDs 17 | uptime="`uptime -p | sed -e 's/up //g'`" 18 | host=`hostname` 19 | 20 | # Options 21 | shutdown='' 22 | reboot='' 23 | lock='' 24 | suspend='' 25 | logout='' 26 | yes='' 27 | no='' 28 | 29 | # Rofi CMD 30 | rofi_cmd() { 31 | rofi -dmenu \ 32 | -p "Uptime: $uptime" \ 33 | -mesg "Uptime: $uptime" \ 34 | -theme ${dir}/${theme}.rasi 35 | } 36 | 37 | # Confirmation CMD 38 | confirm_cmd() { 39 | rofi -dmenu \ 40 | -p 'Confirmation' \ 41 | -mesg 'Are you Sure?' \ 42 | -theme ${dir}/shared/confirm.rasi 43 | } 44 | 45 | # Ask for confirmation 46 | confirm_exit() { 47 | echo -e "$yes\n$no" | confirm_cmd 48 | } 49 | 50 | # Pass variables to rofi dmenu 51 | run_rofi() { 52 | echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd 53 | } 54 | 55 | # Execute Command 56 | run_cmd() { 57 | selected="$(confirm_exit)" 58 | if [[ "$selected" == "$yes" ]]; then 59 | if [[ $1 == '--shutdown' ]]; then 60 | systemctl poweroff 61 | elif [[ $1 == '--reboot' ]]; then 62 | systemctl reboot 63 | elif [[ $1 == '--suspend' ]]; then 64 | mpc -q pause 65 | amixer set Master mute 66 | systemctl suspend 67 | elif [[ $1 == '--logout' ]]; then 68 | if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then 69 | openbox --exit 70 | elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then 71 | bspc quit 72 | elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then 73 | i3-msg exit 74 | elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then 75 | qdbus org.kde.ksmserver /KSMServer logout 0 0 0 76 | fi 77 | fi 78 | else 79 | exit 0 80 | fi 81 | } 82 | 83 | # Actions 84 | chosen="$(run_rofi)" 85 | case ${chosen} in 86 | $shutdown) 87 | run_cmd --shutdown 88 | ;; 89 | $reboot) 90 | run_cmd --reboot 91 | ;; 92 | $lock) 93 | if [[ -x '/usr/bin/betterlockscreen' ]]; then 94 | betterlockscreen -l 95 | elif [[ -x '/usr/bin/i3lock' ]]; then 96 | i3lock 97 | fi 98 | ;; 99 | $suspend) 100 | run_cmd --suspend 101 | ;; 102 | $logout) 103 | run_cmd --logout 104 | ;; 105 | esac 106 | -------------------------------------------------------------------------------- /rofi/powermenu/type-3/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/powermenu/type-3/shared/confirm.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "colors.rasi" 17 | @import "fonts.rasi" 18 | 19 | /*****----- Main Window -----*****/ 20 | window { 21 | location: center; 22 | anchor: center; 23 | fullscreen: false; 24 | width: 500px; 25 | border-radius: 20px; 26 | cursor: "default"; 27 | background-color: @background; 28 | } 29 | 30 | /*****----- Main Box -----*****/ 31 | mainbox { 32 | spacing: 30px; 33 | padding: 30px; 34 | background-color: transparent; 35 | children: [ "message", "listview" ]; 36 | } 37 | 38 | /*****----- Message -----*****/ 39 | message { 40 | margin: 0px; 41 | padding: 20px; 42 | border-radius: 20px; 43 | background-color: @background-alt; 44 | text-color: @foreground; 45 | } 46 | textbox { 47 | background-color: inherit; 48 | text-color: inherit; 49 | vertical-align: 0.5; 50 | horizontal-align: 0.5; 51 | placeholder-color: @foreground; 52 | blink: true; 53 | markup: true; 54 | } 55 | 56 | /*****----- Listview -----*****/ 57 | listview { 58 | columns: 2; 59 | lines: 1; 60 | cycle: true; 61 | dynamic: true; 62 | scrollbar: false; 63 | layout: vertical; 64 | reverse: false; 65 | fixed-height: true; 66 | fixed-columns: true; 67 | 68 | spacing: 30px; 69 | background-color: transparent; 70 | text-color: @foreground; 71 | cursor: "default"; 72 | } 73 | 74 | /*****----- Elements -----*****/ 75 | element { 76 | padding: 60px 10px; 77 | border-radius: 20px; 78 | background-color: @background-alt; 79 | text-color: @foreground; 80 | cursor: pointer; 81 | } 82 | element-text { 83 | font: "feather 48"; 84 | background-color: transparent; 85 | text-color: inherit; 86 | cursor: inherit; 87 | vertical-align: 0.5; 88 | horizontal-align: 0.5; 89 | } 90 | element selected.normal { 91 | background-color: var(selected); 92 | text-color: var(background); 93 | } 94 | -------------------------------------------------------------------------------- /rofi/powermenu/type-3/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "JetBrains Mono Nerd Font 12"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/powermenu/type-4/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Power Menu 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | 12 | # Current Theme 13 | dir="$HOME/.config/rofi/powermenu/type-4" 14 | theme='style-5' 15 | 16 | # CMDs 17 | uptime="`uptime -p | sed -e 's/up //g'`" 18 | host=`hostname` 19 | 20 | # Options 21 | shutdown='' 22 | reboot='' 23 | lock='' 24 | suspend='' 25 | logout='' 26 | yes='' 27 | no='' 28 | 29 | # Rofi CMD 30 | rofi_cmd() { 31 | rofi -dmenu \ 32 | -p "Goodbye ${USER}" \ 33 | -mesg "Uptime: $uptime" \ 34 | -theme ${dir}/${theme}.rasi 35 | } 36 | 37 | # Confirmation CMD 38 | confirm_cmd() { 39 | rofi -dmenu \ 40 | -p 'Confirmation' \ 41 | -mesg 'Are you Sure?' \ 42 | -theme ${dir}/shared/confirm.rasi 43 | } 44 | 45 | # Ask for confirmation 46 | confirm_exit() { 47 | echo -e "$yes\n$no" | confirm_cmd 48 | } 49 | 50 | # Pass variables to rofi dmenu 51 | run_rofi() { 52 | echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd 53 | } 54 | 55 | # Execute Command 56 | run_cmd() { 57 | selected="$(confirm_exit)" 58 | if [[ "$selected" == "$yes" ]]; then 59 | if [[ $1 == '--shutdown' ]]; then 60 | systemctl poweroff 61 | elif [[ $1 == '--reboot' ]]; then 62 | systemctl reboot 63 | elif [[ $1 == '--suspend' ]]; then 64 | mpc -q pause 65 | amixer set Master mute 66 | systemctl suspend 67 | elif [[ $1 == '--logout' ]]; then 68 | if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then 69 | openbox --exit 70 | elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then 71 | bspc quit 72 | elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then 73 | i3-msg exit 74 | elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then 75 | qdbus org.kde.ksmserver /KSMServer logout 0 0 0 76 | fi 77 | fi 78 | else 79 | exit 0 80 | fi 81 | } 82 | 83 | # Actions 84 | chosen="$(run_rofi)" 85 | case ${chosen} in 86 | $shutdown) 87 | run_cmd --shutdown 88 | ;; 89 | $reboot) 90 | run_cmd --reboot 91 | ;; 92 | $lock) 93 | if [[ -x '/usr/bin/betterlockscreen' ]]; then 94 | betterlockscreen -l 95 | elif [[ -x '/usr/bin/i3lock' ]]; then 96 | i3lock 97 | fi 98 | ;; 99 | $suspend) 100 | run_cmd --suspend 101 | ;; 102 | $logout) 103 | run_cmd --logout 104 | ;; 105 | esac 106 | -------------------------------------------------------------------------------- /rofi/powermenu/type-4/shared/colors.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Colors 7 | * 8 | * Available Colors Schemes 9 | * 10 | * adapta catppuccin everforest navy paper 11 | * arc cyberpunk gruvbox nord solarized 12 | * black dracula lovelace onedark yousai 13 | * 14 | **/ 15 | 16 | /* Import color-scheme from `colors` directory */ 17 | 18 | @import "~/.config/rofi/colors/onedark.rasi" 19 | -------------------------------------------------------------------------------- /rofi/powermenu/type-4/shared/confirm.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | @import "colors.rasi" 17 | @import "fonts.rasi" 18 | 19 | /*****----- Main Window -----*****/ 20 | window { 21 | location: center; 22 | anchor: center; 23 | fullscreen: false; 24 | width: 500px; 25 | border-radius: 20px; 26 | cursor: "default"; 27 | background-color: @background; 28 | } 29 | 30 | /*****----- Main Box -----*****/ 31 | mainbox { 32 | spacing: 30px; 33 | padding: 30px; 34 | background-color: transparent; 35 | children: [ "message", "listview" ]; 36 | } 37 | 38 | /*****----- Message -----*****/ 39 | message { 40 | margin: 0px; 41 | padding: 20px; 42 | border-radius: 20px; 43 | background-color: @background-alt; 44 | text-color: @foreground; 45 | } 46 | textbox { 47 | background-color: inherit; 48 | text-color: inherit; 49 | vertical-align: 0.5; 50 | horizontal-align: 0.5; 51 | placeholder-color: @foreground; 52 | blink: true; 53 | markup: true; 54 | } 55 | 56 | /*****----- Listview -----*****/ 57 | listview { 58 | columns: 2; 59 | lines: 1; 60 | cycle: true; 61 | dynamic: true; 62 | scrollbar: false; 63 | layout: vertical; 64 | reverse: false; 65 | fixed-height: true; 66 | fixed-columns: true; 67 | 68 | spacing: 30px; 69 | background-color: transparent; 70 | text-color: @foreground; 71 | cursor: "default"; 72 | } 73 | 74 | /*****----- Elements -----*****/ 75 | element { 76 | padding: 60px 10px; 77 | border-radius: 20px; 78 | background-color: @background-alt; 79 | text-color: @foreground; 80 | cursor: pointer; 81 | } 82 | element-text { 83 | font: "feather 48"; 84 | background-color: transparent; 85 | text-color: inherit; 86 | cursor: inherit; 87 | vertical-align: 0.5; 88 | horizontal-align: 0.5; 89 | } 90 | element selected.normal { 91 | background-color: var(selected); 92 | text-color: var(background); 93 | } 94 | -------------------------------------------------------------------------------- /rofi/powermenu/type-4/shared/fonts.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Fonts 7 | * 8 | **/ 9 | 10 | * { 11 | font: "JetBrains Mono Nerd Font 12"; 12 | } 13 | -------------------------------------------------------------------------------- /rofi/powermenu/type-4/style-1.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | /* Resolution : 1920x1080 */ 18 | mainbox-spacing: 100px; 19 | mainbox-margin: 100px 300px; 20 | message-margin: 0px 400px; 21 | message-padding: 15px; 22 | message-border-radius: 100%; 23 | listview-spacing: 50px; 24 | element-padding: 55px 60px; 25 | element-border-radius: 100%; 26 | 27 | prompt-font: "JetBrains Mono Nerd Font Bold Italic 64"; 28 | textbox-font: "JetBrains Mono Nerd Font 16"; 29 | element-text-font: "feather 64"; 30 | 31 | background-window: black/5%; 32 | background-normal: white/5%; 33 | background-selected: white/15%; 34 | foreground-normal: white; 35 | foreground-selected: white; 36 | } 37 | 38 | /*****----- Main Window -----*****/ 39 | window { 40 | transparency: "real"; 41 | location: center; 42 | anchor: center; 43 | fullscreen: true; 44 | cursor: "default"; 45 | background-color: var(background-window); 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | enabled: true; 51 | spacing: var(mainbox-spacing); 52 | margin: var(mainbox-margin); 53 | background-color: transparent; 54 | children: [ "dummy", "inputbar", "listview", "message", "dummy" ]; 55 | } 56 | 57 | /*****----- Inputbar -----*****/ 58 | inputbar { 59 | enabled: true; 60 | background-color: transparent; 61 | children: [ "dummy", "prompt", "dummy"]; 62 | } 63 | 64 | dummy { 65 | background-color: transparent; 66 | } 67 | 68 | prompt { 69 | enabled: true; 70 | font: var(prompt-font); 71 | background-color: transparent; 72 | text-color: var(foreground-normal); 73 | } 74 | 75 | /*****----- Message -----*****/ 76 | message { 77 | enabled: true; 78 | margin: var(message-margin); 79 | padding: var(message-padding); 80 | border-radius: var(message-border-radius); 81 | background-color: var(background-normal); 82 | text-color: var(foreground-normal); 83 | } 84 | textbox { 85 | font: var(textbox-font); 86 | background-color: transparent; 87 | text-color: inherit; 88 | vertical-align: 0.5; 89 | horizontal-align: 0.5; 90 | } 91 | 92 | /*****----- Listview -----*****/ 93 | listview { 94 | enabled: true; 95 | expand: false; 96 | columns: 5; 97 | lines: 1; 98 | cycle: true; 99 | dynamic: true; 100 | scrollbar: false; 101 | layout: vertical; 102 | reverse: false; 103 | fixed-height: true; 104 | fixed-columns: true; 105 | 106 | spacing: var(listview-spacing); 107 | background-color: transparent; 108 | cursor: "default"; 109 | } 110 | 111 | /*****----- Elements -----*****/ 112 | element { 113 | enabled: true; 114 | padding: var(element-padding); 115 | border-radius: var(element-border-radius); 116 | background-color: var(background-normal); 117 | text-color: var(foreground-normal); 118 | cursor: pointer; 119 | } 120 | element-text { 121 | font: var(element-text-font); 122 | background-color: transparent; 123 | text-color: inherit; 124 | cursor: inherit; 125 | vertical-align: 0.5; 126 | horizontal-align: 0.5; 127 | } 128 | element selected.normal { 129 | background-color: var(background-selected); 130 | text-color: var(foreground-selected); 131 | } 132 | -------------------------------------------------------------------------------- /rofi/powermenu/type-4/style-2.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | /* Resolution : 1920x1080 */ 18 | mainbox-spacing: 100px; 19 | mainbox-margin: 150px 400px; 20 | message-margin: 0px 350px; 21 | message-padding: 15px; 22 | message-border-radius: 15px; 23 | listview-spacing: 50px; 24 | element-padding: 35px 40px; 25 | element-border-radius: 20px; 26 | 27 | prompt-font: "Iosevka Nerd Font Bold 72"; 28 | textbox-font: "Iosevka Nerd Font 14"; 29 | element-text-font: "feather 64"; 30 | 31 | background-window: black/30%; 32 | background-normal: white/5%; 33 | background-selected: white/15%; 34 | foreground-normal: white; 35 | foreground-selected: white; 36 | } 37 | 38 | /*****----- Main Window -----*****/ 39 | window { 40 | transparency: "real"; 41 | location: center; 42 | anchor: center; 43 | fullscreen: true; 44 | cursor: "default"; 45 | background-color: var(background-window); 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | enabled: true; 51 | spacing: var(mainbox-spacing); 52 | margin: var(mainbox-margin); 53 | background-color: transparent; 54 | children: [ "dummy", "inputbar", "listview", "message", "dummy" ]; 55 | } 56 | 57 | /*****----- Inputbar -----*****/ 58 | inputbar { 59 | enabled: true; 60 | background-color: transparent; 61 | children: [ "dummy", "prompt", "dummy"]; 62 | } 63 | 64 | dummy { 65 | background-color: transparent; 66 | } 67 | 68 | prompt { 69 | enabled: true; 70 | font: var(prompt-font); 71 | background-color: transparent; 72 | text-color: var(foreground-normal); 73 | } 74 | 75 | /*****----- Message -----*****/ 76 | message { 77 | enabled: true; 78 | margin: var(message-margin); 79 | padding: var(message-padding); 80 | border-radius: var(message-border-radius); 81 | background-color: var(background-normal); 82 | text-color: var(foreground-normal); 83 | } 84 | textbox { 85 | font: var(textbox-font); 86 | background-color: transparent; 87 | text-color: inherit; 88 | vertical-align: 0.5; 89 | horizontal-align: 0.5; 90 | } 91 | 92 | /*****----- Listview -----*****/ 93 | listview { 94 | enabled: true; 95 | expand: false; 96 | columns: 5; 97 | lines: 1; 98 | cycle: true; 99 | dynamic: true; 100 | scrollbar: false; 101 | layout: vertical; 102 | reverse: false; 103 | fixed-height: true; 104 | fixed-columns: true; 105 | 106 | spacing: var(listview-spacing); 107 | background-color: transparent; 108 | cursor: "default"; 109 | } 110 | 111 | /*****----- Elements -----*****/ 112 | element { 113 | enabled: true; 114 | padding: var(element-padding); 115 | border-radius: var(element-border-radius); 116 | background-color: var(background-normal); 117 | text-color: var(foreground-normal); 118 | cursor: pointer; 119 | } 120 | element-text { 121 | font: var(element-text-font); 122 | background-color: transparent; 123 | text-color: inherit; 124 | cursor: inherit; 125 | vertical-align: 0.5; 126 | horizontal-align: 0.5; 127 | } 128 | element selected.normal { 129 | background-color: var(background-selected); 130 | text-color: var(foreground-selected); 131 | } 132 | -------------------------------------------------------------------------------- /rofi/powermenu/type-4/style-3.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | /* Resolution : 1920x1080 */ 18 | mainbox-spacing: 50px; 19 | mainbox-margin: 50px; 20 | message-margin: 0px 300px; 21 | message-padding: 12px; 22 | message-border-radius: 12px; 23 | listview-spacing: 25px; 24 | element-padding: 35px 0px; 25 | element-border-radius: 60px; 26 | 27 | prompt-font: "Iosevka Nerd Font Bold 48"; 28 | textbox-font: "Iosevka Nerd Font 12"; 29 | element-text-font: "feather 48"; 30 | 31 | background-window: black/20%; 32 | background-normal: white/5%; 33 | background-selected: white/15%; 34 | foreground-normal: white; 35 | foreground-selected: white; 36 | } 37 | 38 | /*****----- Main Window -----*****/ 39 | window { 40 | transparency: "real"; 41 | location: center; 42 | anchor: center; 43 | fullscreen: false; 44 | width: 1000px; 45 | border-radius: 50px; 46 | cursor: "default"; 47 | background-color: var(background-window); 48 | } 49 | 50 | /*****----- Main Box -----*****/ 51 | mainbox { 52 | enabled: true; 53 | spacing: var(mainbox-spacing); 54 | margin: var(mainbox-margin); 55 | background-color: transparent; 56 | children: [ "dummy", "inputbar", "listview", "message", "dummy" ]; 57 | } 58 | 59 | /*****----- Inputbar -----*****/ 60 | inputbar { 61 | enabled: true; 62 | background-color: transparent; 63 | children: [ "dummy", "prompt", "dummy"]; 64 | } 65 | 66 | dummy { 67 | background-color: transparent; 68 | } 69 | 70 | prompt { 71 | enabled: true; 72 | font: var(prompt-font); 73 | background-color: transparent; 74 | text-color: var(foreground-normal); 75 | } 76 | 77 | /*****----- Message -----*****/ 78 | message { 79 | enabled: true; 80 | margin: var(message-margin); 81 | padding: var(message-padding); 82 | border-radius: var(message-border-radius); 83 | background-color: var(background-normal); 84 | text-color: var(foreground-normal); 85 | } 86 | textbox { 87 | font: var(textbox-font); 88 | background-color: transparent; 89 | text-color: inherit; 90 | vertical-align: 0.5; 91 | horizontal-align: 0.5; 92 | } 93 | 94 | /*****----- Listview -----*****/ 95 | listview { 96 | enabled: true; 97 | expand: false; 98 | columns: 5; 99 | lines: 1; 100 | cycle: true; 101 | dynamic: true; 102 | scrollbar: false; 103 | layout: vertical; 104 | reverse: false; 105 | fixed-height: true; 106 | fixed-columns: true; 107 | 108 | spacing: var(listview-spacing); 109 | background-color: transparent; 110 | cursor: "default"; 111 | } 112 | 113 | /*****----- Elements -----*****/ 114 | element { 115 | enabled: true; 116 | padding: var(element-padding); 117 | border-radius: var(element-border-radius); 118 | background-color: var(background-normal); 119 | text-color: var(foreground-normal); 120 | cursor: pointer; 121 | } 122 | element-text { 123 | font: var(element-text-font); 124 | background-color: transparent; 125 | text-color: inherit; 126 | cursor: inherit; 127 | vertical-align: 0.5; 128 | horizontal-align: 0.5; 129 | } 130 | element selected.normal { 131 | background-color: var(background-selected); 132 | text-color: var(foreground-selected); 133 | } 134 | -------------------------------------------------------------------------------- /rofi/powermenu/type-5/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Power Menu 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | 12 | # Current Theme 13 | dir="$HOME/.config/rofi/powermenu/type-5" 14 | theme='style-1' 15 | 16 | # CMDs 17 | lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`" 18 | uptime="`uptime -p | sed -e 's/up //g'`" 19 | host=`hostname` 20 | 21 | # Options 22 | hibernate='' 23 | shutdown='' 24 | reboot='' 25 | lock='' 26 | suspend='' 27 | logout='' 28 | yes='' 29 | no='' 30 | 31 | # Rofi CMD 32 | rofi_cmd() { 33 | rofi -dmenu \ 34 | -p " $USER@$host" \ 35 | -mesg " Last Login: $lastlogin |  Uptime: $uptime" \ 36 | -theme ${dir}/${theme}.rasi 37 | } 38 | 39 | # Confirmation CMD 40 | confirm_cmd() { 41 | rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 350px;}' \ 42 | -theme-str 'mainbox {children: [ "message", "listview" ];}' \ 43 | -theme-str 'listview {columns: 2; lines: 1;}' \ 44 | -theme-str 'element-text {horizontal-align: 0.5;}' \ 45 | -theme-str 'textbox {horizontal-align: 0.5;}' \ 46 | -dmenu \ 47 | -p 'Confirmation' \ 48 | -mesg 'Are you Sure?' \ 49 | -theme ${dir}/${theme}.rasi 50 | } 51 | 52 | # Ask for confirmation 53 | confirm_exit() { 54 | echo -e "$yes\n$no" | confirm_cmd 55 | } 56 | 57 | # Pass variables to rofi dmenu 58 | run_rofi() { 59 | echo -e "$lock\n$suspend\n$logout\n$hibernate\n$reboot\n$shutdown" | rofi_cmd 60 | } 61 | 62 | # Execute Command 63 | run_cmd() { 64 | selected="$(confirm_exit)" 65 | if [[ "$selected" == "$yes" ]]; then 66 | if [[ $1 == '--shutdown' ]]; then 67 | systemctl poweroff 68 | elif [[ $1 == '--reboot' ]]; then 69 | systemctl reboot 70 | elif [[ $1 == '--hibernate' ]]; then 71 | systemctl hibernate 72 | elif [[ $1 == '--suspend' ]]; then 73 | mpc -q pause 74 | amixer set Master mute 75 | systemctl suspend 76 | elif [[ $1 == '--logout' ]]; then 77 | if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then 78 | openbox --exit 79 | elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then 80 | bspc quit 81 | elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then 82 | i3-msg exit 83 | elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then 84 | qdbus org.kde.ksmserver /KSMServer logout 0 0 0 85 | fi 86 | fi 87 | else 88 | exit 0 89 | fi 90 | } 91 | 92 | # Actions 93 | chosen="$(run_rofi)" 94 | case ${chosen} in 95 | $shutdown) 96 | run_cmd --shutdown 97 | ;; 98 | $reboot) 99 | run_cmd --reboot 100 | ;; 101 | $hibernate) 102 | run_cmd --hibernate 103 | ;; 104 | $lock) 105 | if [[ -x '/usr/bin/betterlockscreen' ]]; then 106 | betterlockscreen -l 107 | elif [[ -x '/usr/bin/i3lock' ]]; then 108 | i3lock 109 | fi 110 | ;; 111 | $suspend) 112 | run_cmd --suspend 113 | ;; 114 | $logout) 115 | run_cmd --logout 116 | ;; 117 | esac 118 | -------------------------------------------------------------------------------- /rofi/powermenu/type-5/style-1.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #11092D; 19 | background-alt: #281657; 20 | foreground: #FFFFFF; 21 | selected: #DF5296; 22 | active: #6E77FF; 23 | urgent: #8E3596; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 800px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 20px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | enabled: true; 51 | spacing: 0px; 52 | margin: 0px; 53 | padding: 0px; 54 | border: 0px solid; 55 | border-radius: 0px; 56 | border-color: @selected; 57 | background-color: transparent; 58 | children: [ "inputbar", "listview", "message" ]; 59 | } 60 | 61 | /*****----- Inputbar -----*****/ 62 | inputbar { 63 | enabled: true; 64 | spacing: 0px; 65 | padding: 100px 80px; 66 | background-color: transparent; 67 | background-image: url("~/.config/rofi/images/a.png", width); 68 | children: [ "textbox-prompt-colon", "dummy","prompt"]; 69 | } 70 | 71 | dummy { 72 | background-color: transparent; 73 | } 74 | 75 | textbox-prompt-colon { 76 | enabled: true; 77 | expand: false; 78 | str: " System"; 79 | padding: 12px; 80 | border-radius: 12px; 81 | background-color: @urgent; 82 | text-color: @background; 83 | } 84 | prompt { 85 | enabled: true; 86 | padding: 12px; 87 | border-radius: 12px; 88 | background-color: @active; 89 | text-color: @background; 90 | } 91 | 92 | /*****----- Listview -----*****/ 93 | listview { 94 | enabled: true; 95 | columns: 6; 96 | lines: 1; 97 | cycle: true; 98 | dynamic: true; 99 | scrollbar: false; 100 | layout: vertical; 101 | reverse: false; 102 | fixed-height: true; 103 | fixed-columns: true; 104 | 105 | spacing: 15px; 106 | margin: 15px; 107 | background-color: transparent; 108 | cursor: "default"; 109 | } 110 | 111 | /*****----- Elements -----*****/ 112 | element { 113 | enabled: true; 114 | padding: 30px 10px; 115 | border-radius: 12px; 116 | background-color: @background-alt; 117 | text-color: @foreground; 118 | cursor: pointer; 119 | } 120 | element-text { 121 | font: "feather bold 32"; 122 | background-color: transparent; 123 | text-color: inherit; 124 | cursor: inherit; 125 | vertical-align: 0.5; 126 | horizontal-align: 0.5; 127 | } 128 | element selected.normal { 129 | background-color: var(selected); 130 | text-color: var(background); 131 | } 132 | 133 | /*****----- Message -----*****/ 134 | message { 135 | enabled: true; 136 | margin: 0px; 137 | padding: 15px; 138 | border-radius: 0px; 139 | background-color: @background-alt; 140 | text-color: @foreground; 141 | } 142 | textbox { 143 | background-color: inherit; 144 | text-color: inherit; 145 | vertical-align: 0.5; 146 | horizontal-align: 0.5; 147 | } 148 | -------------------------------------------------------------------------------- /rofi/powermenu/type-5/style-2.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #2D1B14; 19 | background-alt: #462D23; 20 | foreground: #FFFFFF; 21 | selected: #E25F3E; 22 | active: #716251; 23 | urgent: #934A1C; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 800px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 20px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | enabled: true; 51 | spacing: 0px; 52 | margin: 0px; 53 | padding: 0px; 54 | border: 0px solid; 55 | border-radius: 0px; 56 | border-color: @selected; 57 | background-color: transparent; 58 | children: [ "inputbar", "listview", "message" ]; 59 | } 60 | 61 | /*****----- Inputbar -----*****/ 62 | inputbar { 63 | enabled: true; 64 | spacing: 0px; 65 | padding: 100px 80px; 66 | background-color: transparent; 67 | background-image: url("~/.config/rofi/images/d.png", width); 68 | children: [ "textbox-prompt-colon", "dummy","prompt"]; 69 | } 70 | 71 | dummy { 72 | background-color: transparent; 73 | } 74 | 75 | textbox-prompt-colon { 76 | enabled: true; 77 | expand: false; 78 | str: " System"; 79 | padding: 12px; 80 | border-radius: 100%; 81 | background-color: @urgent; 82 | text-color: @foreground; 83 | } 84 | prompt { 85 | enabled: true; 86 | padding: 12px; 87 | border-radius: 100%; 88 | background-color: @active; 89 | text-color: @foreground; 90 | } 91 | 92 | /*****----- Listview -----*****/ 93 | listview { 94 | enabled: true; 95 | columns: 6; 96 | lines: 1; 97 | cycle: true; 98 | dynamic: true; 99 | scrollbar: false; 100 | layout: vertical; 101 | reverse: false; 102 | fixed-height: true; 103 | fixed-columns: true; 104 | 105 | spacing: 15px; 106 | margin: 15px; 107 | background-color: transparent; 108 | cursor: "default"; 109 | } 110 | 111 | /*****----- Elements -----*****/ 112 | element { 113 | enabled: true; 114 | padding: 28px 10px; 115 | border-radius: 100%; 116 | background-color: @background-alt; 117 | text-color: @foreground; 118 | cursor: pointer; 119 | } 120 | element-text { 121 | font: "feather bold 32"; 122 | background-color: transparent; 123 | text-color: inherit; 124 | cursor: inherit; 125 | vertical-align: 0.5; 126 | horizontal-align: 0.5; 127 | } 128 | element selected.normal { 129 | background-color: var(selected); 130 | text-color: var(background); 131 | } 132 | 133 | /*****----- Message -----*****/ 134 | message { 135 | enabled: true; 136 | margin: 0px 15px 15px 15px; 137 | padding: 15px; 138 | border-radius: 100%; 139 | background-color: @background-alt; 140 | text-color: @foreground; 141 | } 142 | textbox { 143 | background-color: inherit; 144 | text-color: inherit; 145 | vertical-align: 0.5; 146 | horizontal-align: 0.5; 147 | } 148 | -------------------------------------------------------------------------------- /rofi/powermenu/type-5/style-3.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #231419; 19 | background-alt: #2D1E23; 20 | foreground: #FFFFFF; 21 | selected: #426647; 22 | active: #2E3F34; 23 | urgent: #D08261; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 550px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 10px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | enabled: true; 51 | spacing: 0px; 52 | margin: 0px; 53 | padding: 0px; 54 | border: 0px solid; 55 | border-radius: 0px; 56 | border-color: @selected; 57 | background-color: transparent; 58 | children: [ "inputbar", "listview", "message" ]; 59 | } 60 | 61 | /*****----- Inputbar -----*****/ 62 | inputbar { 63 | enabled: true; 64 | spacing: 0px; 65 | padding: 100px 40px; 66 | background-color: transparent; 67 | background-image: url("~/.config/rofi/images/e.jpg", width); 68 | children: [ "textbox-prompt-colon", "dummy","prompt"]; 69 | } 70 | 71 | dummy { 72 | background-color: transparent; 73 | } 74 | 75 | textbox-prompt-colon { 76 | enabled: true; 77 | expand: false; 78 | str: " System"; 79 | padding: 12px; 80 | border-radius: 5px; 81 | background-color: @urgent; 82 | text-color: @background; 83 | } 84 | prompt { 85 | enabled: true; 86 | padding: 12px; 87 | border-radius: 5px; 88 | background-color: @active; 89 | text-color: @foreground; 90 | } 91 | 92 | /*****----- Listview -----*****/ 93 | listview { 94 | enabled: true; 95 | columns: 3; 96 | lines: 2; 97 | cycle: true; 98 | dynamic: true; 99 | scrollbar: false; 100 | layout: vertical; 101 | reverse: false; 102 | fixed-height: true; 103 | fixed-columns: true; 104 | 105 | spacing: 15px; 106 | margin: 15px; 107 | background-color: transparent; 108 | cursor: "default"; 109 | } 110 | 111 | /*****----- Elements -----*****/ 112 | element { 113 | enabled: true; 114 | padding: 30px 10px; 115 | border-radius: 10px; 116 | background-color: @background-alt; 117 | text-color: @foreground; 118 | cursor: pointer; 119 | } 120 | element-text { 121 | font: "feather bold 32"; 122 | background-color: transparent; 123 | text-color: inherit; 124 | cursor: inherit; 125 | vertical-align: 0.5; 126 | horizontal-align: 0.5; 127 | } 128 | element selected.normal { 129 | background-color: var(selected); 130 | text-color: var(background); 131 | } 132 | 133 | /*****----- Message -----*****/ 134 | message { 135 | enabled: true; 136 | margin: 0px; 137 | padding: 15px; 138 | border-radius: 0px; 139 | background-color: @background-alt; 140 | text-color: @foreground; 141 | } 142 | textbox { 143 | background-color: inherit; 144 | text-color: inherit; 145 | vertical-align: 0.5; 146 | horizontal-align: 0.5; 147 | } 148 | -------------------------------------------------------------------------------- /rofi/powermenu/type-6/powermenu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ## Author : Aditya Shakya (adi1090x) 4 | ## Github : @adi1090x 5 | # 6 | ## Rofi : Power Menu 7 | # 8 | ## Available Styles 9 | # 10 | ## style-1 style-2 style-3 style-4 style-5 11 | 12 | # Current Theme 13 | dir="$HOME/.config/rofi/powermenu/type-6" 14 | theme='style-1' 15 | 16 | # CMDs 17 | lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`" 18 | uptime="`uptime -p | sed -e 's/up //g'`" 19 | host=`hostname` 20 | 21 | # Options 22 | hibernate='' 23 | shutdown='' 24 | reboot='' 25 | lock='' 26 | suspend='' 27 | logout='' 28 | yes='' 29 | no='' 30 | 31 | # Rofi CMD 32 | rofi_cmd() { 33 | rofi -dmenu \ 34 | -p " $USER@$host" \ 35 | -mesg " Uptime: $uptime" \ 36 | -theme ${dir}/${theme}.rasi 37 | } 38 | 39 | # Confirmation CMD 40 | confirm_cmd() { 41 | rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 350px;}' \ 42 | -theme-str 'mainbox {orientation: vertical; children: [ "message", "listview" ];}' \ 43 | -theme-str 'listview {columns: 2; lines: 1;}' \ 44 | -theme-str 'element-text {horizontal-align: 0.5;}' \ 45 | -theme-str 'textbox {horizontal-align: 0.5;}' \ 46 | -dmenu \ 47 | -p 'Confirmation' \ 48 | -mesg 'Are you Sure?' \ 49 | -theme ${dir}/${theme}.rasi 50 | } 51 | 52 | # Ask for confirmation 53 | confirm_exit() { 54 | echo -e "$yes\n$no" | confirm_cmd 55 | } 56 | 57 | # Pass variables to rofi dmenu 58 | run_rofi() { 59 | echo -e "$lock\n$suspend\n$logout\n$hibernate\n$reboot\n$shutdown" | rofi_cmd 60 | } 61 | 62 | # Execute Command 63 | run_cmd() { 64 | selected="$(confirm_exit)" 65 | if [[ "$selected" == "$yes" ]]; then 66 | if [[ $1 == '--shutdown' ]]; then 67 | systemctl poweroff 68 | elif [[ $1 == '--reboot' ]]; then 69 | systemctl reboot 70 | elif [[ $1 == '--hibernate' ]]; then 71 | systemctl hibernate 72 | elif [[ $1 == '--suspend' ]]; then 73 | mpc -q pause 74 | amixer set Master mute 75 | systemctl suspend 76 | elif [[ $1 == '--logout' ]]; then 77 | if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then 78 | openbox --exit 79 | elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then 80 | bspc quit 81 | elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then 82 | i3-msg exit 83 | elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then 84 | qdbus org.kde.ksmserver /KSMServer logout 0 0 0 85 | fi 86 | fi 87 | else 88 | exit 0 89 | fi 90 | } 91 | 92 | # Actions 93 | chosen="$(run_rofi)" 94 | case ${chosen} in 95 | $shutdown) 96 | run_cmd --shutdown 97 | ;; 98 | $reboot) 99 | run_cmd --reboot 100 | ;; 101 | $hibernate) 102 | run_cmd --hibernate 103 | ;; 104 | $lock) 105 | if [[ -x '/usr/bin/betterlockscreen' ]]; then 106 | betterlockscreen -l 107 | elif [[ -x '/usr/bin/i3lock' ]]; then 108 | i3lock 109 | fi 110 | ;; 111 | $suspend) 112 | run_cmd --suspend 113 | ;; 114 | $logout) 115 | run_cmd --logout 116 | ;; 117 | esac 118 | -------------------------------------------------------------------------------- /rofi/powermenu/type-6/style-1.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #11092D; 19 | background-alt: #281657; 20 | foreground: #FFFFFF; 21 | selected: #DF5296; 22 | active: #6E77FF; 23 | urgent: #8E3596; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 800px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 15px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | background-color: transparent; 51 | orientation: horizontal; 52 | children: [ "imagebox", "listview" ]; 53 | } 54 | 55 | /*****----- Imagebox -----*****/ 56 | imagebox { 57 | spacing: 30px; 58 | padding: 30px; 59 | background-color: transparent; 60 | background-image: url("~/.config/rofi/images/a.png", height); 61 | children: [ "inputbar", "dummy", "message" ]; 62 | } 63 | 64 | /*****----- User -----*****/ 65 | userimage { 66 | margin: 0px 0px; 67 | border: 10px; 68 | border-radius: 10px; 69 | border-color: @background-alt; 70 | background-color: transparent; 71 | background-image: url("~/.config/rofi/images/a.png", height); 72 | } 73 | 74 | /*****----- Inputbar -----*****/ 75 | inputbar { 76 | padding: 15px; 77 | border-radius: 10px; 78 | background-color: @urgent; 79 | text-color: @foreground; 80 | children: [ "dummy", "prompt", "dummy"]; 81 | } 82 | 83 | dummy { 84 | background-color: transparent; 85 | } 86 | 87 | prompt { 88 | background-color: inherit; 89 | text-color: inherit; 90 | } 91 | 92 | /*****----- Message -----*****/ 93 | message { 94 | enabled: true; 95 | margin: 0px; 96 | padding: 15px; 97 | border-radius: 10px; 98 | background-color: @active; 99 | text-color: @background; 100 | } 101 | textbox { 102 | background-color: inherit; 103 | text-color: inherit; 104 | vertical-align: 0.5; 105 | horizontal-align: 0.5; 106 | } 107 | 108 | /*****----- Listview -----*****/ 109 | listview { 110 | enabled: true; 111 | columns: 2; 112 | lines: 3; 113 | cycle: true; 114 | dynamic: true; 115 | scrollbar: false; 116 | layout: vertical; 117 | reverse: false; 118 | fixed-height: true; 119 | fixed-columns: true; 120 | 121 | spacing: 30px; 122 | margin: 30px; 123 | background-color: transparent; 124 | cursor: "default"; 125 | } 126 | 127 | /*****----- Elements -----*****/ 128 | element { 129 | enabled: true; 130 | padding: 40px 10px; 131 | border-radius: 10px; 132 | background-color: @background-alt; 133 | text-color: @foreground; 134 | cursor: pointer; 135 | } 136 | element-text { 137 | font: "feather bold 32"; 138 | background-color: transparent; 139 | text-color: inherit; 140 | cursor: inherit; 141 | vertical-align: 0.5; 142 | horizontal-align: 0.5; 143 | } 144 | element selected.normal { 145 | background-color: var(selected); 146 | text-color: var(background); 147 | } 148 | -------------------------------------------------------------------------------- /rofi/powermenu/type-6/style-2.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #2D1B14; 19 | background-alt: #462D23; 20 | foreground: #FFFFFF; 21 | selected: #E25F3E; 22 | active: #716251; 23 | urgent: #934A1C; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 1000px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 24px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | background-color: transparent; 51 | orientation: horizontal; 52 | children: [ "imagebox", "listview" ]; 53 | } 54 | 55 | /*****----- Imagebox -----*****/ 56 | imagebox { 57 | spacing: 20px; 58 | padding: 20px; 59 | background-color: transparent; 60 | background-image: url("~/.config/rofi/images/d.png", height); 61 | children: [ "inputbar", "dummy", "message" ]; 62 | } 63 | 64 | /*****----- User -----*****/ 65 | userimage { 66 | margin: 0px 0px; 67 | border: 10px; 68 | border-radius: 10px; 69 | border-color: @background-alt; 70 | background-color: transparent; 71 | background-image: url("~/.config/rofi/images/d.png", height); 72 | } 73 | 74 | /*****----- Inputbar -----*****/ 75 | inputbar { 76 | padding: 15px; 77 | border-radius: 100%; 78 | background-color: @urgent; 79 | text-color: @foreground; 80 | children: [ "dummy", "prompt", "dummy"]; 81 | } 82 | 83 | dummy { 84 | background-color: transparent; 85 | } 86 | 87 | prompt { 88 | background-color: inherit; 89 | text-color: inherit; 90 | } 91 | 92 | /*****----- Message -----*****/ 93 | message { 94 | enabled: true; 95 | margin: 0px; 96 | padding: 15px; 97 | border-radius: 100%; 98 | background-color: @active; 99 | text-color: @foreground; 100 | } 101 | textbox { 102 | background-color: inherit; 103 | text-color: inherit; 104 | vertical-align: 0.5; 105 | horizontal-align: 0.5; 106 | } 107 | 108 | /*****----- Listview -----*****/ 109 | listview { 110 | enabled: true; 111 | columns: 3; 112 | lines: 2; 113 | cycle: true; 114 | dynamic: true; 115 | scrollbar: false; 116 | layout: vertical; 117 | reverse: false; 118 | fixed-height: true; 119 | fixed-columns: true; 120 | 121 | spacing: 20px; 122 | margin: 20px; 123 | background-color: transparent; 124 | cursor: "default"; 125 | } 126 | 127 | /*****----- Elements -----*****/ 128 | element { 129 | enabled: true; 130 | padding: 40px 10px; 131 | border-radius: 100%; 132 | background-color: @background-alt; 133 | text-color: @foreground; 134 | cursor: pointer; 135 | } 136 | element-text { 137 | font: "feather bold 32"; 138 | background-color: transparent; 139 | text-color: inherit; 140 | cursor: inherit; 141 | vertical-align: 0.5; 142 | horizontal-align: 0.5; 143 | } 144 | element selected.normal { 145 | background-color: var(selected); 146 | text-color: var(background); 147 | } 148 | -------------------------------------------------------------------------------- /rofi/powermenu/type-6/style-3.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #231419; 19 | background-alt: #2D1E23; 20 | foreground: #FFFFFF; 21 | selected: #426647; 22 | active: #2E3F34; 23 | urgent: #D08261; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 800px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 10px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | background-color: transparent; 51 | orientation: horizontal; 52 | children: [ "imagebox", "listview" ]; 53 | } 54 | 55 | /*****----- Imagebox -----*****/ 56 | imagebox { 57 | spacing: 0px; 58 | padding: 30px; 59 | background-color: transparent; 60 | background-image: url("~/.config/rofi/images/e.jpg", width); 61 | children: [ "inputbar", "dummy", "message" ]; 62 | } 63 | 64 | /*****----- User -----*****/ 65 | userimage { 66 | margin: 0px 0px; 67 | border: 10px; 68 | border-radius: 10px; 69 | border-color: @background-alt; 70 | background-color: transparent; 71 | background-image: url("~/.config/rofi/images/e.jpg", height); 72 | } 73 | 74 | /*****----- Inputbar -----*****/ 75 | inputbar { 76 | padding: 15px; 77 | border-radius: 10px; 78 | background-color: @urgent; 79 | text-color: @background; 80 | children: [ "dummy", "prompt", "dummy"]; 81 | } 82 | 83 | dummy { 84 | background-color: transparent; 85 | } 86 | 87 | prompt { 88 | background-color: inherit; 89 | text-color: inherit; 90 | } 91 | 92 | /*****----- Message -----*****/ 93 | message { 94 | enabled: true; 95 | margin: 0px; 96 | padding: 15px; 97 | border-radius: 10px; 98 | background-color: @active; 99 | text-color: @foreground; 100 | } 101 | textbox { 102 | background-color: inherit; 103 | text-color: inherit; 104 | vertical-align: 0.5; 105 | horizontal-align: 0.5; 106 | } 107 | 108 | /*****----- Listview -----*****/ 109 | listview { 110 | enabled: true; 111 | columns: 3; 112 | lines: 2; 113 | cycle: true; 114 | dynamic: true; 115 | scrollbar: false; 116 | layout: vertical; 117 | reverse: false; 118 | fixed-height: true; 119 | fixed-columns: true; 120 | 121 | spacing: 30px; 122 | margin: 30px; 123 | background-color: transparent; 124 | cursor: "default"; 125 | } 126 | 127 | /*****----- Elements -----*****/ 128 | element { 129 | enabled: true; 130 | padding: 18px 10px; 131 | border-radius: 20px; 132 | background-color: @background-alt; 133 | text-color: @foreground; 134 | cursor: pointer; 135 | } 136 | element-text { 137 | font: "feather bold 32"; 138 | background-color: transparent; 139 | text-color: inherit; 140 | cursor: inherit; 141 | vertical-align: 0.5; 142 | horizontal-align: 0.5; 143 | } 144 | element selected.normal { 145 | background-color: var(selected); 146 | text-color: var(background); 147 | } 148 | -------------------------------------------------------------------------------- /rofi/powermenu/type-6/style-4.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #131D1F; 19 | background-alt: #183A43; 20 | foreground: #FFFFFF; 21 | selected: #649094; 22 | active: #E9CC9D; 23 | urgent: #FEA861; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 800px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 0px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | background-color: transparent; 51 | orientation: horizontal; 52 | children: [ "imagebox", "listview" ]; 53 | } 54 | 55 | /*****----- Imagebox -----*****/ 56 | imagebox { 57 | expand: false; 58 | width: 640px; 59 | spacing: 0px; 60 | padding: 100px; 61 | background-color: transparent; 62 | background-image: url("~/.config/rofi/images/i.jpg", height); 63 | children: [ "inputbar", "dummy", "message" ]; 64 | } 65 | 66 | /*****----- User -----*****/ 67 | userimage { 68 | margin: 0px 0px; 69 | border: 10px; 70 | border-radius: 0px; 71 | border-color: @background-alt; 72 | background-color: transparent; 73 | background-image: url("~/.config/rofi/images/i.jpg", height); 74 | } 75 | 76 | /*****----- Inputbar -----*****/ 77 | inputbar { 78 | padding: 20px; 79 | border-radius: 0px; 80 | background-color: @urgent; 81 | text-color: @background; 82 | children: [ "dummy", "prompt", "dummy"]; 83 | } 84 | 85 | dummy { 86 | background-color: transparent; 87 | } 88 | 89 | prompt { 90 | background-color: inherit; 91 | text-color: inherit; 92 | } 93 | 94 | /*****----- Message -----*****/ 95 | message { 96 | enabled: true; 97 | margin: 0px; 98 | padding: 20px; 99 | border-radius: 0px; 100 | background-color: @active; 101 | text-color: @background; 102 | } 103 | textbox { 104 | background-color: inherit; 105 | text-color: inherit; 106 | vertical-align: 0.5; 107 | horizontal-align: 0.5; 108 | } 109 | 110 | /*****----- Listview -----*****/ 111 | listview { 112 | enabled: true; 113 | columns: 1; 114 | lines: 6; 115 | cycle: true; 116 | dynamic: true; 117 | scrollbar: false; 118 | layout: vertical; 119 | reverse: false; 120 | fixed-height: true; 121 | fixed-columns: true; 122 | 123 | spacing: 30px; 124 | margin: 30px; 125 | background-color: transparent; 126 | cursor: "default"; 127 | } 128 | 129 | /*****----- Elements -----*****/ 130 | element { 131 | enabled: true; 132 | padding: 20px 10px; 133 | border-radius: 0px; 134 | background-color: @background-alt; 135 | text-color: @foreground; 136 | cursor: pointer; 137 | } 138 | element-text { 139 | font: "feather bold 32"; 140 | background-color: transparent; 141 | text-color: inherit; 142 | cursor: inherit; 143 | vertical-align: 0.5; 144 | horizontal-align: 0.5; 145 | } 146 | element selected.normal { 147 | background-color: var(selected); 148 | text-color: var(background); 149 | } 150 | -------------------------------------------------------------------------------- /rofi/powermenu/type-6/style-5.rasi: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Author : Aditya Shakya (adi1090x) 4 | * Github : @adi1090x 5 | * 6 | * Rofi Theme File 7 | * Rofi Version: 1.7.3 8 | **/ 9 | 10 | /*****----- Configuration -----*****/ 11 | configuration { 12 | show-icons: false; 13 | } 14 | 15 | /*****----- Global Properties -----*****/ 16 | * { 17 | font: "JetBrains Mono Nerd Font 10"; 18 | background: #11092D; 19 | background-alt: #281657; 20 | foreground: #FFFFFF; 21 | selected: #DF5296; 22 | active: #6E77FF; 23 | urgent: #8E3596; 24 | } 25 | 26 | /* 27 | USE_BUTTONS=YES 28 | */ 29 | 30 | /*****----- Main Window -----*****/ 31 | window { 32 | transparency: "real"; 33 | location: center; 34 | anchor: center; 35 | fullscreen: false; 36 | width: 800px; 37 | x-offset: 0px; 38 | y-offset: 0px; 39 | 40 | padding: 0px; 41 | border: 0px solid; 42 | border-radius: 0px; 43 | border-color: @selected; 44 | cursor: "default"; 45 | background-color: @background; 46 | } 47 | 48 | /*****----- Main Box -----*****/ 49 | mainbox { 50 | background-color: transparent; 51 | orientation: horizontal; 52 | children: [ "listview", "imagebox" ]; 53 | } 54 | 55 | /*****----- Imagebox -----*****/ 56 | imagebox { 57 | expand: false; 58 | width: 500px; 59 | spacing: 0px; 60 | padding: 100px; 61 | background-color: transparent; 62 | background-image: url("~/.config/rofi/images/j.jpg", height); 63 | children: [ "inputbar", "dummy", "message" ]; 64 | } 65 | 66 | /*****----- User -----*****/ 67 | userimage { 68 | margin: 0px 0px; 69 | border: 10px; 70 | border-radius: 0px; 71 | border-color: @background-alt; 72 | background-color: transparent; 73 | background-image: url("~/.config/rofi/images/j.jpg", height); 74 | } 75 | 76 | /*****----- Inputbar -----*****/ 77 | inputbar { 78 | padding: 20px; 79 | border-radius: 0px; 80 | background-color: @urgent; 81 | text-color: @background; 82 | children: [ "dummy", "prompt", "dummy"]; 83 | } 84 | 85 | dummy { 86 | background-color: transparent; 87 | } 88 | 89 | prompt { 90 | background-color: inherit; 91 | text-color: inherit; 92 | } 93 | 94 | /*****----- Message -----*****/ 95 | message { 96 | enabled: true; 97 | margin: 0px; 98 | padding: 20px; 99 | border-radius: 0px; 100 | background-color: @active; 101 | text-color: @background; 102 | } 103 | textbox { 104 | background-color: inherit; 105 | text-color: inherit; 106 | vertical-align: 0.5; 107 | horizontal-align: 0.5; 108 | } 109 | 110 | /*****----- Listview -----*****/ 111 | listview { 112 | enabled: true; 113 | columns: 2; 114 | lines: 3; 115 | cycle: true; 116 | dynamic: true; 117 | scrollbar: false; 118 | layout: vertical; 119 | reverse: false; 120 | fixed-height: true; 121 | fixed-columns: true; 122 | 123 | spacing: 30px; 124 | margin: 30px; 125 | background-color: transparent; 126 | cursor: "default"; 127 | } 128 | 129 | /*****----- Elements -----*****/ 130 | element { 131 | enabled: true; 132 | padding: 20px 10px; 133 | border-radius: 0px; 134 | background-color: @background-alt; 135 | text-color: @foreground; 136 | cursor: pointer; 137 | } 138 | element-text { 139 | font: "feather bold 32"; 140 | background-color: transparent; 141 | text-color: inherit; 142 | cursor: inherit; 143 | vertical-align: 0.5; 144 | horizontal-align: 0.5; 145 | } 146 | element selected.normal { 147 | background-color: var(selected); 148 | text-color: var(background); 149 | } 150 | -------------------------------------------------------------------------------- /rofi/rofi-wifi-menu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | notify-send "Getting list of available Wi-Fi networks..." 4 | # Get a list of available wifi connections and morph it into a nice-looking list 5 | wifi_list=$(nmcli --fields "SECURITY,SSID" device wifi list | sed 1d | sed 's/ */ /g' | sed -E "s/WPA*.?\S/ /g" | sed "s/^--/ /g" | sed "s/ //g" | sed "/--/d") 6 | 7 | connected=$(nmcli -fields WIFI g) 8 | if [[ "$connected" =~ "enabled" ]]; then 9 | toggle="󰖪 Disable Wi-Fi" 10 | elif [[ "$connected" =~ "disabled" ]]; then 11 | toggle="󰖩 Enable Wi-Fi" 12 | fi 13 | 14 | # Use rofi to select wifi network 15 | chosen_network=$(echo -e "$toggle\n$wifi_list" | uniq -u | rofi -dmenu -i -selected-row 1 -p "Wi-Fi SSID: " -theme ultimate.rasi) 16 | # Get name of connection 17 | read -r chosen_id <<< "${chosen_network:3}" 18 | 19 | if [ "$chosen_network" = "" ]; then 20 | exit 21 | elif [ "$chosen_network" = "󰖩 Enable Wi-Fi" ]; then 22 | nmcli radio wifi on 23 | elif [ "$chosen_network" = "󰖪 Disable Wi-Fi" ]; then 24 | nmcli radio wifi off 25 | else 26 | # Message to show when connection is activated successfully 27 | success_message="You are now connected to the Wi-Fi network \"$chosen_id\"." 28 | # Get saved connections 29 | saved_connections=$(nmcli -g NAME connection) 30 | if [[ $(echo "$saved_connections" | grep -w "$chosen_id") = "$chosen_id" ]]; then 31 | nmcli connection up id "$chosen_id" | grep "successfully" && notify-send "Connection Established" "$success_message" 32 | else 33 | if [[ "$chosen_network" =~ "" ]]; then 34 | wifi_password=$(rofi -dmenu -p "Password: " -theme ultimate.rasi) 35 | fi 36 | nmcli device wifi connect "$chosen_id" password "$wifi_password" | grep "successfully" && notify-send "Connection Established" "$success_message" 37 | fi 38 | fi 39 | -------------------------------------------------------------------------------- /rofi/windows11-grid-dark.rasi: -------------------------------------------------------------------------------- 1 | * { 2 | font: "Roboto 10"; 3 | 4 | bg0 : #1f1f1f80; 5 | bg1 : #202020bf; 6 | bg2 : #2c2c2c; 7 | bg3 : #393939bf; 8 | fg0 : #ffffff; 9 | fg1 : #cecece; 10 | accent : #60cdff; 11 | urgent : @accent; 12 | 13 | background-color : transparent; 14 | text-color : @fg0; 15 | 16 | margin : 0; 17 | padding : 0; 18 | spacing : 0; 19 | } 20 | 21 | element-icon, element-text, scrollbar { 22 | cursor: pointer; 23 | } 24 | 25 | window { 26 | location : west; 27 | width : 600px; 28 | height : 600px; 29 | y-offset : -4px; 30 | 31 | background-color : @bg1; 32 | border-radius : 8px; 33 | } 34 | 35 | mainbox { 36 | padding : 24px; 37 | spacing : 24px; 38 | } 39 | 40 | inputbar { 41 | padding : 8px; 42 | spacing : 4px; 43 | children : [ icon-search, entry ]; 44 | border : 0 0 2px 0 solid; 45 | border-color : @accent; 46 | border-radius : 2px; 47 | background-color : @bg0; 48 | } 49 | 50 | icon-search, entry, element-icon, element-text { 51 | vertical-align: 0.5; 52 | } 53 | 54 | icon-search { 55 | expand : false; 56 | filename : "search-symbolic"; 57 | size : 24px; 58 | } 59 | 60 | entry { 61 | font : "Roboto 12"; 62 | placeholder : "Type here to search"; 63 | placeholder-color : @fg1; 64 | } 65 | 66 | textbox { 67 | padding : 4px 8px; 68 | background-color : @bg2; 69 | } 70 | 71 | listview { 72 | columns : 6; 73 | spacing : 8px; 74 | fixed-height : true; 75 | fixed-columns : true; 76 | } 77 | 78 | element { 79 | orientation : vertical; 80 | spacing : 4px; 81 | padding : 8px; 82 | border-radius : 2px; 83 | } 84 | 85 | element normal urgent { 86 | text-color: @urgent; 87 | } 88 | 89 | element normal active { 90 | text-color: @accent; 91 | } 92 | 93 | element selected { 94 | background-color: @bg3; 95 | } 96 | 97 | element selected urgent { 98 | background-color: @urgent; 99 | } 100 | 101 | element-icon { 102 | size: 2em; 103 | } 104 | 105 | element-text { 106 | text-color : inherit; 107 | horizontal-align : 0.5; 108 | } 109 | -------------------------------------------------------------------------------- /swaylock/config: -------------------------------------------------------------------------------- 1 | ignore-empty-password 2 | disable-caps-lock-text 3 | font=Cantarelle Regular 4 | #font-size=9 5 | 6 | screenshots 7 | effect-blur=7x5 8 | effect-vignette=0.5:0.5 9 | indicator 10 | indicator-radius=120 11 | indicator-thickness=20 12 | clock 13 | timestr=%I:%M %p 14 | datestr=%A, %d %B 15 | ring-color=4C566A 16 | key-hl-color=A3BE8C 17 | line-color=2E3440 18 | separator-color=3B4252 19 | inside-color=3B4252 20 | bs-hl-color=A3BE8C 21 | layout-bg-color=3B4252 22 | layout-border-color=4C566A 23 | layout-text-color=D8DEE9 24 | text-color=D8DEE9 25 | -------------------------------------------------------------------------------- /swaync/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "/etc/xdg/swaync/configSchema.json", 3 | "positionX": "right", 4 | "positionY": "top", 5 | "control-center-margin-top": 10, 6 | "control-center-margin-bottom": 10, 7 | "control-center-margin-right": 10, 8 | "control-center-margin-left": 10, 9 | "notification-icon-size": 48, 10 | "notification-body-image-height": 100, 11 | "notification-body-image-width": 200, 12 | "timeout": 5, 13 | "timeout-low": 5, 14 | "timeout-critical": 0, 15 | "fit-to-screen": true, 16 | "control-center-width": 350, 17 | "notification-window-width": 350, 18 | "keyboard-shortcuts": true, 19 | "image-visibility": "when-available", 20 | "transition-time": 200, 21 | "hide-on-clear": false, 22 | "hide-on-action": true, 23 | "script-fail-notify": true, 24 | "widgets": [ 25 | "title", 26 | "dnd", 27 | "notifications", 28 | "backlight", 29 | "volume", 30 | "mpris" 31 | ], 32 | "widget-config": { 33 | "title": { 34 | "text": "󰂚 :: Notifications", 35 | "clear-all-button": true, 36 | "button-text": "󰎟 " 37 | }, 38 | "dnd": { 39 | "text": "Do Not Disturb" 40 | }, 41 | "label": { 42 | "max-lines": 1, 43 | "text": "Notification Center" 44 | }, 45 | "mpris": { 46 | "image-size": 96, 47 | "image-radius": 12 48 | }, 49 | "volume": { 50 | "label": "󰕾 " 51 | }, 52 | "backlight": { 53 | "label": "󰃟 " 54 | }, 55 | "buttons-grid": { 56 | "actions": [ 57 | { 58 | "label": "󰔏", 59 | "command": "hyprshade toggle redshift" 60 | }, 61 | { 62 | "label": "󰌵", 63 | "command": "hyprshade toggle dim" 64 | }, 65 | { 66 | "label": "󰊠", 67 | "command": "hyprshade toggle grayscale" 68 | }, 69 | { 70 | "label": "󰏘", 71 | "command": "hyprshade toggle vibrance" 72 | }, 73 | { 74 | "label": "󰌁", 75 | "command": "hyprshade toggle invert" 76 | } 77 | ] 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /waybar/backup/mediaplayer.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import argparse 3 | import logging 4 | import sys 5 | import signal 6 | import gi 7 | import json 8 | gi.require_version('Playerctl', '2.0') 9 | from gi.repository import Playerctl, GLib 10 | 11 | logger = logging.getLogger(__name__) 12 | 13 | 14 | def write_output(text, player): 15 | logger.info('Writing output') 16 | 17 | output = {'text': text, 18 | 'class': 'custom-' + player.props.player_name, 19 | 'alt': player.props.player_name} 20 | 21 | sys.stdout.write(json.dumps(output) + '\n') 22 | sys.stdout.flush() 23 | 24 | 25 | def on_play(player, status, manager): 26 | logger.info('Received new playback status') 27 | on_metadata(player, player.props.metadata, manager) 28 | 29 | 30 | def on_metadata(player, metadata, manager): 31 | logger.info('Received new metadata') 32 | track_info = '' 33 | 34 | if player.props.player_name == 'spotify' and \ 35 | 'mpris:trackid' in metadata.keys() and \ 36 | ':ad:' in player.props.metadata['mpris:trackid']: 37 | track_info = 'AD PLAYING' 38 | elif player.get_artist() != '' and player.get_title() != '': 39 | track_info = '{artist} - {title}'.format(artist=player.get_artist(), 40 | title=player.get_title()) 41 | else: 42 | track_info = player.get_title() 43 | 44 | if player.props.status != 'Playing' and track_info: 45 | track_info = ' ' + track_info 46 | write_output(track_info, player) 47 | 48 | 49 | def on_player_appeared(manager, player, selected_player=None): 50 | if player is not None and (selected_player is None or player.name == selected_player): 51 | init_player(manager, player) 52 | else: 53 | logger.debug("New player appeared, but it's not the selected player, skipping") 54 | 55 | 56 | def on_player_vanished(manager, player): 57 | logger.info('Player has vanished') 58 | sys.stdout.write('\n') 59 | sys.stdout.flush() 60 | 61 | 62 | def init_player(manager, name): 63 | logger.debug('Initialize player: {player}'.format(player=name.name)) 64 | player = Playerctl.Player.new_from_name(name) 65 | player.connect('playback-status', on_play, manager) 66 | player.connect('metadata', on_metadata, manager) 67 | manager.manage_player(player) 68 | on_metadata(player, player.props.metadata, manager) 69 | 70 | 71 | def signal_handler(sig, frame): 72 | logger.debug('Received signal to stop, exiting') 73 | sys.stdout.write('\n') 74 | sys.stdout.flush() 75 | # loop.quit() 76 | sys.exit(0) 77 | 78 | 79 | def parse_arguments(): 80 | parser = argparse.ArgumentParser() 81 | 82 | # Increase verbosity with every occurance of -v 83 | parser.add_argument('-v', '--verbose', action='count', default=0) 84 | 85 | # Define for which player we're listening 86 | parser.add_argument('--player') 87 | 88 | return parser.parse_args() 89 | 90 | 91 | def main(): 92 | arguments = parse_arguments() 93 | 94 | # Initialize logging 95 | logging.basicConfig(stream=sys.stderr, level=logging.DEBUG, 96 | format='%(name)s %(levelname)s %(message)s') 97 | 98 | # Logging is set by default to WARN and higher. 99 | # With every occurrence of -v it's lowered by one 100 | logger.setLevel(max((3 - arguments.verbose) * 10, 0)) 101 | 102 | # Log the sent command line arguments 103 | logger.debug('Arguments received {}'.format(vars(arguments))) 104 | 105 | manager = Playerctl.PlayerManager() 106 | loop = GLib.MainLoop() 107 | 108 | manager.connect('name-appeared', lambda *args: on_player_appeared(*args, arguments.player)) 109 | manager.connect('player-vanished', on_player_vanished) 110 | 111 | signal.signal(signal.SIGINT, signal_handler) 112 | signal.signal(signal.SIGTERM, signal_handler) 113 | 114 | for player in manager.props.player_names: 115 | if arguments.player is not None and arguments.player != player.name: 116 | logger.debug('{player} is not the filtered player, skipping it' 117 | .format(player=player.name) 118 | ) 119 | continue 120 | 121 | init_player(manager, player) 122 | 123 | loop.run() 124 | 125 | 126 | if __name__ == '__main__': 127 | main() 128 | 129 | -------------------------------------------------------------------------------- /waybar/backup/modules/mail.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | import os 4 | import imaplib 5 | 6 | import mailsecrets 7 | 8 | def getmails(username, password, server): 9 | imap = imaplib.IMAP4_SSL(server, 993) 10 | imap.login(username, password) 11 | imap.select('INBOX') 12 | ustatus, uresponse = imap.uid('search', None, 'UNSEEN') 13 | if ustatus == 'OK': 14 | unread_msg_nums = uresponse[0].split() 15 | else: 16 | unread_msg_nums = [] 17 | 18 | fstatus, fresponse = imap.uid('search', None, 'FLAGGED') 19 | if fstatus == 'OK': 20 | flagged_msg_nums = fresponse[0].split() 21 | else: 22 | flagged_msg_nums = [] 23 | 24 | return [len(unread_msg_nums), len(flagged_msg_nums)] 25 | 26 | ping = os.system("ping " + mailsecrets.server + " -c1 > /dev/null 2>&1") 27 | if ping == 0: 28 | mails = getmails(mailsecrets.username, mailsecrets.password, mailsecrets.server) 29 | text = '' 30 | alt = '' 31 | 32 | if mails[0] > 0: 33 | text = alt = str(mails[0]) 34 | if mails[1] > 0: 35 | alt = str(mails[1]) + "  " + alt 36 | else: 37 | exit(1) 38 | 39 | print('{"text":"' + text + '", "alt": "' + alt + '"}') 40 | 41 | else: 42 | exit(1) 43 | 44 | -------------------------------------------------------------------------------- /waybar/backup/modules/spotify.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | class=$(playerctl metadata --player=spotify --format '{{lc(status)}}') 4 | icon="" 5 | 6 | if [[ $class == "playing" ]]; then 7 | info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}') 8 | if [[ ${#info} > 40 ]]; then 9 | info=$(echo $info | cut -c1-40)"..." 10 | fi 11 | text=$info" "$icon 12 | elif [[ $class == "paused" ]]; then 13 | text=$icon 14 | elif [[ $class == "stopped" ]]; then 15 | text="" 16 | fi 17 | 18 | echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}" 19 | 20 | -------------------------------------------------------------------------------- /waybar/backup/modules/storage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mount="/" 4 | warning=20 5 | critical=10 6 | 7 | df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical ' 8 | /\/.*/ { 9 | text=$4 10 | tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6 11 | use=$5 12 | exit 0 13 | } 14 | END { 15 | class="" 16 | gsub(/%$/,"",use) 17 | if ((100 - use) < critical) { 18 | class="critical" 19 | } else if ((100 - use) < warning) { 20 | class="warning" 21 | } 22 | print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}" 23 | } 24 | ' 25 | 26 | -------------------------------------------------------------------------------- /waybar/backup/modules/weather.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cachedir=~/.cache/rbn 4 | cachefile=${0##*/}-$1 5 | 6 | if [ ! -d $cachedir ]; then 7 | mkdir -p $cachedir 8 | fi 9 | 10 | if [ ! -f $cachedir/$cachefile ]; then 11 | touch $cachedir/$cachefile 12 | fi 13 | 14 | # Save current IFS 15 | SAVEIFS=$IFS 16 | # Change IFS to new line. 17 | IFS=$'\n' 18 | 19 | cacheage=$(($(date +%s) - $(stat -c '%Y' "$cachedir/$cachefile"))) 20 | if [ $cacheage -gt 1740 ] || [ ! -s $cachedir/$cachefile ]; then 21 | data=($(curl -s https://en.wttr.in/$1\?0qnT 2>&1)) 22 | echo ${data[0]} | cut -f1 -d, > $cachedir/$cachefile 23 | echo ${data[1]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile 24 | echo ${data[2]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile 25 | fi 26 | 27 | weather=($(cat $cachedir/$cachefile)) 28 | 29 | # Restore IFSClear 30 | IFS=$SAVEIFS 31 | 32 | temperature=$(echo ${weather[2]} | sed -E 's/([[:digit:]])+\.\./\1 to /g') 33 | 34 | #echo ${weather[1]##*,} 35 | 36 | # https://fontawesome.com/icons?s=solid&c=weather 37 | case $(echo ${weather[1]##*,} | tr '[:upper:]' '[:lower:]') in 38 | "clear" | "sunny") 39 | condition="" 40 | ;; 41 | "partly cloudy") 42 | condition="杖" 43 | ;; 44 | "cloudy") 45 | condition="" 46 | ;; 47 | "overcast") 48 | condition="" 49 | ;; 50 | "mist" | "fog" | "freezing fog") 51 | condition="" 52 | ;; 53 | "patchy rain possible" | "patchy light drizzle" | "light drizzle" | "patchy light rain" | "light rain" | "light rain shower" | "rain") 54 | condition="" 55 | ;; 56 | "moderate rain at times" | "moderate rain" | "heavy rain at times" | "heavy rain" | "moderate or heavy rain shower" | "torrential rain shower" | "rain shower") 57 | condition="" 58 | ;; 59 | "patchy snow possible" | "patchy sleet possible" | "patchy freezing drizzle possible" | "freezing drizzle" | "heavy freezing drizzle" | "light freezing rain" | "moderate or heavy freezing rain" | "light sleet" | "ice pellets" | "light sleet showers" | "moderate or heavy sleet showers") 60 | condition="ﭽ" 61 | ;; 62 | "blowing snow" | "moderate or heavy sleet" | "patchy light snow" | "light snow" | "light snow showers") 63 | condition="流" 64 | ;; 65 | "blizzard" | "patchy moderate snow" | "moderate snow" | "patchy heavy snow" | "heavy snow" | "moderate or heavy snow with thunder" | "moderate or heavy snow showers") 66 | condition="ﰕ" 67 | ;; 68 | "thundery outbreaks possible" | "patchy light rain with thunder" | "moderate or heavy rain with thunder" | "patchy light snow with thunder") 69 | condition="" 70 | ;; 71 | *) 72 | condition="" 73 | echo -e "{\"text\":\""$condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}" 74 | ;; 75 | esac 76 | 77 | #echo $temp $condition 78 | 79 | echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}" 80 | 81 | -------------------------------------------------------------------------------- /waybar/backup/waybar.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # Terminate already running bar instances 4 | killall -q waybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -x waybar >/dev/null; do sleep 1; done 8 | 9 | # Launch main 10 | waybar 11 | -------------------------------------------------------------------------------- /waybar/mediaplayer.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import argparse 3 | import logging 4 | import sys 5 | import signal 6 | import gi 7 | import json 8 | gi.require_version('Playerctl', '2.0') 9 | from gi.repository import Playerctl, GLib 10 | 11 | logger = logging.getLogger(__name__) 12 | 13 | 14 | def write_output(text, player): 15 | logger.info('Writing output') 16 | 17 | output = {'text': text, 18 | 'class': 'custom-' + player.props.player_name, 19 | 'alt': player.props.player_name} 20 | 21 | sys.stdout.write(json.dumps(output) + '\n') 22 | sys.stdout.flush() 23 | 24 | 25 | def on_play(player, status, manager): 26 | logger.info('Received new playback status') 27 | on_metadata(player, player.props.metadata, manager) 28 | 29 | 30 | def on_metadata(player, metadata, manager): 31 | logger.info('Received new metadata') 32 | track_info = '' 33 | 34 | if player.props.player_name == 'spotify' and \ 35 | 'mpris:trackid' in metadata.keys() and \ 36 | ':ad:' in player.props.metadata['mpris:trackid']: 37 | track_info = 'AD PLAYING' 38 | elif player.get_artist() != '' and player.get_title() != '': 39 | track_info = '{artist} - {title}'.format(artist=player.get_artist(), 40 | title=player.get_title()) 41 | else: 42 | track_info = player.get_title() 43 | 44 | if player.props.status != 'Playing' and track_info: 45 | track_info = ' ' + track_info 46 | write_output(track_info, player) 47 | 48 | 49 | def on_player_appeared(manager, player, selected_player=None): 50 | if player is not None and (selected_player is None or player.name == selected_player): 51 | init_player(manager, player) 52 | else: 53 | logger.debug("New player appeared, but it's not the selected player, skipping") 54 | 55 | 56 | def on_player_vanished(manager, player): 57 | logger.info('Player has vanished') 58 | sys.stdout.write('\n') 59 | sys.stdout.flush() 60 | 61 | 62 | def init_player(manager, name): 63 | logger.debug('Initialize player: {player}'.format(player=name.name)) 64 | player = Playerctl.Player.new_from_name(name) 65 | player.connect('playback-status', on_play, manager) 66 | player.connect('metadata', on_metadata, manager) 67 | manager.manage_player(player) 68 | on_metadata(player, player.props.metadata, manager) 69 | 70 | 71 | def signal_handler(sig, frame): 72 | logger.debug('Received signal to stop, exiting') 73 | sys.stdout.write('\n') 74 | sys.stdout.flush() 75 | # loop.quit() 76 | sys.exit(0) 77 | 78 | 79 | def parse_arguments(): 80 | parser = argparse.ArgumentParser() 81 | 82 | # Increase verbosity with every occurance of -v 83 | parser.add_argument('-v', '--verbose', action='count', default=0) 84 | 85 | # Define for which player we're listening 86 | parser.add_argument('--player') 87 | 88 | return parser.parse_args() 89 | 90 | 91 | def main(): 92 | arguments = parse_arguments() 93 | 94 | # Initialize logging 95 | logging.basicConfig(stream=sys.stderr, level=logging.DEBUG, 96 | format='%(name)s %(levelname)s %(message)s') 97 | 98 | # Logging is set by default to WARN and higher. 99 | # With every occurrence of -v it's lowered by one 100 | logger.setLevel(max((3 - arguments.verbose) * 10, 0)) 101 | 102 | # Log the sent command line arguments 103 | logger.debug('Arguments received {}'.format(vars(arguments))) 104 | 105 | manager = Playerctl.PlayerManager() 106 | loop = GLib.MainLoop() 107 | 108 | manager.connect('name-appeared', lambda *args: on_player_appeared(*args, arguments.player)) 109 | manager.connect('player-vanished', on_player_vanished) 110 | 111 | signal.signal(signal.SIGINT, signal_handler) 112 | signal.signal(signal.SIGTERM, signal_handler) 113 | 114 | for player in manager.props.player_names: 115 | if arguments.player is not None and arguments.player != player.name: 116 | logger.debug('{player} is not the filtered player, skipping it' 117 | .format(player=player.name) 118 | ) 119 | continue 120 | 121 | init_player(manager, player) 122 | 123 | loop.run() 124 | 125 | 126 | if __name__ == '__main__': 127 | main() 128 | 129 | -------------------------------------------------------------------------------- /waybar/modules/mail.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | import os 4 | import imaplib 5 | 6 | import mailsecrets 7 | 8 | def getmails(username, password, server): 9 | imap = imaplib.IMAP4_SSL(server, 993) 10 | imap.login(username, password) 11 | imap.select('INBOX') 12 | ustatus, uresponse = imap.uid('search', None, 'UNSEEN') 13 | if ustatus == 'OK': 14 | unread_msg_nums = uresponse[0].split() 15 | else: 16 | unread_msg_nums = [] 17 | 18 | fstatus, fresponse = imap.uid('search', None, 'FLAGGED') 19 | if fstatus == 'OK': 20 | flagged_msg_nums = fresponse[0].split() 21 | else: 22 | flagged_msg_nums = [] 23 | 24 | return [len(unread_msg_nums), len(flagged_msg_nums)] 25 | 26 | ping = os.system("ping " + mailsecrets.server + " -c1 > /dev/null 2>&1") 27 | if ping == 0: 28 | mails = getmails(mailsecrets.username, mailsecrets.password, mailsecrets.server) 29 | text = '' 30 | alt = '' 31 | 32 | if mails[0] > 0: 33 | text = alt = str(mails[0]) 34 | if mails[1] > 0: 35 | alt = str(mails[1]) + "  " + alt 36 | else: 37 | exit(1) 38 | 39 | print('{"text":"' + text + '", "alt": "' + alt + '"}') 40 | 41 | else: 42 | exit(1) 43 | 44 | -------------------------------------------------------------------------------- /waybar/modules/spotify.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | class=$(playerctl metadata --player=spotify --format '{{lc(status)}}') 4 | icon="" 5 | 6 | if [[ $class == "playing" ]]; then 7 | info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}') 8 | if [[ ${#info} > 40 ]]; then 9 | info=$(echo $info | cut -c1-40)"..." 10 | fi 11 | text=$info" "$icon 12 | elif [[ $class == "paused" ]]; then 13 | text=$icon 14 | elif [[ $class == "stopped" ]]; then 15 | text="" 16 | fi 17 | 18 | echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}" 19 | 20 | -------------------------------------------------------------------------------- /waybar/modules/storage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mount="/" 4 | warning=20 5 | critical=10 6 | 7 | df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical ' 8 | /\/.*/ { 9 | text=$4 10 | tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6 11 | use=$5 12 | exit 0 13 | } 14 | END { 15 | class="" 16 | gsub(/%$/,"",use) 17 | if ((100 - use) < critical) { 18 | class="critical" 19 | } else if ((100 - use) < warning) { 20 | class="warning" 21 | } 22 | print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}" 23 | } 24 | ' 25 | 26 | -------------------------------------------------------------------------------- /waybar/modules/weather.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cachedir=~/.cache/rbn 4 | cachefile=${0##*/}-$1 5 | 6 | if [ ! -d $cachedir ]; then 7 | mkdir -p $cachedir 8 | fi 9 | 10 | if [ ! -f $cachedir/$cachefile ]; then 11 | touch $cachedir/$cachefile 12 | fi 13 | 14 | # Save current IFS 15 | SAVEIFS=$IFS 16 | # Change IFS to new line. 17 | IFS=$'\n' 18 | 19 | cacheage=$(($(date +%s) - $(stat -c '%Y' "$cachedir/$cachefile"))) 20 | if [ $cacheage -gt 1740 ] || [ ! -s $cachedir/$cachefile ]; then 21 | data=($(curl -s https://en.wttr.in/$1\?0qnT 2>&1)) 22 | echo ${data[0]} | cut -f1 -d, > $cachedir/$cachefile 23 | echo ${data[1]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile 24 | echo ${data[2]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile 25 | fi 26 | 27 | weather=($(cat $cachedir/$cachefile)) 28 | 29 | # Restore IFSClear 30 | IFS=$SAVEIFS 31 | 32 | temperature=$(echo ${weather[2]} | sed -E 's/([[:digit:]])+\.\./\1 to /g') 33 | 34 | #echo ${weather[1]##*,} 35 | 36 | # https://fontawesome.com/icons?s=solid&c=weather 37 | case $(echo ${weather[1]##*,} | tr '[:upper:]' '[:lower:]') in 38 | "clear" | "sunny") 39 | condition="" 40 | ;; 41 | "partly cloudy") 42 | condition="杖" 43 | ;; 44 | "cloudy") 45 | condition="" 46 | ;; 47 | "overcast") 48 | condition="" 49 | ;; 50 | "mist" | "fog" | "freezing fog") 51 | condition="" 52 | ;; 53 | "patchy rain possible" | "patchy light drizzle" | "light drizzle" | "patchy light rain" | "light rain" | "light rain shower" | "rain") 54 | condition="" 55 | ;; 56 | "moderate rain at times" | "moderate rain" | "heavy rain at times" | "heavy rain" | "moderate or heavy rain shower" | "torrential rain shower" | "rain shower") 57 | condition="" 58 | ;; 59 | "patchy snow possible" | "patchy sleet possible" | "patchy freezing drizzle possible" | "freezing drizzle" | "heavy freezing drizzle" | "light freezing rain" | "moderate or heavy freezing rain" | "light sleet" | "ice pellets" | "light sleet showers" | "moderate or heavy sleet showers") 60 | condition="ﭽ" 61 | ;; 62 | "blowing snow" | "moderate or heavy sleet" | "patchy light snow" | "light snow" | "light snow showers") 63 | condition="流" 64 | ;; 65 | "blizzard" | "patchy moderate snow" | "moderate snow" | "patchy heavy snow" | "heavy snow" | "moderate or heavy snow with thunder" | "moderate or heavy snow showers") 66 | condition="ﰕ" 67 | ;; 68 | "thundery outbreaks possible" | "patchy light rain with thunder" | "moderate or heavy rain with thunder" | "patchy light snow with thunder") 69 | condition="" 70 | ;; 71 | *) 72 | condition="" 73 | echo -e "{\"text\":\""$condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}" 74 | ;; 75 | esac 76 | 77 | #echo $temp $condition 78 | 79 | echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}" 80 | 81 | -------------------------------------------------------------------------------- /waybar/nohup.out: -------------------------------------------------------------------------------- 1 | [2024-03-01 10:21:20.833] [info] Using configuration file /home/prtyksh/.config/waybar/config-hypr 2 | [2024-03-01 10:21:20.834] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop 3 | [2024-03-01 10:21:20.834] [info] Using CSS file /home/prtyksh/.config/waybar/style.css 4 | [2024-03-01 10:21:20.840] [warning] Mapping is not an object 5 | [2024-03-01 10:21:20.840] [info] Hyprland IPC starting 6 | [2024-03-01 10:21:20.890] [info] Bar configured (width: 1920, height: 42) for output: eDP-1 7 | -------------------------------------------------------------------------------- /waybar/waybar.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # Terminate already running bar instances 4 | killall -q waybar 5 | 6 | # Wait until the processes have been shut down 7 | while pgrep -x waybar >/dev/null; do sleep 1; done 8 | 9 | # Launch main 10 | waybar 11 | --------------------------------------------------------------------------------