├── .Xresources
├── .vimrc
├── LICENSE
├── README.md
├── bspwm
└── bspwmrc
├── discord
└── elektropunk.theme.css
├── dunst
└── dunstrc
├── header.jpg
├── images
├── cyberwal.png
├── punky.gif
└── wal3.png
├── nvim
├── coc-settings.json
├── colors
│ └── wpgtk.vim
├── init.vim
└── lua
│ └── plug-colorizer.lua
├── picom
└── picom.conf
├── polybar
├── bar_split.ini
├── bar_uni.ini
├── config
├── fonts
│ ├── DroidSans.ttf
│ ├── IosevkaNerdFont-Complete.ttf
│ ├── Linearicons-Free.ttf
│ ├── Material.ttf
│ ├── NotoSans-Regular.ttf
│ └── icomoon-feather.ttf
├── launch.sh
├── panel
│ ├── budgie.ini
│ ├── deepin.ini
│ ├── elementary-dark.ini
│ ├── elementary-light.ini
│ ├── gnome.ini
│ ├── kde-line.ini
│ ├── kde.ini
│ ├── liri.ini
│ ├── mint.ini
│ ├── ubuntu-gnome.ini
│ ├── ubuntu-unity.ini
│ ├── xubuntu.ini
│ └── zorin.ini
├── put_in_home_config
│ ├── cpu-freq.sh
│ ├── cpu-load.sh
│ ├── cpu-scale.sh
│ ├── rofi-wifi-menu
│ │ ├── README.md
│ │ ├── config.example
│ │ ├── rofi-wifi-menu.sh
│ │ └── screenshots
│ │ │ ├── rofi-wifi-menu-default.png
│ │ │ ├── rofi-wifi-menu-desktop.png
│ │ │ ├── rofi-wifi-menu-manual.png
│ │ │ └── rofi-wifi-menu-toggleon.png
│ └── spotify
│ │ ├── launchlistener.sh
│ │ ├── py_spotify_listener.py
│ │ └── spotify_status.py
├── scripts
│ ├── budgie-menu
│ ├── budgie-style
│ ├── budgie-sysmenu
│ ├── deepin-menu
│ ├── deepin-menu.bak
│ ├── deepin-style
│ ├── deepin-sysmenu
│ ├── elementary-menu
│ ├── elementary-menu-alt
│ ├── elementary-style
│ ├── elementary-style-alt
│ ├── elementary-sysmenu
│ ├── elementary-sysmenu-alt
│ ├── gnome-menu
│ ├── gnome-style
│ ├── gnome-sysmenu
│ ├── kde-menu
│ ├── kde-style
│ ├── kde-sysmenu
│ ├── liri-menu
│ ├── liri-style
│ ├── liri-sysmenu
│ ├── mint-menu
│ ├── mint-style
│ ├── mint-sysmenu
│ ├── style
│ ├── ubuntu-menu
│ ├── ubuntu-style
│ ├── ubuntu-sysmenu
│ ├── xubuntu-menu
│ ├── xubuntu-style
│ ├── xubuntu-sysmenu
│ ├── zorin-menu
│ ├── zorin-style
│ └── zorin-sysmenu
└── wallpaper
│ ├── budgie.jpg
│ ├── config
│ ├── elementary-2.jpg
│ ├── elementary.jpg
│ ├── gnome.jpg
│ ├── kde-alt.jpg
│ ├── kde.jpg
│ ├── launch.sh
│ ├── liri.png
│ ├── mint.jpg
│ ├── ubuntu.jpg
│ ├── xubuntu.png
│ └── zorin.png
├── ranger
├── commands.py
├── commands_full.py
├── custom.sh
├── rc.conf
├── rifle.conf
├── scope.sh
└── solarized.py
├── rofi-wifi-menu
├── README.md
├── config.example
├── rofi-wifi-menu.sh
└── screenshots
│ ├── rofi-wifi-menu-default.png
│ ├── rofi-wifi-menu-desktop.png
│ ├── rofi-wifi-menu-manual.png
│ └── rofi-wifi-menu-toggleon.png
├── scripts
├── TL
│ ├── tl
│ └── tlauncher.desktop
├── bspswallow
│ ├── bspswallow
│ └── bspswallow.sh
├── cpu
│ ├── cpu-freq.sh
│ ├── cpu-load.sh
│ └── cpu-scale.sh
├── deadd-notification-center
│ └── deadd.sh
├── keyboard_mouse
│ ├── disable_kb
│ ├── disable_mouse
│ ├── enable_kb
│ ├── enable_mouse
│ ├── install
│ ├── keyboard_toggle.sh
│ └── udev
│ │ └── 91-local.rules
├── markdownify
│ └── markdownify.sh
├── okular
│ └── okular.sh
├── rofi-fb.sh
├── rofi-wifi-menu
│ ├── README.md
│ ├── config.example
│ ├── rofi-wifi-menu.sh
│ └── screenshots
│ │ ├── rofi-wifi-menu-default.png
│ │ ├── rofi-wifi-menu-desktop.png
│ │ ├── rofi-wifi-menu-manual.png
│ │ └── rofi-wifi-menu-toggleon.png
└── spotify-control-polybar
│ ├── launchlistener.sh
│ ├── py_spotify_listener.py
│ └── spotify_status.py
├── slim
├── slim.conf
└── slimlock
│ ├── punk
│ ├── background.png
│ ├── panel.png
│ └── slim.theme
│ └── slimlock.conf
├── spicetify
└── color.ini
├── sxhkd
└── sxhkdrc
└── wpg
├── .current
├── samples
├── wal1.png_wal_sample.png
└── wal3.png_wal_sample.png
├── schemes
├── _home_vaughnvalle__config_wpg_wallpapers_wal1_png_dark_wal__1.1.0.json
└── _home_vaughnvalle__config_wpg_wallpapers_wal3_png_dark_wal__1.1.0.json
├── sequences
├── wallpapers
├── wal1.png
└── wal3.png
├── wp_init.sh
└── wpg.conf
/.Xresources:
--------------------------------------------------------------------------------
1 |
2 | ! -- REMOVE SCROLLBAR -- !
3 | URxvt.scrollBar: false
4 |
5 | !-- FONTS -- !
6 | URxvt.font: xft:Source Code Pro:size=7
7 |
8 | ! -- PERL SCRIPTS -- !
9 | URxvt.perl-ext-common: default,matcher,resize-font
10 |
11 | ! -- CLICKABLE URLS -- !
12 | URxvt.url-launcher: /usr/bin/xdg-open
13 | URxvt.matcher.button: 1
14 |
15 | ! -- BORDER -- !
16 | URxvt.internalBorder: 20
17 |
--------------------------------------------------------------------------------
/.vimrc:
--------------------------------------------------------------------------------
1 | :set number
2 | syntax on
3 | set mouse=a
4 | set showtabline=2
5 |
6 | hi TabLine ctermbg=NONE ctermfg=lightblue cterm=bold
7 | hi TabLineFill ctermbg=NONE ctermfg=darkmagenta cterm=bold
8 | hi TabLineSel ctermbg=NONE ctermfg=165 cterm=bold,underline
9 | hi Title ctermbg=NONE ctermfg=darkyellow cterm=NONE
10 |
11 |
12 | nnoremap Q gT
13 | nnoremap W gt
14 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 8bitrosso
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
Elektropunk
2 |
3 |
4 |
5 |
6 |
7 |
8 | [](https://www.youtube.com/watch?v=zgJlOrzhWjY)
9 |
10 | Elektropunk is a lightweight and minimalist, Cyberpunk 2077-inspired Linux setup using Artix Linux. This setup uses BSPWM as the tiling window manager.
11 |
12 |
13 | Love the content? Help me reach my goal of upgrading my laptop integrated GPU; any amount helps :)
14 |
15 | [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8QCEHJMN43VAE)
16 |
17 | Or consider supporting me __on these platforms:__
18 |
19 | [](https://www.patreon.com/sudo_rice)
20 | [](https://www.youtube.com/sudo_rice)
21 |
22 | ## Dependencies
23 | * bspwm
24 | * sxhkd
25 | * polybar
26 | * ibhagwan's fork of picom
27 | * rofi
28 | * spotify-client
29 | * spicetify Dribblish theme
30 | * URxvt
31 | * zsh
32 | * oh my zsh!
33 | * powerlevel10k
34 | * vim
35 | * slim
36 | * slimlock
37 | * dunst
38 | * wpgtk
39 |
40 | ## Colorscheme WIP
41 | 
42 |
43 | ## Installation (Arch/Artix) WIP
44 |
45 | ### Thanks for dropping by!
46 |
--------------------------------------------------------------------------------
/bspwm/bspwmrc:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | #bspc rule -r "*"
3 | ~/.config/polybar/./launch.sh
4 | sxhkd &
5 | ~/.config/scripts/./dunst.sh
6 | ~/.config/scripts/./bspswallow.sh
7 | conky &
8 | ~/.config/scripts/spotify/./launchlistener.sh &
9 | udiskie &
10 |
11 | #deadd-notification-center &
12 | #compton --experimental-backends &
13 | picom --experimental-backends &
14 | #polybar example &
15 |
16 | bspc monitor -d I II III IV V VI VII VIII IX X
17 |
18 | bspc config border_width 1
19 | bspc config window_gap 15
20 |
21 | bspc config split_ratio 0.52
22 | bspc config borderless_monocle true
23 | bspc config gapless_monocle false
24 | #bspc config border_radius 10
25 |
26 |
27 | bspc rule -a Gimp desktop='^8' state=floating follow=on
28 | bspc rule -a Chromium desktop='^2'
29 | bspc rule -a mplayer2 state=floating
30 | bspc rule -a Kupfer.py focus=on
31 | bspc rule -a Screenkey manage=off
32 |
33 | #CUSTOM
34 | feh --bg-fill $HOME/Downloads/wal3.png &
35 | #wal -i $HOME/Downloads/wal3.png &
36 | . "${HOME}/.cache/wal/colors.sh"
37 | bspc config normal_border_color "#ee00ff"
38 | bspc config active_border_color "#38369C"
39 | bspc config focused_border_color "#00FFFF"
40 | bspc config presel_feedback_color "$color1"
41 | bspc config focus_follows_pointer true
42 | bspc config bottom_padding 30
43 | bspc config top_padding 90
44 | bspc config left_padding 40
45 | bspc config right_padding 40
46 |
47 | ~/.config/wpg/./wp_init.sh &
48 | # Window Rules
49 | #sleep 1
50 | #wmctrl -r Spotify -t 9
51 | #exit
52 | #bspc rule -a Spotify state=floating rectangle=500x500+500+500 sticky=off
53 | #bspc rule -a Alacritty state=floating rectangle 600x900+200+50 sticky=off
54 | bspc rule -a Pavucontrol state=floating rectangle 200x200+50+50 sticky=off
55 |
56 | # Remove x cursor
57 | xsetroot -cursor_name left_ptr &
58 |
59 | #enable touchpad tapping and natural scrolling
60 | xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
61 | xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
62 |
--------------------------------------------------------------------------------
/header.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/header.jpg
--------------------------------------------------------------------------------
/images/cyberwal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/images/cyberwal.png
--------------------------------------------------------------------------------
/images/punky.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/images/punky.gif
--------------------------------------------------------------------------------
/images/wal3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/images/wal3.png
--------------------------------------------------------------------------------
/nvim/coc-settings.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/nvim/coc-settings.json
--------------------------------------------------------------------------------
/nvim/colors/wpgtk.vim:
--------------------------------------------------------------------------------
1 | "s Vim colorscheme file
2 | " Maintainer: Fernando Vásquez
3 | " Last Change: 2001-09-25 07:48:15 Mountain Daylight Time
4 | " URL: http://www.naglenet.org/vim/syntax/adrian.vim
5 | " MAIN URL: http://www.naglenet.org/vim
6 |
7 | " This is my custom syntax file to override the defaults provided with Vim.
8 | " This file should be located in $HOME/vimfiles/colors.
9 |
10 | " This file should automatically be sourced by $RUNTIMEPATH.
11 | " sample #fff
12 | " NOTE(S):
13 | " *(1)
14 | " The color definitions assumes and is intended for a black or dark
15 | " background.
16 |
17 | " *(2)
18 | " This file is specifically in Unix style EOL format so that I can simply
19 | " copy this file between Windows and Unix systems. VIM can source files in
20 | " with the UNIX EOL format (only instead of for DOS) in any
21 | " operating system if the 'fileformats' is not empty and there is no
22 | " just before the on the first line. See ':help :source_crnl' and
23 | " ':help fileformats'.
24 | "
25 | " *(3)
26 | " Move this file to adrian.vim for vim6.0aw.
27 | "
28 |
29 |
30 |
31 | hi clear
32 | set background=dark
33 | if exists("syntax_on")
34 | syntax reset
35 | endif
36 | let g:colors_name = "wpgtk"
37 |
38 | hi TermCursor ctermfg=2 ctermbg=none
39 | hi Normal ctermfg=15 ctermbg=0
40 | hi User1 cterm=none ctermbg=6 ctermfg=15
41 | hi User2 cterm=none ctermbg=8 ctermfg=15
42 | hi Title cterm=none ctermbg=none ctermfg=none
43 | hi TabLineFill cterm=none ctermbg=none ctermfg=15
44 | hi TabLine cterm=none ctermbg=none ctermfg=15
45 | hi TabLineSel cterm=none ctermbg=none ctermfg=0
46 | hi StatusLine cterm=none ctermbg=14 ctermfg=0
47 | hi StatusLineNC cterm=none ctermbg=8 ctermfg=15
48 | hi StatusLineTerm cterm=none ctermfg=12 ctermfg=0
49 | hi StatusLineTermNC cterm=none ctermbg=8 ctermfg=15
50 | hi CursorLine ctermbg=0 cterm=none
51 | hi Visual ctermbg=14 ctermfg=0 cterm=none
52 | hi CursorLineNr ctermfg=6 ctermbg=none cterm=bold
53 | hi LineNr ctermfg=165 ctermbg=none
54 | hi VertSplit ctermfg=0 ctermbg=8 cterm=none
55 | hi Specialkey ctermfg=13 ctermbg=0
56 | hi ErrorMsg ctermfg=0 ctermbg=9
57 | hi Pmenu ctermbg=8 ctermfg=15
58 | hi PmenuSel ctermbg=14 ctermfg=0
59 | hi SpellBad ctermfg=8 ctermbg=9 term=none
60 | hi Comment ctermfg=4 ctermbg=0 cterm=italic
61 | hi MatchParen ctermfg=12 ctermbg=8 cterm=none
62 | hi DiffAdd ctermfg=0
63 | hi DiffDelete ctermfg=0
64 | hi DiffText ctermfg=0
65 | hi DiffChange ctermfg=0
66 | hi YCMWarningSection ctermfg=0 ctermbg=4
67 | hi Special ctermfg=9
68 | hi WarningMsg ctermfg=10
69 | hi MoreMsg ctermfg=15
70 | hi Directory ctermfg=11
71 | hi Folded ctermfg=15 ctermbg=8
72 | hi Underlined term=underline ctermfg=12
73 | hi IncSearch ctermbg=14 ctermfg=13
74 | hi RedrawDebugNormal ctermbg=14 ctermfg=13
75 | hi airline_x_inactive ctermbg=14 ctermfg=13
76 | hi airline_y_inactive ctermbg=14 ctermfg=13
77 | hi airline_z_inactive ctermbg=14 ctermfg=13
78 | hi airline_a_inactive ctermbg=14 ctermfg=13
79 | hi airline_b_inactive ctermbg=14 ctermfg=13
80 | hi airline_c_inactive ctermbg=14 ctermfg=13
81 | hi airline_tab ctermbg=0 ctermfg=14
82 | hi airline_tab_right ctermbg=0 ctermfg=14
83 |
84 | highlight Constant cterm=none ctermfg=2 guifg=#ffa0a0
85 | "highlight Number term=underline ctermfg=DarkGrey guifg=Yellow
86 | highlight Identifier ctermfg=12 cterm=none guifg=#40ffff
87 | highlight Statement ctermfg=10 gui=bold guifg=#ffff60
88 | highlight Keyword ctermfg=13
89 | highlight Conditional ctermfg=11
90 | highlight Number ctermfg=12
91 | highlight PreProc ctermfg=2 guifg=#ff4500
92 | highlight Type ctermfg=13 cterm=italic term=none
93 | highlight Ignore ctermfg=0 guifg=bg
94 | highlight Error ctermfg=0 ctermbg=1 guifg=White guibg=Red
95 | highlight Todo ctermfg=15 ctermbg=8 guifg=Blue guibg=Yellow
96 | highlight SignColumn ctermbg=none ctermfg=12
97 |
98 | " Change the highlight of search matches (for use with :set hls).
99 | highlight Search ctermfg=0 ctermbg=12 guifg=Black guibg=Yellow
100 |
101 | " Change the highlight of visual highlight.
102 |
103 | highlight Float ctermfg=14 guifg=#88AAEE
104 | highlight Exception ctermfg=10 ctermbg=0 guifg=Red guibg=White
105 | highlight Function ctermfg=14
106 | highlight Typedef ctermfg=10 ctermbg=8 gui=italic guifg=White guibg=Blue
107 | highlight SpecialChar ctermfg=12 ctermbg=8 guifg=Black guibg=White
108 | highlight Delimiter ctermfg=15 ctermbg=8 guifg=White guibg=Black
109 | highlight SpecialComment ctermfg=11 ctermbg=8 guifg=Black guibg=Green
110 |
111 | " Common groups that link to default highlighting.
112 | " You can specify other highlighting easily.
113 | hi! link Question Type
114 | hi! link FoldColumn Folded
115 |
116 | highlight link Special Type
117 | highlight link String Constant
118 | highlight link Character Constant
119 | highlight link Boolean Statement
120 | highlight link Repeat Conditional
121 | highlight link Label Type
122 | highlight link Operator Type
123 | highlight link Include PreProc
124 | highlight link Define PreProc
125 | highlight link Macro PreProc
126 | highlight link PreCondit PreProc
127 | highlight link StorageClass Type
128 | highlight link Structure Type
129 | highlight link Tag Special
130 | highlight link Debug Special
131 | highlight link Typedef Type
132 |
133 | "highlight link SpecialChar Special
134 | "highlight link Delimiter Special
135 | "highlight link SpecialComment Special
136 | "highlight link Exception Type
137 |
--------------------------------------------------------------------------------
/nvim/init.vim:
--------------------------------------------------------------------------------
1 |
2 | " Vim personal configs
3 | set number relativenumber
4 | set mouse=a
5 | set showtabline=2
6 | syntax on
7 | colorscheme wpgtk
8 | nnoremap Q gT
9 | nnoremap W gt
10 | set expandtab
11 | set tabstop=2
12 | set shiftwidth=2
13 | inoremap jj
14 | cnoremap jj
15 | nnoremap
16 | nnoremap
17 | nnoremap
18 | nnoremap
19 | set splitbelow
20 | set splitright
21 | nnoremap :m .+1==
22 | nnoremap :m .-2==
23 | inoremap :m .+1==gi
24 | inoremap :m .-2==gi
25 | vnoremap :m '>+1gv=gv
26 | vnoremap :m '<-2gv=gv
27 |
28 | " Make Ranger replace netrw and be the file explorer
29 | let g:rnvimr_ex_enable = 1
30 | " Change the border's color
31 | let g:rnvimr_border_attr = {'fg': 14, 'bg': -1}
32 | let g:rnvimr_ranger_cmd = 'ranger --cmd="set column_ratios 1,1"
33 | \ --cmd="set draw_borders both"'
34 |
35 | nmap r :RnvimrToggle
36 |
37 | " Airline configs
38 | let g:airline_powerline_fonts = 1
39 | let g:airline#extensions#tabline#enabled = 1
40 | let g:airline_theme='base16'
41 |
42 | " Prettier configs
43 | let g:prettier#autoformat_require_pragma = 0
44 | let g:prettier#quickfix_enabled = 0
45 | let g:prettier#config#tab_width = 2
46 | let g:prettier#config#use_tabs = 'false'
47 | let g:prettier#autoformat = 0
48 | " autocmd BufWritePre *.js,*.json,*.css,*.scss,*.less,*.graphql PrettierAsync
49 |
50 | " NERDtree configs
51 | map :NERDTreeToggle
52 |
53 | " Visual block indentation
54 | vnoremap > >gv
55 | vnoremap < ' to make sure tab is not mapped by
86 | " other plugin before putting this into your config.
87 | inoremap
88 | \ pumvisible() ? "\" :
89 | \ check_back_space() ? "\" :
90 | \ coc#refresh()
91 | inoremap pumvisible() ? "\" : "\"
92 |
93 | function! s:check_back_space() abort
94 | let col = col('.') - 1
95 | return !col || getline('.')[col - 1] =~# '\s'
96 | endfunction
97 |
98 | " Use to trigger completion.
99 | if has('nvim')
100 | inoremap coc#refresh()
101 | else
102 | inoremap coc#refresh()
103 | endif
104 |
105 | " Use to confirm completion, `u` means break undo chain at current
106 | " position. Coc only does snippet and additional edit on confirm.
107 | " could be remapped by other vim plugin, try `:verbose imap `.
108 | if exists('*complete_info')
109 | inoremap complete_info()["selected"] != "-1" ? "\" : "\u\"
110 | else
111 | inoremap pumvisible() ? "\" : "\u\"
112 | endif
113 |
114 | " Use `[g` and `]g` to navigate diagnostics
115 | " Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
116 | nmap [g (coc-diagnostic-prev)
117 | nmap ]g (coc-diagnostic-next)
118 |
119 | " GoTo code navigation.
120 | nmap gd (coc-definition)
121 | nmap gy (coc-type-definition)
122 | nmap gi (coc-implementation)
123 | nmap gr (coc-references)
124 |
125 | " Use K to show documentation in preview window.
126 | nnoremap K :call show_documentation()
127 |
128 | function! s:show_documentation()
129 | if (index(['vim','help'], &filetype) >= 0)
130 | execute 'h '.expand('')
131 | else
132 | call CocAction('doHover')
133 | endif
134 | endfunction
135 |
136 | " Highlight the symbol and its references when holding the cursor.
137 | autocmd CursorHold * silent call CocActionAsync('highlight')
138 |
139 | " Symbol renaming.
140 | nmap rn (coc-rename)
141 |
142 | " Formatting selected code.
143 | xmap f (coc-format-selected)
144 | nmap f (coc-format-selected)
145 |
146 | augroup mygroup
147 | autocmd!
148 | " Setup formatexpr specified filetype(s).
149 | autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
150 | " Update signature help on jump placeholder.
151 | autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
152 | augroup end
153 |
154 | " Applying codeAction to the selected region.
155 | " Example: `aap` for current paragraph
156 | xmap a (coc-codeaction-selected)
157 | nmap a (coc-codeaction-selected)
158 |
159 | " Remap keys for applying codeAction to the current buffer.
160 | nmap ac (coc-codeaction)
161 | " Apply AutoFix to problem on the current line.
162 | nmap qf (coc-fix-current)
163 |
164 | " Map function and class text objects
165 | " NOTE: Requires 'textDocument.documentSymbol' support from the language server.
166 | xmap if (coc-funcobj-i)
167 | omap if (coc-funcobj-i)
168 | xmap af (coc-funcobj-a)
169 | omap af (coc-funcobj-a)
170 | xmap ic (coc-classobj-i)
171 | omap ic (coc-classobj-i)
172 | xmap ac (coc-classobj-a)
173 | omap ac (coc-classobj-a)
174 |
175 | " Use CTRL-S for selections ranges.
176 | " Requires 'textDocument/selectionRange' support of LS, ex: coc-tsserver
177 | nmap (coc-range-select)
178 | xmap (coc-range-select)
179 |
180 | " Add `:Format` command to format current buffer.
181 | command! -nargs=0 Format :call CocAction('format')
182 |
183 | " Add `:Fold` command to fold current buffer.
184 | command! -nargs=? Fold :call CocAction('fold', )
185 |
186 | " Add `:OR` command for organize imports of the current buffer.
187 | command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
188 |
189 | " Add (Neo)Vim's native statusline support.
190 | " NOTE: Please see `:h coc-status` for integrations with external plugins that
191 | " provide custom statusline: lightline.vim, vim-airline.
192 | set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
193 |
194 | " Mappings for CoCList
195 | " Show all diagnostics.
196 | nnoremap a :CocList diagnostics
197 | " Manage extensions.
198 | nnoremap e :CocList extensions
199 | " Show commands.
200 | nnoremap c :CocList commands
201 | " Find symbol of current document.
202 | nnoremap o :CocList outline
203 | " Search workspace symbols.
204 | nnoremap s :CocList -I symbols
205 | " Do default action for next item.
206 | nnoremap j :CocNext
207 | " Do default action for previous item.
208 | nnoremap k :CocPrev
209 | " Resume latest coc list.
210 | nnoremap p :CocListResume
211 |
212 | "Vim Plugins
213 | call plug#begin()
214 | Plug 'neoclide/coc.nvim', {'branch': 'release'}
215 | Plug 'preservim/nerdtree'
216 | Plug 'ap/vim-css-color'
217 | Plug 'jiangmiao/auto-pairs'
218 | Plug 'machakann/vim-sandwich'
219 | Plug 'preservim/nerdcommenter'
220 | Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
221 | Plug 'junegunn/fzf.vim'
222 | Plug 'tpope/vim-sleuth'
223 | Plug 'dense-analysis/ale'
224 | Plug 'junegunn/goyo.vim'
225 | Plug 'mattn/emmet-vim'
226 | Plug 'psliwka/vim-smoothie'
227 | Plug 'editorconfig/editorconfig-vim'
228 | Plug 'airblade/vim-gitgutter'
229 | Plug 'tpope/vim-fugitive'
230 | Plug 'honza/vim-snippets'
231 | Plug 'itchyny/vim-gitbranch'
232 | Plug 'chrisbra/colorizer'
233 | Plug 'vim-airline/vim-airline'
234 | Plug 'vim-airline/vim-airline-themes'
235 | Plug 'deviantfero/wpgtk.vim'
236 | Plug 'gko/vim-coloresque'
237 | Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
238 | Plug 'andymass/vim-matchup'
239 | Plug 'francoiscabrol/ranger.vim'
240 | Plug 'kevinhwang91/rnvimr', {'do': 'make sync'}
241 | Plug 'rbgrouleff/bclose.vim'
242 | call plug#end()
243 |
244 | " Colors
245 | hi airline_x_inactive ctermbg=14 ctermfg=13
246 | hi airline_y_inactive ctermbg=14 ctermfg=13
247 | hi airline_z_inactive ctermbg=14 ctermfg=13
248 | hi airline_a_inactive ctermbg=14 ctermfg=13
249 | hi airline_b_inactive ctermbg=14 ctermfg=13
250 | hi airline_c_inactive ctermbg=14 ctermfg=13
251 | hi airline_tab ctermbg=0 ctermfg=14
252 |
--------------------------------------------------------------------------------
/nvim/lua/plug-colorizer.lua:
--------------------------------------------------------------------------------
1 | require'colorizer'.setup(
2 | {'*';},
3 | {
4 | RGB = true; -- #RGB hex codes
5 | RRGGBB = true; -- #RRGGBB hex codes
6 | names = true; -- "Name" codes like Blue
7 | RRGGBBAA = true; -- #RRGGBBAA hex codes
8 | rgb_fn = true; -- CSS rgb() and rgba() functions
9 | hsl_fn = true; -- CSS hsl() and hsla() functions
10 | css = true; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
11 | css_fn = true; -- Enable all CSS *functions*: rgb_fn, hsl_fn
12 | })
13 |
--------------------------------------------------------------------------------
/polybar/fonts/DroidSans.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/fonts/DroidSans.ttf
--------------------------------------------------------------------------------
/polybar/fonts/IosevkaNerdFont-Complete.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/fonts/IosevkaNerdFont-Complete.ttf
--------------------------------------------------------------------------------
/polybar/fonts/Linearicons-Free.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/fonts/Linearicons-Free.ttf
--------------------------------------------------------------------------------
/polybar/fonts/Material.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/fonts/Material.ttf
--------------------------------------------------------------------------------
/polybar/fonts/NotoSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/fonts/NotoSans-Regular.ttf
--------------------------------------------------------------------------------
/polybar/fonts/icomoon-feather.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/fonts/icomoon-feather.ttf
--------------------------------------------------------------------------------
/polybar/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ## Add this to your wm startup file.
4 |
5 | # Terminate already running bar instances
6 | killall -q polybar
7 |
8 | # Wait until the processes have been shut down
9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
10 |
11 | # Launch bar1 and bar2
12 | if type "xrandr"; then
13 | for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
14 | MONITOR=$m polybar --reload logo &
15 | MONITOR=$m polybar --reload left &
16 | MONITOR=$m polybar --reload music &
17 | MONITOR=$m polybar --reload right &
18 |
19 |
20 | done
21 | else
22 | polybar logo &
23 | polybar left &
24 | polybar music &
25 | polybar right &
26 | fi
27 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/cpu-freq.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | c=0;t=0
3 |
4 | awk '/MHz/ {print $4}' < /proc/cpuinfo | (while read -r i
5 | do
6 | t=$( echo "$t + $i" | bc )
7 | c=$((c+1))
8 | done
9 | echo "scale=2; $t / $c / 1000" | bc | awk '{print $1" GHz"}')
10 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/cpu-load.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | a=`awk '{print $1}' < /proc/loadavg`
4 | b=`awk '{print $2}' < /proc/loadavg`
5 | c=`awk '{print $3}' < /proc/loadavg`
6 |
7 | echo "scale=2; ($a + $b + $c)/3" | bc
8 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/cpu-scale.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | #echo "CPU Power mode (h/m/l):"
4 | case "$1" in
5 | h) sudo cpupower frequency-set -u 3500MHz -d 3000MHz;;
6 | m) sudo cpupower frequency-set -u 3500MHz -d 800MHz;;
7 | l) sudo cpupower frequency-set -u 1000MHz -d 800MHZ;;
8 | #*) echo "CPU Power mode (h/m/l):" ;;
9 | esac
10 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/rofi-wifi-menu/README.md:
--------------------------------------------------------------------------------
1 | # rofi-wifi-menu
2 | A wifi menu for i3/openbox/etc. written in bash. Uses rofi and nmcli.
3 |
4 | ## Table of Contents
5 | * [Screenshots](#screenshots)
6 | * [Requirements](#requirements)
7 | * [Optional](#optional)
8 | * [Installation](#installation)
9 | * [Configuration](#configuration)
10 | * [position](#position)
11 | * [y-offset](#y-offset)
12 | * [x-offset](#x-offset)
13 | * [fields](#fields)
14 | * [ToDo](#todo)
15 |
16 | ### Screenshots
17 |
18 | #### Desktop
19 | 
20 |
21 | #### Default
22 | 
23 |
24 | #### Manual Entry
25 | 
26 |
27 | #### Toggle On
28 | 
29 |
30 | ### Requirements
31 |
32 | * nmcli
33 | * iw
34 | * rofi ( _I may end up expanding compatibility to dmenu_ )
35 | * bash ( _but you probably already knew that_ )
36 |
37 | #### _Optional_
38 |
39 | * lemonbar (or some other bar, i.e. tint2)
40 | * openbox/i3/etc.
41 |
42 | ### Installation
43 | * make sure you have all the dependencies installed
44 |
45 | * run the following commands in your terminal. Replace uppercase variables with personal choice
46 | ```
47 | cd DESIRED_DIRECTORY
48 | git clone https://github.com/zbaylin/rofi-wifi-menu.git
49 | cd rofi-wifi-menu
50 | bash "./rofi-wifi-menu.sh"
51 | ```
52 |
53 | ### Configuration
54 | rofi-wifi-menu has an example configuration file in the repository. It will run without it, but will warn you if it does not exist.
55 |
56 | To configure rofi-wifi-menu, first cd into the directory it is installed into. Then edit the file `config.example`.
57 | It should contain the following variables:
58 | * position
59 | * y-offset
60 | * x-offset
61 | * fields
62 |
63 | #### position
64 | position can be configured where the number represents the position on this screen in this way
65 |
66 | | *Screen* | Left | Right | Center |
67 | |------------|------|-------|--------|
68 | | **Top** | 1 | 2 | 3 |
69 | | **Center** | 8 | 0 | 4 |
70 | | **Bottom** | 7 | 6 | 5 |
71 |
72 | #### y-offset
73 |
74 | y-offset is measured in pixels. A positive value moves the window downward, while a negative value moves it upward.
75 |
76 | #### x-offset
77 |
78 | x-offset is measured in pixels. A positive value move the window rightward, while a negative value moves it leftward.
79 |
80 | #### fields
81 |
82 | fields choose what is displayed by the menu. The available fields are as follows:
83 |
84 | `NAME,SSID,SSID-HEX,BSSID,MODE,CHAN,FREQ,RATE,SIGNAL,BARS,SECURITY,WPA-FLAGS,RSN-FLAGS,DEVICE,ACTIVE,IN-USE,DBUS-PATH`
85 |
86 | ### ToDo
87 |
88 | ✔️ Add ability to manually specify SSID
89 |
90 | ✔️ Add ability to configure the script externally
91 |
92 | ✔️ Use rofi highlighting
93 |
94 | ❌ Add more forms of security (PEAP, etc.)
95 |
96 | ❌ Remove duplicate APs
97 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/rofi-wifi-menu/config.example:
--------------------------------------------------------------------------------
1 | # Config for rofi-wifi-menu
2 |
3 | # position values:
4 | # 1 2 3
5 | # 8 0 4
6 | # 7 6 5
7 | POSITION=3
8 |
9 | #y-offset
10 | YOFF=17
11 |
12 | #x-offset
13 | XOFF=0
14 |
15 | #fields to be displayed
16 | FIELDS=SSID,SECURITY,BARS
17 |
18 | #font
19 | FONT="DejaVu Sans Mono 8"
20 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/rofi-wifi-menu/rofi-wifi-menu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Starts a scan of available broadcasting SSIDs
4 | # nmcli dev wifi rescan
5 |
6 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7 |
8 | BORDER="#ee00ff"
9 | #BORDER="#59000000"
10 | SEPARATOR="#00000000"
11 | FOREGROUND="#00FFFF"
12 | #BACKGROUND="#59000000"
13 | BACKGROUND="#07001D"
14 | BACKGROUND_ALT="#00000000"
15 | #HIGHLIGHT_BACKGROUND="#59000000"
16 | HIGHLIGHT_BACKGROUND="#07001d"
17 | HIGHLIGHT_FOREGROUND="#ee00ff"
18 | MAGENTA="#00897b"
19 | BLUE="#f5f6d4"
20 | FIELDS=SSID,SECURITY
21 | POSITION=0
22 | YOFF=0
23 | XOFF=0
24 | FONT="DejaVu Sans Mono 8"
25 |
26 | source ~/.config/rofi/wifi
27 |
28 | LIST=$(nmcli --fields "$FIELDS" device wifi list | sed '/^--/d')
29 | # For some reason rofi always approximates character width 2 short... hmmm
30 | RWIDTH=$(($(echo "$LIST" | head -n 1 | awk '{print length($0); }')+2))
31 | # Dynamically change the height of the rofi menu
32 | LINENUM=$(echo "$LIST" | wc -l)
33 | # Gives a list of known connections so we can parse it later
34 | KNOWNCON=$(nmcli connection show)
35 | # Really janky way of telling if there is currently a connection
36 | CONSTATE=$(nmcli -fields WIFI g)
37 |
38 | CURRSSID=$(LANGUAGE=C nmcli -t -f active,ssid dev wifi | awk -F: '$1 ~ /^yes/ {print $2}')
39 |
40 | if [[ ! -z $CURRSSID ]]; then
41 | HIGHLINE=$(echo "$(echo "$LIST" | awk -F "[ ]{2,}" '{print $1}' | grep -Fxn -m 1 "$CURRSSID" | awk -F ":" '{print $1}') + 1" | bc )
42 | fi
43 |
44 | # HOPEFULLY you won't need this as often as I do
45 | # If there are more than 8 SSIDs, the menu will still only have 8 lines
46 | if [ "$LINENUM" -gt 8 ] && [[ "$CONSTATE" =~ "enabled" ]]; then
47 | LINENUM=8
48 | elif [[ "$CONSTATE" =~ "disabled" ]]; then
49 | LINENUM=1
50 | fi
51 |
52 |
53 | if [[ "$CONSTATE" =~ "enabled" ]]; then
54 | TOGGLE="toggle off"
55 | elif [[ "$CONSTATE" =~ "disabled" ]]; then
56 | TOGGLE="toggle on"
57 | fi
58 |
59 |
60 |
61 | CHENTRY=$(echo -e "$TOGGLE\nmanual\n$LIST" | uniq -u | rofi -dmenu -p "Wi-Fi SSID: " -lines "$LINENUM" -a "$HIGHLINE" -location "$POSITION" -yoffset "$YOFF" -xoffset "$XOFF" -font "$FONT" -width -"$RWIDTH" -padding 20 -color-enabled true -color-window "$BACKGROUND,$BORDER,$SEPARATOR" -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" -color-urgent "$BACKGROUND,$BLUE,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND")
62 | #echo "$CHENTRY"
63 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $1}')
64 | #echo "$CHSSID"
65 |
66 | # If the user inputs "manual" as their SSID in the start window, it will bring them to this screen
67 | if [ "$CHENTRY" = "manual" ] ; then
68 | # Manual entry of the SSID and password (if appplicable)
69 | MSSID=$(echo "enter the SSID of the network (SSID,password)" | rofi -dmenu -p "Manual Entry: " -font "$FONT" -lines 1)
70 | # Separating the password from the entered string
71 | MPASS=$(echo "$MSSID" | awk -F "," '{print $2}')
72 |
73 | #echo "$MSSID"
74 | #echo "$MPASS"
75 |
76 | # If the user entered a manual password, then use the password nmcli command
77 | if [ "$MPASS" = "" ]; then
78 | nmcli dev wifi con "$MSSID"
79 | else
80 | nmcli dev wifi con "$MSSID" password "$MPASS"
81 | fi
82 |
83 | elif [ "$CHENTRY" = "toggle on" ]; then
84 | nmcli radio wifi on
85 |
86 | elif [ "$CHENTRY" = "toggle off" ]; then
87 | nmcli radio wifi off
88 |
89 | else
90 |
91 | # If the connection is already in use, then this will still be able to get the SSID
92 | if [ "$CHSSID" = "*" ]; then
93 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $3}')
94 | fi
95 |
96 | # Parses the list of preconfigured connections to see if it already contains the chosen SSID. This speeds up the connection process
97 | if [[ $(echo "$KNOWNCON" | grep "$CHSSID") = "$CHSSID" ]]; then
98 | nmcli con up "$CHSSID"
99 | else
100 | if [[ "$CHENTRY" =~ "WPA2" ]] || [[ "$CHENTRY" =~ "WEP" ]]; then
101 | WIFIPASS=$(echo "if connection is stored, hit enter" | rofi -dmenu -p "password: " -lines 1 -font "$FONT" )
102 | fi
103 | nmcli dev wifi con "$CHSSID" password "$WIFIPASS"
104 | fi
105 |
106 | fi
107 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-default.png
--------------------------------------------------------------------------------
/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-desktop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-desktop.png
--------------------------------------------------------------------------------
/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-manual.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-manual.png
--------------------------------------------------------------------------------
/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-toggleon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/put_in_home_config/rofi-wifi-menu/screenshots/rofi-wifi-menu-toggleon.png
--------------------------------------------------------------------------------
/polybar/put_in_home_config/spotify/launchlistener.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | /usr/bin/env python3 ~/.config/scripts/spotify/py_spotify_listener.py
4 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/spotify/py_spotify_listener.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 | # Unwrap function: (C)2011-2015 Dennis Kaarsemaker
3 | # License: GPL3+
4 | """Receiver related functionality."""
5 | import dbus.service
6 | import dbus.glib
7 | from os import system
8 | from gi.repository import GObject
9 | import dbus
10 |
11 |
12 | class Test(dbus.service.Object):
13 | """Reciever test class."""
14 |
15 | loop = None
16 |
17 | def __init__(self, bus_name, object_path, loop):
18 | """Initialize the DBUS service object."""
19 | dbus.service.Object.__init__(self, bus_name, object_path)
20 | self.loop = loop
21 |
22 | @dbus.service.method('tld.domain.sub.TestInterface')
23 | def foo(self):
24 | """Return a string."""
25 | return 'Foo'
26 |
27 | # Stop the main loop
28 | @dbus.service.method('tld.domain.sub.TestInterface')
29 | def stop(self):
30 | """Stop the receiver."""
31 | self.loop.quit()
32 | return 'Quit loop'
33 |
34 | # Pass an exception through dbus
35 | @dbus.service.method('tld.domain.sub.TestInterface')
36 | def fail(self):
37 | """Trigger an exception."""
38 | raise Exception('FAIL!')
39 |
40 |
41 | def catchall_handler(*args, **kwargs):
42 | """Catch all handler.
43 | Catch and print information about all singals.
44 | """
45 | print('---- Caught signal ----')
46 | print('%s:%s\n' % (kwargs['dbus_interface'], kwargs['member']))
47 |
48 | print("\n")
49 |
50 | def quit_handler():
51 | """Signal handler for quitting the receiver."""
52 | print('Quitting....')
53 | loop.quit()
54 |
55 | def event_handler(*args, **kwargs):
56 | """event handler for the receiver."""
57 | """arg[1] contains metadata"""
58 | """arg[1][1] contains PlaybackStatus"""
59 | data = unwrap(args)
60 | if 'spotify' in data[1]['Metadata']['mpris:trackid']:
61 | if data[1]['PlaybackStatus'] == "Playing":
62 | print("Music is playing")
63 | system("polybar-msg hook playpause 2")
64 | """ Send IPC hook 2 to all bars for module playpause """
65 | if data[1]['PlaybackStatus'] == "Paused":
66 | print("Music is paused.")
67 | """ Send IPC hook 3 to all bars module playpause """
68 | system("polybar-msg hook playpause 3")
69 | """ Send IPC hook 2 to all bars for module spotify """
70 | system("polybar-msg hook spotify 2")
71 |
72 | def unwrap(val):
73 | if isinstance(val, dbus.ByteArray):
74 | return "".join([str(x) for x in val])
75 | if isinstance(val, (dbus.Array, list, tuple)):
76 | return [unwrap(x) for x in val]
77 | if isinstance(val, (dbus.Dictionary, dict)):
78 | return dict([(unwrap(x), unwrap(y)) for x, y in val.items()])
79 | if isinstance(val, (dbus.Signature, dbus.String)):
80 | return str(val)
81 | if isinstance(val, dbus.Boolean):
82 | return bool(val)
83 | if isinstance(val, (dbus.Int16, dbus.UInt16, dbus.Int32, dbus.UInt32, dbus.Int64, dbus.UInt64)):
84 | return int(val)
85 | if isinstance(val, dbus.Byte):
86 | return bytes([int(val)])
87 | return val
88 |
89 | loop = GObject.MainLoop()
90 |
91 | """
92 | First we get the bus to attach to. This may be either the session bus, of the
93 | system bus. For system bus root permission is required.
94 | We claim a bus name on the chosen bus. The name should be in form of a
95 | domain name.
96 | """
97 | bus = dbus.SessionBus()
98 | # bus = dbus.SystemBus()
99 | bus_name = dbus.service.BusName('sub.domain.tld', bus=bus)
100 |
101 | """
102 | We initialize our service object with our name and object path. Object
103 | path should be in form of a reverse domain dame, delimited by / instead of .
104 | and the Class name as last part.
105 | The object path we set here is of importance for our invoker, since it will to
106 | call it exactly as defined here.
107 | """
108 | obj = Test(bus_name, '/tld/domain/sub/Test', loop)
109 |
110 |
111 | """
112 | Attach signal handler.
113 | Signal handlers may be attached in different ways, either by interface keyword
114 | or DBUS interface and a signal name or member keyword.
115 | You can easily gather all information by running the DBUS monitor.
116 | """
117 | bus.add_signal_receiver(quit_handler,
118 | dbus_interface='tld.domain.sub.event',
119 | signal_name='quit_signal')
120 | bus.add_signal_receiver(event_handler,
121 | dbus_interface='org.freedesktop.DBus.Properties',
122 | member_keyword='PropertiesChanged')
123 |
124 | loop.run()
125 |
--------------------------------------------------------------------------------
/polybar/put_in_home_config/spotify/spotify_status.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | import sys
4 | import dbus
5 | import argparse
6 |
7 |
8 | parser = argparse.ArgumentParser()
9 | parser.add_argument(
10 | '-t',
11 | '--trunclen',
12 | type=int,
13 | metavar='trunclen'
14 | )
15 | parser.add_argument(
16 | '-f',
17 | '--format',
18 | type=str,
19 | metavar='custom format',
20 | dest='custom_format'
21 | )
22 | args = parser.parse_args()
23 |
24 | # Default parameters
25 | output = '{artist} - {song}'
26 | trunclen = 25
27 |
28 | # parameters can be overwritten by args
29 | if args.trunclen is not None:
30 | trunclen = args.trunclen
31 | if args.custom_format is not None:
32 | output = args.custom_format
33 |
34 | try:
35 | session_bus = dbus.SessionBus()
36 | spotify_bus = session_bus.get_object(
37 | 'org.mpris.MediaPlayer2.spotify',
38 | '/org/mpris/MediaPlayer2'
39 | )
40 |
41 | spotify_properties = dbus.Interface(
42 | spotify_bus,
43 | 'org.freedesktop.DBus.Properties'
44 | )
45 |
46 | metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
47 |
48 | artist = metadata['xesam:artist'][0]
49 | song = metadata['xesam:title']
50 |
51 | if len(song) > trunclen:
52 | song = song[0:trunclen]
53 | song += '...'
54 | if ('(' in song) and (')' not in song):
55 | song += ')'
56 |
57 | # Python3 uses UTF-8 by default.
58 | if sys.version_info.major == 3:
59 | print(output.format(artist=artist, song=song))
60 | else:
61 | print(output.format(artist=artist, song=song).encode('UTF-8'))
62 | except Exception as e:
63 | if isinstance(e, dbus.exceptions.DBusException):
64 | print('')
65 | else:
66 | print(e)
67 |
68 |
--------------------------------------------------------------------------------
/polybar/scripts/budgie-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#383C4A"
6 | SEPARATOR="#383C4A"
7 | FOREGROUND="#B0B0B0"
8 | BACKGROUND="#383C4A"
9 | BACKGROUND_ALT="#3C4150"
10 | HIGHLIGHT_BACKGROUND="#476B99"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 0 \
41 | -lines 10 \
42 | -line-padding 10 \
43 | -padding 20 \
44 | -width 30 \
45 | -xoffset 10 -yoffset 40 \
46 | -location 1 \
47 | -columns 2 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Noto Sans 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/budgie-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#383C4A"
9 | SEPARATOR="#383C4A"
10 | FOREGROUND="#B0B0B0"
11 | BACKGROUND="#383C4A"
12 | BACKGROUND_ALT="#3C4150"
13 | HIGHLIGHT_BACKGROUND="#476B99"
14 | HIGHLIGHT_FOREGROUND="#FFFFFF"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 10 \
47 | -line-padding 10 \
48 | -padding 20 \
49 | -width 15 \
50 | -xoffset -10 -yoffset 40 \
51 | -location 3 \
52 | -columns 1 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/budgie-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#383C4A"
6 | SEPARATOR="#383C4A"
7 | FOREGROUND="#B0B0B0"
8 | BACKGROUND="#383C4A"
9 | BACKGROUND_ALT="#3C4150"
10 | HIGHLIGHT_BACKGROUND="#476B99"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 10 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset -10 -yoffset 40 \
45 | -location 3 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/deepin-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#ee00ff"
6 | #BORDER="#59000000"
7 | SEPARATOR="#00000000"
8 | FOREGROUND="#00FFFF"
9 | #BACKGROUND="#59000000"
10 | BACKGROUND="#07001D"
11 | BACKGROUND_ALT="#00000000"
12 | #HIGHLIGHT_BACKGROUND="#59000000"
13 | HIGHLIGHT_BACKGROUND="#07001d"
14 | HIGHLIGHT_FOREGROUND="#ee00ff"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | #BLUE="#1e88e5"
22 | BLUE="#f5f6d4"
23 | MAGENTA="#00897b"
24 | CYAN="#00acc1"
25 | PINK="#d81b60"
26 | PURPLE="#8e24aa"
27 | INDIGO="#3949ab"
28 | TEAL="#00897b"
29 | LIME="#c0ca33"
30 | AMBER="#ffb300"
31 | ORANGE="#fb8c00"
32 | BROWN="#6d4c41"
33 | GREY="#757575"
34 | BLUE_GREY="#546e7a"
35 | DEEP_PURPLE="#5e35b1"
36 | DEEP_ORANGE="#f4511e"
37 | LIGHT_BLUE="#039be5"
38 | LIGHT_GREEN="#7cb342"
39 |
40 | # Launch Rofi
41 | #rofi -no-lazy-grab -show drun \
42 | #-display-drun "Applications :" -drun-display-format "{name}" \
43 | rofi -no-lazy-grab -modi "Files:~/.config/scripts/rofi-fb.sh,calc" -terse -combi-modi drun,run,window,Files,calc -show combi -no-show-match -no-sort \
44 | -display-combi "Power Menu " \
45 | -display-ssh "SSH " \
46 | -hide-scrollbar true \
47 | -bw 1 \
48 | -lines 5 \
49 | -line-padding 8 \
50 | -padding 20 \
51 | -width 18 \
52 | -xoffset 55 -yoffset -750 \
53 | -location 7 \
54 | -columns 1 \
55 | -show-icons -icon-theme "Papirus" \
56 | -font "Noto Sans 9" \
57 | -color-enabled true \
58 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
59 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
61 | -color-urgent "$BACKGROUND,$BLUE,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
62 |
63 | # More Options
64 | #-fullscreen \
65 |
66 | # Theming help
67 | # color window = background, border, separator
68 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
70 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
71 |
--------------------------------------------------------------------------------
/polybar/scripts/deepin-menu.bak:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#59000000"
6 | SEPARATOR="#00000000"
7 | FOREGROUND="#FFFFFF"
8 | BACKGROUND="#59000000"
9 | BACKGROUND_ALT="#00000000"
10 | #HIGHLIGHT_BACKGROUND="#59000000"
11 | HIGHLIGHT_BACKGROUND="#F5F6D4"
12 | HIGHLIGHT_FOREGROUND="#000000"
13 |
14 | BLACK="#000000"
15 | WHITE="#ffffff"
16 | RED="#e53935"
17 | GREEN="#43a047"
18 | YELLOW="#fdd835"
19 | #BLUE="#1e88e5"
20 | BLUE="#f5f6d4"
21 | MAGENTA="#00897b"
22 | CYAN="#00acc1"
23 | PINK="#d81b60"
24 | PURPLE="#8e24aa"
25 | INDIGO="#3949ab"
26 | TEAL="#00897b"
27 | LIME="#c0ca33"
28 | AMBER="#ffb300"
29 | ORANGE="#fb8c00"
30 | BROWN="#6d4c41"
31 | GREY="#757575"
32 | BLUE_GREY="#546e7a"
33 | DEEP_PURPLE="#5e35b1"
34 | DEEP_ORANGE="#f4511e"
35 | LIGHT_BLUE="#039be5"
36 | LIGHT_GREEN="#7cb342"
37 |
38 | # Launch Rofi
39 | rofi -no-lazy-grab -show drun \
40 | -display-drun "Applications :" -drun-display-format "{name}" \
41 | -hide-scrollbar true \
42 | -bw 0 \
43 | -lines 10 \
44 | -line-padding 8 \
45 | -padding 20 \
46 | -width 30 \
47 | -xoffset 190 -yoffset -585 \
48 | -location 7 \
49 | -columns 2 \
50 | -show-icons -icon-theme "Papirus" \
51 | -font "Noto Sans 9" \
52 | -color-enabled true \
53 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
54 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
55 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
56 | -color-urgent "$BACKGROUND,$BLUE,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
57 |
58 | # More Options
59 | #-fullscreen \
60 |
61 | # Theming help
62 | # color window = background, border, separator
63 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
64 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
65 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
66 |
--------------------------------------------------------------------------------
/polybar/scripts/deepin-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#59000000"
9 | SEPARATOR="#00000000"
10 | FOREGROUND="#FFFFFF"
11 | BACKGROUND="#59000000"
12 | BACKGROUND_ALT="#00000000"
13 | HIGHLIGHT_BACKGROUND="#59000000"
14 | HIGHLIGHT_FOREGROUND="#1e88e5"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 7 \
47 | -line-padding 8 \
48 | -padding 20 \
49 | -width 25 \
50 | -xoffset 0 -yoffset -44 \
51 | -location 5 \
52 | -columns 2 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/deepin-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#59000000"
6 | SEPARATOR="#00000000"
7 | FOREGROUND="#FFFFFF"
8 | BACKGROUND="#59000000"
9 | BACKGROUND_ALT="#00000000"
10 | HIGHLIGHT_BACKGROUND="#59000000"
11 | HIGHLIGHT_FOREGROUND="#1e88e5"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 8 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset 0 -yoffset -44 \
45 | -location 5 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/elementary-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#ffffff"
6 | SEPARATOR="#ffffff"
7 | FOREGROUND="#606060"
8 | BACKGROUND="#ffffff"
9 | BACKGROUND_ALT="#ffffff"
10 | HIGHLIGHT_BACKGROUND="#ffffff"
11 | HIGHLIGHT_FOREGROUND="#00acc1"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 0 \
41 | -lines 8 \
42 | -line-padding 8 \
43 | -padding 20 \
44 | -width 30 \
45 | -xoffset 10 -yoffset 30 \
46 | -location 1 \
47 | -columns 2 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Droid Sans Bold 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/elementary-menu-alt:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#ffffff"
6 | SEPARATOR="#ffffff"
7 | FOREGROUND="#606060"
8 | BACKGROUND="#ffffff"
9 | BACKGROUND_ALT="#ffffff"
10 | HIGHLIGHT_BACKGROUND="#ffffff"
11 | HIGHLIGHT_FOREGROUND="#00acc1"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 0 \
41 | -lines 8 \
42 | -line-padding 8 \
43 | -padding 20 \
44 | -width 30 \
45 | -xoffset 10 -yoffset 36 \
46 | -location 1 \
47 | -columns 2 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Droid Sans Bold 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/elementary-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#ffffff"
9 | SEPARATOR="#ffffff"
10 | FOREGROUND="#606060"
11 | BACKGROUND="#ffffff"
12 | BACKGROUND_ALT="#ffffff"
13 | HIGHLIGHT_BACKGROUND="#ffffff"
14 | HIGHLIGHT_FOREGROUND="#00acc1"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 10 \
47 | -line-padding 5 \
48 | -padding 20 \
49 | -width 15 \
50 | -xoffset -10 -yoffset 30 \
51 | -location 3 \
52 | -columns 1 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Droid Sans Bold 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/elementary-style-alt:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#ffffff"
9 | SEPARATOR="#ffffff"
10 | FOREGROUND="#606060"
11 | BACKGROUND="#ffffff"
12 | BACKGROUND_ALT="#ffffff"
13 | HIGHLIGHT_BACKGROUND="#ffffff"
14 | HIGHLIGHT_FOREGROUND="#00acc1"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 10 \
47 | -line-padding 5 \
48 | -padding 20 \
49 | -width 15 \
50 | -xoffset -10 -yoffset 36 \
51 | -location 3 \
52 | -columns 1 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Droid Sans Bold 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/elementary-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#ffffff"
6 | SEPARATOR="#ffffff"
7 | FOREGROUND="#606060"
8 | BACKGROUND="#ffffff"
9 | BACKGROUND_ALT="#ffffff"
10 | HIGHLIGHT_BACKGROUND="#ffffff"
11 | HIGHLIGHT_FOREGROUND="#00acc1"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 5 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset -10 -yoffset 30 \
45 | -location 3 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Droid Sans Bold 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/elementary-sysmenu-alt:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#ffffff"
6 | SEPARATOR="#ffffff"
7 | FOREGROUND="#606060"
8 | BACKGROUND="#ffffff"
9 | BACKGROUND_ALT="#ffffff"
10 | HIGHLIGHT_BACKGROUND="#ffffff"
11 | HIGHLIGHT_FOREGROUND="#00acc1"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 5 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset -10 -yoffset 36 \
45 | -location 3 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Droid Sans Bold 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/gnome-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#728cbb"
6 | SEPARATOR="#141414"
7 | FOREGROUND="#888888"
8 | BACKGROUND="#141414"
9 | BACKGROUND_ALT="#1f1f1f"
10 | HIGHLIGHT_BACKGROUND="#282828"
11 | HIGHLIGHT_FOREGROUND="#1e88e5"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 0 \
41 | -lines 10 \
42 | -line-padding 15 \
43 | -padding 60 \
44 | -width 30 \
45 | -xoffset 10 -yoffset 40 \
46 | -location 1 \
47 | -fullscreen \
48 | -columns 4 \
49 | -show-icons -icon-theme "Papirus" \
50 | -font "Noto Sans 9" \
51 | -color-enabled true \
52 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
53 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
55 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
56 |
57 | # More Options
58 | # -fullscreen \
59 |
60 | # Theming help
61 | # color window = background, border, separator
62 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
64 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
65 |
--------------------------------------------------------------------------------
/polybar/scripts/gnome-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#728cbb"
9 | SEPARATOR="#141414"
10 | FOREGROUND="#888888"
11 | BACKGROUND="#141414"
12 | BACKGROUND_ALT="#1f1f1f"
13 | HIGHLIGHT_BACKGROUND="#282828"
14 | HIGHLIGHT_FOREGROUND="#1e88e5"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 7 \
47 | -line-padding 10 \
48 | -padding 20 \
49 | -width 25 \
50 | -xoffset -10 -yoffset 38 \
51 | -location 3 \
52 | -columns 2 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/gnome-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#728cbb"
6 | SEPARATOR="#141414"
7 | FOREGROUND="#888888"
8 | BACKGROUND="#141414"
9 | BACKGROUND_ALT="#1f1f1f"
10 | HIGHLIGHT_BACKGROUND="#282828"
11 | HIGHLIGHT_FOREGROUND="#1e88e5"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 10 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset -10 -yoffset 38 \
45 | -location 3 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/kde-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#CCFFFFFF"
6 | SEPARATOR="#00FFFFFF"
7 | FOREGROUND="#606060"
8 | BACKGROUND="#E6FFFFFF"
9 | BACKGROUND_ALT="#00FFFFFF"
10 | HIGHLIGHT_BACKGROUND="#2B8AC2"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 0 \
41 | -lines 10 \
42 | -line-padding 10 \
43 | -padding 20 \
44 | -width 28 \
45 | -xoffset 0 -yoffset -34 \
46 | -location 7 \
47 | -columns 1 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Noto Sans 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/kde-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#CCFFFFFF"
9 | SEPARATOR="#00FFFFFF"
10 | FOREGROUND="#606060"
11 | BACKGROUND="#E6FFFFFF"
12 | BACKGROUND_ALT="#00FFFFFF"
13 | HIGHLIGHT_BACKGROUND="#2B8AC2"
14 | HIGHLIGHT_FOREGROUND="#FFFFFF"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 5 \
47 | -line-padding 10 \
48 | -padding 20 \
49 | -width 35 \
50 | -xoffset 0 -yoffset -34 \
51 | -location 5 \
52 | -columns 3 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/kde-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#CCFFFFFF"
6 | SEPARATOR="#00FFFFFF"
7 | FOREGROUND="#606060"
8 | BACKGROUND="#E6FFFFFF"
9 | BACKGROUND_ALT="#00FFFFFF"
10 | HIGHLIGHT_BACKGROUND="#2B8AC2"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 10 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset 0 -yoffset -34 \
45 | -location 5 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/liri-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#445963"
6 | SEPARATOR="#FEFEFE"
7 | FOREGROUND="#303030"
8 | BACKGROUND="#FEFEFE"
9 | BACKGROUND_ALT="#FEFEFE"
10 | HIGHLIGHT_BACKGROUND="#445963"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 0 \
41 | -lines 8 \
42 | -line-padding 10 \
43 | -padding 20 \
44 | -width 30 \
45 | -xoffset 8 -yoffset -52 \
46 | -location 7 \
47 | -columns 2 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Noto Sans 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/liri-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#445963"
9 | SEPARATOR="#FEFEFE"
10 | FOREGROUND="#303030"
11 | BACKGROUND="#FEFEFE"
12 | BACKGROUND_ALT="#FEFEFE"
13 | HIGHLIGHT_BACKGROUND="#445963"
14 | HIGHLIGHT_FOREGROUND="#FFFFFF"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 7 \
47 | -line-padding 10 \
48 | -padding 20 \
49 | -width 25 \
50 | -xoffset -8 -yoffset -52 \
51 | -location 5 \
52 | -columns 3 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/liri-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#445963"
6 | SEPARATOR="#FEFEFE"
7 | FOREGROUND="#303030"
8 | BACKGROUND="#FEFEFE"
9 | BACKGROUND_ALT="#FEFEFE"
10 | HIGHLIGHT_BACKGROUND="#445963"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 10 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset -8 -yoffset -52 \
45 | -location 5 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/mint-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#737373"
6 | SEPARATOR="#3D3D3D"
7 | FOREGROUND="#f9f9f9"
8 | BACKGROUND="#3D3D3D"
9 | BACKGROUND_ALT="#3D3D3D"
10 | HIGHLIGHT_BACKGROUND="#434343"
11 | HIGHLIGHT_FOREGROUND="#c0ca33"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 1 \
41 | -lines 15 \
42 | -line-padding 5 \
43 | -padding 15 \
44 | -width 30 \
45 | -xoffset 10 -yoffset -32 \
46 | -location 7 \
47 | -columns 2 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Noto Sans 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/mint-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#737373"
9 | SEPARATOR="#3D3D3D"
10 | FOREGROUND="#f9f9f9"
11 | BACKGROUND="#3D3D3D"
12 | BACKGROUND_ALT="#3D3D3D"
13 | HIGHLIGHT_BACKGROUND="#434343"
14 | HIGHLIGHT_FOREGROUND="#c0ca33"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 | SDIR="$HOME/.config/polybar/scripts"
40 |
41 | # Launch Rofi
42 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
43 | -hide-scrollbar true \
44 | -bw 0 \
45 | -lines 7 \
46 | -line-padding 5 \
47 | -padding 15 \
48 | -width 25 \
49 | -xoffset -10 -yoffset -32 \
50 | -location 5 \
51 | -columns 2 \
52 | -show-icons -icon-theme "Papirus" \
53 | -font "Noto Sans 9" \
54 | -color-enabled true \
55 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
56 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
57 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
60 | case "$MENU" in
61 | ## Colors
62 | *Budgie) $SDIR/style -budgie ;;
63 | *Deepin) $SDIR/style -deepin ;;
64 | *Elementary_dark) $SDIR/style -elementary_dark ;;
65 | *Elementary_light) $SDIR/style -elementary_light ;;
66 | *Gnome) $SDIR/style -gnome ;;
67 | *Kde) $SDIR/style -kde ;;
68 | *Kde_alt) $SDIR/style -kde_alt ;;
69 | *Liri) $SDIR/style -liri ;;
70 | *Mint) $SDIR/style -mint ;;
71 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
72 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
73 | *Xubuntu) $SDIR/style -xubuntu ;;
74 | *Zorin) $SDIR/style -zorin ;;
75 | esac
76 |
--------------------------------------------------------------------------------
/polybar/scripts/mint-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#737373"
6 | SEPARATOR="#3D3D3D"
7 | FOREGROUND="#f9f9f9"
8 | BACKGROUND="#3D3D3D"
9 | BACKGROUND_ALT="#3D3D3D"
10 | HIGHLIGHT_BACKGROUND="#434343"
11 | HIGHLIGHT_FOREGROUND="#c0ca33"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 5 \
42 | -padding 15 \
43 | -width 15 \
44 | -xoffset -10 -yoffset -32 \
45 | -location 5 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | PDIR="$HOME/.config/polybar"
7 | LAUNCH="polybar-msg cmd restart"
8 |
9 | if [[ $1 = "-budgie" ]]; then
10 | # Removing Old File
11 | rm -rf $PDIR/config.ini
12 | # Coping New File
13 | cp -r $PDIR/panel/budgie.ini $PDIR/config.ini
14 | # Setting Background
15 | feh --bg-fill $PDIR/wallpaper/budgie.jpg
16 | # Restarting polybar
17 | $LAUNCH &
18 |
19 | elif [[ $1 = "-deepin" ]]; then
20 | # Removing Old File
21 | rm -rf $PDIR/config.ini
22 | # Coping New File
23 | cp -r $PDIR/panel/deepin.ini $PDIR/config.ini
24 | # Setting Background
25 | feh --bg-fill $PDIR/wallpaper/deepin.jpg
26 | # Restarting polybar
27 | $LAUNCH &
28 |
29 | elif [[ $1 = "-elementary_dark" ]]; then
30 | # Removing Old File
31 | rm -rf $PDIR/config.ini
32 | # Coping New File
33 | cp -r $PDIR/panel/elementary-dark.ini $PDIR/config.ini
34 | # Setting Background
35 | feh --bg-fill $PDIR/wallpaper/elementary.jpg
36 | # Restarting polybar
37 | $LAUNCH &
38 |
39 | elif [[ $1 = "-elementary_light" ]]; then
40 | # Removing Old File
41 | rm -rf $PDIR/config.ini
42 | # Coping New File
43 | cp -r $PDIR/panel/elementary-light.ini $PDIR/config.ini
44 | # Setting Background
45 | feh --bg-fill $PDIR/wallpaper/elementary-2.jpg
46 | # Restarting polybar
47 | $LAUNCH &
48 |
49 | elif [[ $1 = "-gnome" ]]; then
50 | # Removing Old File
51 | rm -rf $PDIR/config.ini
52 | # Coping New File
53 | cp -r $PDIR/panel/gnome.ini $PDIR/config.ini
54 | # Setting Background
55 | feh --bg-fill $PDIR/wallpaper/gnome.jpg
56 | # Restarting polybar
57 | $LAUNCH &
58 |
59 | elif [[ $1 = "-kde" ]]; then
60 | # Removing Old File
61 | rm -rf $PDIR/config.ini
62 | # Coping New File
63 | cp -r $PDIR/panel/kde.ini $PDIR/config.ini
64 | # Setting Background
65 | feh --bg-fill $PDIR/wallpaper/kde.jpg
66 | # Restarting polybar
67 | $LAUNCH &
68 |
69 | elif [[ $1 = "-kde_alt" ]]; then
70 | # Removing Old File
71 | rm -rf $PDIR/config.ini
72 | # Coping New File
73 | cp -r $PDIR/panel/kde-line.ini $PDIR/config.ini
74 | # Setting Background
75 | feh --bg-fill $PDIR/wallpaper/kde-alt.jpg
76 | # Restarting polybar
77 | $LAUNCH &
78 |
79 | elif [[ $1 = "-liri" ]]; then
80 | # Removing Old File
81 | rm -rf $PDIR/config.ini
82 | # Coping New File
83 | cp -r $PDIR/panel/liri.ini $PDIR/config.ini
84 | # Setting Background
85 | feh --bg-fill $PDIR/wallpaper/liri.png
86 | # Restarting polybar
87 | $LAUNCH &
88 |
89 | elif [[ $1 = "-mint" ]]; then
90 | # Removing Old File
91 | rm -rf $PDIR/config.ini
92 | # Coping New File
93 | cp -r $PDIR/panel/mint.ini $PDIR/config.ini
94 | # Setting Background
95 | feh --bg-fill $PDIR/wallpaper/mint.jpg
96 | # Restarting polybar
97 | $LAUNCH &
98 |
99 | elif [[ $1 = "-ubuntu_gnome" ]]; then
100 | # Removing Old File
101 | rm -rf $PDIR/config.ini
102 | # Coping New File
103 | cp -r $PDIR/panel/ubuntu-gnome.ini $PDIR/config.ini
104 | # Setting Background
105 | feh --bg-fill $PDIR/wallpaper/ubuntu.jpg
106 | # Restarting polybar
107 | $LAUNCH &
108 |
109 | elif [[ $1 = "-ubuntu_unity" ]]; then
110 | # Removing Old File
111 | rm -rf $PDIR/config.ini
112 | # Coping New File
113 | cp -r $PDIR/panel/ubuntu-unity.ini $PDIR/config.ini
114 | # Setting Background
115 | feh --bg-fill $PDIR/wallpaper/ubuntu.jpg
116 | # Restarting polybar
117 | $LAUNCH &
118 |
119 | elif [[ $1 = "-xubuntu" ]]; then
120 | # Removing Old File
121 | rm -rf $PDIR/config.ini
122 | # Coping New File
123 | cp -r $PDIR/panel/xubuntu.ini $PDIR/config.ini
124 | # Setting Background
125 | feh --bg-fill $PDIR/wallpaper/xubuntu.png
126 | # Restarting polybar
127 | $LAUNCH &
128 |
129 | elif [[ $1 = "-zorin" ]]; then
130 | # Removing Old File
131 | rm -rf $PDIR/config.ini
132 | # Coping New File
133 | cp -r $PDIR/panel/zorin.ini $PDIR/config.ini
134 | # Setting Background
135 | feh --bg-fill $PDIR/wallpaper/zorin.png
136 | # Restarting polybar
137 | $LAUNCH &
138 |
139 | else
140 | echo "Available options:
141 | -budgie -deepin -elementary_dark -elementary_light
142 | -gnome -kde -kde_alt -liri
143 | -mint -ubuntu_gnome -ubuntu_unity -xubuntu
144 | -zorin"
145 | fi
146 |
--------------------------------------------------------------------------------
/polybar/scripts/ubuntu-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#43413D"
6 | SEPARATOR="#43413D"
7 | FOREGROUND="#EAEAEA"
8 | BACKGROUND="#43413D"
9 | BACKGROUND_ALT="#43413D"
10 | HIGHLIGHT_BACKGROUND="#393939"
11 | HIGHLIGHT_FOREGROUND="#EAEAEA"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 0 \
41 | -lines 15 \
42 | -line-padding 5 \
43 | -padding 15 \
44 | -width 60 \
45 | -xoffset -yoffset 26 \
46 | -location 1 \
47 | -columns 4 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Noto Sans 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/ubuntu-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#43413D"
9 | SEPARATOR="#43413D"
10 | FOREGROUND="#EAEAEA"
11 | BACKGROUND="#43413D"
12 | BACKGROUND_ALT="#43413D"
13 | HIGHLIGHT_BACKGROUND="#393939"
14 | HIGHLIGHT_FOREGROUND="#EAEAEA"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 0 \
46 | -lines 5 \
47 | -line-padding 4 \
48 | -padding 10 \
49 | -width 15 \
50 | -xoffset 0 -yoffset 26 \
51 | -location 3 \
52 | -columns 1 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/ubuntu-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#43413D"
6 | SEPARATOR="#43413D"
7 | FOREGROUND="#EAEAEA"
8 | BACKGROUND="#43413D"
9 | BACKGROUND_ALT="#43413D"
10 | HIGHLIGHT_BACKGROUND="#393939"
11 | HIGHLIGHT_FOREGROUND="#EAEAEA"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 0 \
40 | -lines 4 \
41 | -line-padding 4 \
42 | -padding 10 \
43 | -width 15 \
44 | -xoffset 0 -yoffset 26 \
45 | -location 3 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/xubuntu-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#000000"
6 | SEPARATOR="#494949"
7 | FOREGROUND="#B0B0B0"
8 | BACKGROUND="#494949"
9 | BACKGROUND_ALT="#5D5A5A"
10 | HIGHLIGHT_BACKGROUND="#476B99"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 1 \
41 | -lines 12 \
42 | -line-padding 5 \
43 | -padding 20 \
44 | -width 30 \
45 | -xoffset 0 -yoffset 26 \
46 | -location 1 \
47 | -columns 2 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Noto Sans 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/xubuntu-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#000000"
9 | SEPARATOR="#494949"
10 | FOREGROUND="#B0B0B0"
11 | BACKGROUND="#494949"
12 | BACKGROUND_ALT="#5D5A5A"
13 | HIGHLIGHT_BACKGROUND="#476B99"
14 | HIGHLIGHT_FOREGROUND="#FFFFFF"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 1 \
46 | -lines 5 \
47 | -line-padding 5 \
48 | -padding 20 \
49 | -width 15 \
50 | -xoffset -260 -yoffset 26 \
51 | -location 3 \
52 | -columns 1 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/xubuntu-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#000000"
6 | SEPARATOR="#494949"
7 | FOREGROUND="#B0B0B0"
8 | BACKGROUND="#494949"
9 | BACKGROUND_ALT="#5D5A5A"
10 | HIGHLIGHT_BACKGROUND="#476B99"
11 | HIGHLIGHT_FOREGROUND="#FFFFFF"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 1 \
40 | -lines 4 \
41 | -line-padding 5 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset 0 -yoffset 26 \
45 | -location 3 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/scripts/zorin-menu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#00acc1"
6 | SEPARATOR="#000000"
7 | FOREGROUND="#00acc1"
8 | BACKGROUND="#000000"
9 | BACKGROUND_ALT="#000000"
10 | HIGHLIGHT_BACKGROUND="#101010"
11 | HIGHLIGHT_FOREGROUND="#00acc1"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | rofi -no-lazy-grab -show drun \
38 | -display-drun "Applications :" -drun-display-format "{name}" \
39 | -hide-scrollbar true \
40 | -bw 2 \
41 | -lines 12 \
42 | -line-padding 8 \
43 | -padding 20 \
44 | -width 30 \
45 | -xoffset 10 -yoffset -52 \
46 | -location 7 \
47 | -columns 2 \
48 | -show-icons -icon-theme "Papirus" \
49 | -font "Noto Sans 9" \
50 | -color-enabled true \
51 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
52 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND"
55 |
56 | # More Options
57 | # -fullscreen \
58 |
59 | # Theming help
60 | # color window = background, border, separator
61 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
62 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
63 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
64 |
--------------------------------------------------------------------------------
/polybar/scripts/zorin-style:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Github : adi1090x
5 |
6 | # Custom Rofi Script
7 |
8 | BORDER="#00acc1"
9 | SEPARATOR="#000000"
10 | FOREGROUND="#00acc1"
11 | BACKGROUND="#000000"
12 | BACKGROUND_ALT="#000000"
13 | HIGHLIGHT_BACKGROUND="#101010"
14 | HIGHLIGHT_FOREGROUND="#00acc1"
15 |
16 | BLACK="#000000"
17 | WHITE="#ffffff"
18 | RED="#e53935"
19 | GREEN="#43a047"
20 | YELLOW="#fdd835"
21 | BLUE="#1e88e5"
22 | MAGENTA="#00897b"
23 | CYAN="#00acc1"
24 | PINK="#d81b60"
25 | PURPLE="#8e24aa"
26 | INDIGO="#3949ab"
27 | TEAL="#00897b"
28 | LIME="#c0ca33"
29 | AMBER="#ffb300"
30 | ORANGE="#fb8c00"
31 | BROWN="#6d4c41"
32 | GREY="#757575"
33 | BLUE_GREY="#546e7a"
34 | DEEP_PURPLE="#5e35b1"
35 | DEEP_ORANGE="#f4511e"
36 | LIGHT_BLUE="#039be5"
37 | LIGHT_GREEN="#7cb342"
38 |
39 |
40 | SDIR="$HOME/.config/polybar/scripts"
41 |
42 | # Launch Rofi
43 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'Style :' \
44 | -hide-scrollbar true \
45 | -bw 2 \
46 | -lines 7 \
47 | -line-padding 8 \
48 | -padding 20 \
49 | -width 15 \
50 | -xoffset -10 -yoffset -52 \
51 | -location 5 \
52 | -columns 1 \
53 | -show-icons -icon-theme "Papirus" \
54 | -font "Noto Sans 9" \
55 | -color-enabled true \
56 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
57 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
58 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
59 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
60 | <<< "> Budgie|> Deepin|> Elementary_dark|> Elementary_light|> Gnome|> Kde|> Kde_alt|> Liri|> Mint|> Ubuntu_gnome|> Ubuntu_unity|> Xubuntu|> Zorin")"
61 | case "$MENU" in
62 | ## Colors
63 | *Budgie) $SDIR/style -budgie ;;
64 | *Deepin) $SDIR/style -deepin ;;
65 | *Elementary_dark) $SDIR/style -elementary_dark ;;
66 | *Elementary_light) $SDIR/style -elementary_light ;;
67 | *Gnome) $SDIR/style -gnome ;;
68 | *Kde) $SDIR/style -kde ;;
69 | *Kde_alt) $SDIR/style -kde_alt ;;
70 | *Liri) $SDIR/style -liri ;;
71 | *Mint) $SDIR/style -mint ;;
72 | *Ubuntu_gnome) $SDIR/style -ubuntu_gnome ;;
73 | *Ubuntu_unity) $SDIR/style -ubuntu_unity ;;
74 | *Xubuntu) $SDIR/style -xubuntu ;;
75 | *Zorin) $SDIR/style -zorin ;;
76 | esac
77 |
--------------------------------------------------------------------------------
/polybar/scripts/zorin-sysmenu:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Custom Rofi Script
4 |
5 | BORDER="#00acc1"
6 | SEPARATOR="#000000"
7 | FOREGROUND="#00acc1"
8 | BACKGROUND="#000000"
9 | BACKGROUND_ALT="#000000"
10 | HIGHLIGHT_BACKGROUND="#101010"
11 | HIGHLIGHT_FOREGROUND="#00acc1"
12 |
13 | BLACK="#000000"
14 | WHITE="#ffffff"
15 | RED="#e53935"
16 | GREEN="#43a047"
17 | YELLOW="#fdd835"
18 | BLUE="#1e88e5"
19 | MAGENTA="#00897b"
20 | CYAN="#00acc1"
21 | PINK="#d81b60"
22 | PURPLE="#8e24aa"
23 | INDIGO="#3949ab"
24 | TEAL="#00897b"
25 | LIME="#c0ca33"
26 | AMBER="#ffb300"
27 | ORANGE="#fb8c00"
28 | BROWN="#6d4c41"
29 | GREY="#757575"
30 | BLUE_GREY="#546e7a"
31 | DEEP_PURPLE="#5e35b1"
32 | DEEP_ORANGE="#f4511e"
33 | LIGHT_BLUE="#039be5"
34 | LIGHT_GREEN="#7cb342"
35 |
36 | # Launch Rofi
37 | MENU="$(rofi -no-lazy-grab -sep "|" -dmenu -i -p 'System :' \
38 | -hide-scrollbar true \
39 | -bw 2 \
40 | -lines 4 \
41 | -line-padding 8 \
42 | -padding 20 \
43 | -width 15 \
44 | -xoffset -10 -yoffset -52 \
45 | -location 5 \
46 | -columns 1 \
47 | -show-icons -icon-theme "Papirus" \
48 | -font "Noto Sans 9" \
49 | -color-enabled true \
50 | -color-window "$BACKGROUND,$BORDER,$SEPARATOR" \
51 | -color-normal "$BACKGROUND_ALT,$FOREGROUND,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
52 | -color-active "$BACKGROUND,$MAGENTA,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
53 | -color-urgent "$BACKGROUND,$YELLOW,$BACKGROUND_ALT,$HIGHLIGHT_BACKGROUND,$HIGHLIGHT_FOREGROUND" \
54 | <<< ">> Lock|>> Logout|>> Reboot|>> Shutdown")"
55 | case "$MENU" in
56 | *Lock) i3lock-fancy ;;
57 | *Logout) openbox --exit;;
58 | *Reboot) systemctl reboot ;;
59 | *Shutdown) systemctl -i poweroff
60 | esac
61 |
62 | # More Options
63 | # -fullscreen \
64 |
65 | # Theming help
66 | # color window = background, border, separator
67 | # color normal = background, foreground, background-alt, highlight-background, highlight-foreground
68 | # color active = background, foreground, background-alt, highlight-background, highlight-foreground
69 | # color urgent = background, foreground, background-alt, highlight-background, highlight-foreground
70 |
--------------------------------------------------------------------------------
/polybar/wallpaper/budgie.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/budgie.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/elementary-2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/elementary-2.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/elementary.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/elementary.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/gnome.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/gnome.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/kde-alt.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/kde-alt.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/kde.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/kde.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ## Add this to your wm startup file.
4 |
5 | # Terminate already running bar instances
6 | killall -q polybar
7 |
8 | # Wait until the processes have been shut down
9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
10 |
11 | # Launch bar1 and bar2
12 | if type "xrandr"; then
13 | for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
14 | MONITOR=$m polybar --reload logo &
15 | MONITOR=$m polybar --reload left &
16 | MONITOR=$m polybar --reload music &
17 | MONITOR=$m polybar --reload right &
18 |
19 |
20 | done
21 | else
22 | polybar logo &
23 | polybar left &
24 | polybar music &
25 | polybar right &
26 | fi
27 |
--------------------------------------------------------------------------------
/polybar/wallpaper/liri.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/liri.png
--------------------------------------------------------------------------------
/polybar/wallpaper/mint.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/mint.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/ubuntu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/ubuntu.jpg
--------------------------------------------------------------------------------
/polybar/wallpaper/xubuntu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/xubuntu.png
--------------------------------------------------------------------------------
/polybar/wallpaper/zorin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VaughnValle/elektropunk/e3957d7e04e9086d689b44566aea71d4f1015366/polybar/wallpaper/zorin.png
--------------------------------------------------------------------------------
/ranger/commands.py:
--------------------------------------------------------------------------------
1 | # This is a sample commands.py. You can add your own commands here.
2 | #
3 | # Please refer to commands_full.py for all the default commands and a complete
4 | # documentation. Do NOT add them all here, or you may end up with defunct
5 | # commands when upgrading ranger.
6 |
7 | # A simple command for demonstration purposes follows.
8 | # -----------------------------------------------------------------------------
9 |
10 | from __future__ import (absolute_import, division, print_function)
11 |
12 | # You can import any python module as needed.
13 | import os
14 |
15 | # You always need to import ranger.api.commands here to get the Command class:
16 | from ranger.api.commands import Command
17 |
18 |
19 | # Any class that is a subclass of "Command" will be integrated into ranger as a
20 | # command. Try typing ":my_edit" in ranger!
21 | class my_edit(Command):
22 | # The so-called doc-string of the class will be visible in the built-in
23 | # help that is accessible by typing "?c" inside ranger.
24 | """:my_edit
25 |
26 | A sample command for demonstration purposes that opens a file in an editor.
27 | """
28 |
29 | # The execute method is called when you run this command in ranger.
30 | def execute(self):
31 | # self.arg(1) is the first (space-separated) argument to the function.
32 | # This way you can write ":my_edit somefilename".
33 | if self.arg(1):
34 | # self.rest(1) contains self.arg(1) and everything that follows
35 | target_filename = self.rest(1)
36 | else:
37 | # self.fm is a ranger.core.filemanager.FileManager object and gives
38 | # you access to internals of ranger.
39 | # self.fm.thisfile is a ranger.container.file.File object and is a
40 | # reference to the currently selected file.
41 | target_filename = self.fm.thisfile.path
42 |
43 | # This is a generic function to print text in ranger.
44 | self.fm.notify("Let's edit the file " + target_filename + "!")
45 |
46 | # Using bad=True in fm.notify allows you to print error messages:
47 | if not os.path.exists(target_filename):
48 | self.fm.notify("The given file does not exist!", bad=True)
49 | return
50 |
51 | # This executes a function from ranger.core.acitons, a module with a
52 | # variety of subroutines that can help you construct commands.
53 | # Check out the source, or run "pydoc ranger.core.actions" for a list.
54 | self.fm.edit_file(target_filename)
55 |
56 | # The tab method is called when you press tab, and should return a list of
57 | # suggestions that the user will tab through.
58 | # tabnum is 1 for and -1 for by default
59 | def tab(self, tabnum):
60 | # This is a generic tab-completion function that iterates through the
61 | # content of the current directory.
62 | return self._tab_directory_content()
63 |
--------------------------------------------------------------------------------
/ranger/custom.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | {
3 | while read line; do
4 | firstchar=${line:0:1}
5 | if [[ $firstchar = '0' ]]; then
6 | # Showing a picture - pause for a moment, in case the terminal has a pending redraw.
7 | sleep 0.1
8 | fi
9 | echo "$line"
10 | done;
11 | } | /usr/lib/w3m/w3mimgdisplay
12 |
--------------------------------------------------------------------------------
/ranger/rifle.conf:
--------------------------------------------------------------------------------
1 | # vim: ft=cfg
2 | #
3 | # This is the configuration file of "rifle", ranger's file executor/opener.
4 | # Each line consists of conditions and a command. For each line the conditions
5 | # are checked and if they are met, the respective command is run.
6 | #
7 | # Syntax:
8 | # , , ... = command
9 | #
10 | # The command can contain these environment variables:
11 | # $1-$9 | The n-th selected file
12 | # $@ | All selected files
13 | #
14 | # If you use the special command "ask", rifle will ask you what program to run.
15 | #
16 | # Prefixing a condition with "!" will negate its result.
17 | # These conditions are currently supported:
18 | # match | The regexp matches $1
19 | # ext | The regexp matches the extension of $1
20 | # mime | The regexp matches the mime type of $1
21 | # name | The regexp matches the basename of $1
22 | # path | The regexp matches the absolute path of $1
23 | # has | The program is installed (i.e. located in $PATH)
24 | # env | The environment variable "variable" is non-empty
25 | # file | $1 is a file
26 | # directory | $1 is a directory
27 | # number | change the number of this command to n
28 | # terminal | stdin, stderr and stdout are connected to a terminal
29 | # X | A graphical environment is available (darwin, Xorg, or Wayland)
30 | #
31 | # There are also pseudo-conditions which have a "side effect":
32 | # flag | Change how the program is run. See below.
33 | # label