├── .gitignore
├── README.md
├── dunst
└── dunstrc
├── fish
├── completions
│ └── fisher.fish
├── conf.d
│ ├── done.fish
│ └── omf.fish
├── config.fish
├── fish_plugins
├── fish_variables
├── functions
│ ├── fisher.fish
│ └── theme_gruvbox.fish
├── pipewire
│ └── pipewire.conf
└── starship.toml
├── hypr
├── hyprland.conf
├── scripts
│ ├── init.sh
│ └── wallpaper.sh
└── wallpapers
│ ├── 3fe23e1aa58f9afcda3900e7b5e33157.jpg
│ ├── vintage.jpg
│ ├── vintage_chocolets.jpg
│ ├── vintage_chocolets_cropped.jpg
│ └── wp5889741-vintage-comics-wallpapers.jpg
├── neofetch
├── config.conf
└── images
│ ├── arch.png
│ ├── arch_dark.png
│ ├── artix.png
│ ├── bedrock.png
│ ├── gentoo.png
│ ├── gentoo_dark.png
│ ├── lofi.png
│ ├── loli.png
│ ├── lolix.png
│ ├── sakura.png
│ ├── ubuntu.png
│ ├── ubuntu_dark.png
│ ├── void.png
│ └── void_dark.png
├── rofi
├── LICENSE
├── README.md
├── config.rasi
├── confirm.rasi
├── global
│ ├── emoji.rasi
│ ├── history.txt
│ ├── icons
│ │ ├── ddg.svg
│ │ ├── google.svg
│ │ ├── history.svg
│ │ ├── result.svg
│ │ └── suggestion.svg
│ ├── rofi-spotlight.sh
│ ├── rofi.rasi
│ └── web-search.py
├── powermenu
│ ├── shared
│ │ ├── colors.rasi
│ │ └── fonts.rasi
│ └── style-9.rasi
├── scripts
│ ├── bool_question.sh
│ ├── confirm.sh
│ ├── fs_manager.sh
│ └── power_menu.sh
├── shared
│ └── gruvbox.rasi
└── themes
│ └── gruvbox.rasi
├── starship
└── starship.toml
├── waybar
├── config
├── style.css
└── workspaceno
└── wlogout
├── layout
└── style.css
/.gitignore:
--------------------------------------------------------------------------------
1 | helix
2 | zsh
3 | nvim
4 | emacs
5 | kitty
6 | foot
7 | alacritty
8 | gh
9 | github
10 | github-copilot
11 | coc
12 | dconf
13 | gtk-2.0
14 | gtk-3.0
15 | gtk-4.0
16 | libreoffice
17 | mpv
18 | nautilus
19 | obs-studio
20 | obsidian
21 | pulse
22 | ranger
23 | swww
24 | crust
25 | firefox
26 | gh
27 | GIMP
28 | user-dirs.dirs
29 | user-dirs.locale
30 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # `.files`
2 |
3 | 
4 |
5 | 
6 |
7 | > Note : Obsidian
8 | >
9 | > Browser : Firefox
10 | >
11 | > Editor : Neovim
12 | >
13 | > Shell : Fish
14 |
15 |
16 | ## Installation
17 |
18 | > **Warning** Installation scripts are given as in [Arch Linux](https://archlinux.org/) and using [paru](https://github.com/Morganamilo/paru) AUR helper
19 | > If you are using another distro you have to figure how to install these packages out yourself
20 |
21 | - Core
22 |
23 | ```shell
24 | paru -S wlogout waybar rofi
25 | ```
26 |
27 | - Optional
28 | ```shell
29 | paru -S fish zsh alacritty ranger neofetch foot starship
30 | ```
31 |
32 | - Clone the repository:
33 | ```shell
34 | git clone https://github.com/UTFeight/dotfiles
35 | ```
36 |
37 |
38 | - Move directories on **your like**
39 | > **Warning** This repository has all kinds of config files which may include some you have already riced yourself. If you don't want to lose them, **do not** move them to your `~/.config`
40 |
41 | ```shell
42 | mv dotfiles ~/.config # may override some existing folders
43 | ```
44 |
45 | > **Note** You can find my Neovim config [here](https://github.com/UTFeight/nvim)
46 |
47 | ## LICENSE
48 |
49 | ```text
50 | Copyright 2023-present UTFeight
51 |
52 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
53 |
54 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
55 |
56 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
57 | ```
58 |
59 |
--------------------------------------------------------------------------------
/dunst/dunstrc:
--------------------------------------------------------------------------------
1 | [global]
2 | follow = mouse
3 | indicate_hidden = yes
4 |
5 | offset = 10x10
6 |
7 | notification_height = 0
8 |
9 | separator_height = 2
10 |
11 | padding = 8
12 | horizontal_padding = 8
13 | text_icon_padding = 0
14 | frame_width = 2
15 |
16 | frame_color = "#5F332F"
17 | separator_color = frame
18 |
19 | sort = yes
20 | idle_threshold = 120
21 | font = monospace 10
22 | line_height = 0
23 | markup = full
24 | alignment = left
25 | vertical_alignment = center
26 | show_age_threshold = 60
27 | word_wrap = yes
28 | stack_duplicates = true
29 | hide_duplicate_count = false
30 |
31 | show_indicators = yes
32 |
33 | min_icon_size = 0
34 | max_icon_size = 64
35 |
36 | icon_path = /usr/share/icons/Papirus-Dark/16x16/status/:/usr/share/icons/Papirus-Dark/16x16/devices/:/usr/share/icons/Papirus-Dark/16x16/actions/:/usr/share/icons/Papirus-Dark/16x16/animations/:/usr/share/icons/Papirus-Dark/16x16/apps/:/usr/share/icons/Papirus-Dark/16x16/categories/:/usr/share/icons/Papirus-Dark/16x16/emblems/:/usr/share/icons/Papirus-Dark/16x16/emotes/:/usr/share/icons/Papirus-Dark/16x16/devices/mimetypes:/usr/share/icons/Papirus-Dark/16x16/panel/:/usr/share/icons/Papirus-Dark/16x16/places/
37 |
38 | dmenu = /usr/bin/rofi -p dunst:
39 | browser = /usr/bin/microsoft-edge-beta --new-tab
40 |
41 | title = Dunst
42 | class = Dunst
43 |
44 | corner_radius = 10
45 | timeout = 5
46 |
47 | [urgency_low]
48 | background = "#1D2021"
49 | foreground = "#5F332F"
50 |
51 | [urgency_normal]
52 | background = "#1D2021"
53 | foreground = "#E8E3E3"
54 |
55 | [urgency_critical]
56 | background = "#1D2021"
57 | foreground = "#AD685A"
58 | frame_color = "#DD8F6E"
59 |
--------------------------------------------------------------------------------
/fish/completions/fisher.fish:
--------------------------------------------------------------------------------
1 | complete --command fisher --exclusive --long help --description "Print help"
2 | complete --command fisher --exclusive --long version --description "Print version"
3 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments install --description "Install plugins"
4 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments update --description "Update installed plugins"
5 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments remove --description "Remove installed plugins"
6 | complete --command fisher --exclusive --condition __fish_use_subcommand --arguments list --description "List installed plugins matching regex"
7 | complete --command fisher --exclusive --condition "__fish_seen_subcommand_from update remove" --arguments "(fisher list)"
8 |
--------------------------------------------------------------------------------
/fish/conf.d/done.fish:
--------------------------------------------------------------------------------
1 | # MIT License
2 |
3 | # Copyright (c) 2016 Francisco Lourenço & Daniel Wehner
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 |
23 | if not status is-interactive
24 | exit
25 | end
26 |
27 | set -g __done_version 1.16.5
28 |
29 | function __done_run_powershell_script
30 | set -l powershell_exe (command --search "powershell.exe")
31 |
32 | if test $status -ne 0
33 | and command --search wslvar
34 |
35 | set -l powershell_exe (wslpath (wslvar windir)/System32/WindowsPowerShell/v1.0/powershell.exe)
36 | end
37 |
38 | if string length --quiet "$powershell_exe"
39 | and test -x "$powershell_exe"
40 |
41 | set cmd (string escape $argv)
42 |
43 | eval "$powershell_exe -Command $cmd"
44 | end
45 | end
46 |
47 | function __done_windows_notification -a title -a message
48 | if test "$__done_notify_sound" -eq 1
49 | set soundopt ""
50 | else
51 | set soundopt ""
52 | end
53 |
54 | __done_run_powershell_script "
55 | [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
56 | [Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
57 |
58 | \$toast_xml_source = @\"
59 |
60 | $soundopt
61 |
62 |
63 | $title
64 | $message
65 |
66 |
67 |
68 | \"@
69 |
70 | \$toast_xml = New-Object Windows.Data.Xml.Dom.XmlDocument
71 | \$toast_xml.loadXml(\$toast_xml_source)
72 |
73 | \$toast = New-Object Windows.UI.Notifications.ToastNotification \$toast_xml
74 |
75 | [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier(\"fish\").Show(\$toast)
76 | "
77 | end
78 |
79 | function __done_get_focused_window_id
80 | if type -q lsappinfo
81 | lsappinfo info -only bundleID (lsappinfo front) | cut -d '"' -f4
82 | else if test -n "$SWAYSOCK"
83 | and type -q jq
84 | swaymsg --type get_tree | jq '.. | objects | select(.focused == true) | .id'
85 | else if begin
86 | test "$XDG_SESSION_DESKTOP" = gnome; and type -q gdbus
87 | end
88 | gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'global.display.focus_window.get_id()'
89 | else if type -q xprop
90 | and test -n "$DISPLAY"
91 | # Test that the X server at $DISPLAY is running
92 | and xprop -grammar >/dev/null 2>&1
93 | xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2
94 | else if uname -a | string match --quiet --ignore-case --regex microsoft
95 | __done_run_powershell_script '
96 | Add-Type @"
97 | using System;
98 | using System.Runtime.InteropServices;
99 | public class WindowsCompat {
100 | [DllImport("user32.dll")]
101 | public static extern IntPtr GetForegroundWindow();
102 | }
103 | "@
104 | [WindowsCompat]::GetForegroundWindow()
105 | '
106 | else if set -q __done_allow_nongraphical
107 | echo 12345 # dummy value
108 | end
109 | end
110 |
111 | function __done_is_tmux_window_active
112 | set -q fish_pid; or set -l fish_pid %self
113 |
114 | # find the outermost process within tmux
115 | # ppid != "tmux" -> pid = ppid
116 | # ppid == "tmux" -> break
117 | set tmux_fish_pid $fish_pid
118 | while set tmux_fish_ppid (ps -o ppid= -p $tmux_fish_pid | string trim)
119 | and ! string match -q "tmux*" (basename (ps -o command= -p $tmux_fish_ppid))
120 | set tmux_fish_pid $tmux_fish_ppid
121 | end
122 |
123 | # tmux session attached and window is active -> no notification
124 | # all other combinations -> send notification
125 | tmux list-panes -a -F "#{session_attached} #{window_active} #{pane_pid}" | string match -q "1 1 $tmux_fish_pid"
126 | end
127 |
128 | function __done_is_screen_window_active
129 | string match --quiet --regex "$STY\s+\(Attached" (screen -ls)
130 | end
131 |
132 | function __done_is_process_window_focused
133 | # Return false if the window is not focused
134 |
135 | if set -q __done_allow_nongraphical
136 | return 1
137 | end
138 |
139 | set __done_focused_window_id (__done_get_focused_window_id)
140 | if test "$__done_sway_ignore_visible" -eq 1
141 | and test -n "$SWAYSOCK"
142 | string match --quiet --regex "^true" (swaymsg -t get_tree | jq ".. | objects | select(.id == "$__done_initial_window_id") | .visible")
143 | return $status
144 | else if test "$__done_initial_window_id" != "$__done_focused_window_id"
145 | return 1
146 | end
147 | # If inside a tmux session, check if the tmux window is focused
148 | if type -q tmux
149 | and test -n "$TMUX"
150 | __done_is_tmux_window_active
151 | return $status
152 | end
153 |
154 | # If inside a screen session, check if the screen window is focused
155 | if type -q screen
156 | and test -n "$STY"
157 | __done_is_screen_window_active
158 | return $status
159 | end
160 |
161 | return 0
162 | end
163 |
164 | function __done_humanize_duration -a milliseconds
165 | set -l seconds (math --scale=0 "$milliseconds/1000" % 60)
166 | set -l minutes (math --scale=0 "$milliseconds/60000" % 60)
167 | set -l hours (math --scale=0 "$milliseconds/3600000")
168 |
169 | if test $hours -gt 0
170 | printf '%s' $hours'h '
171 | end
172 | if test $minutes -gt 0
173 | printf '%s' $minutes'm '
174 | end
175 | if test $seconds -gt 0
176 | printf '%s' $seconds's'
177 | end
178 | end
179 |
180 | # verify that the system has graphical capabilities before initializing
181 | if test -z "$SSH_CLIENT" # not over ssh
182 | and count (__done_get_focused_window_id) >/dev/null # is able to get window id
183 | set __done_enabled
184 | end
185 |
186 | if set -q __done_allow_nongraphical
187 | and set -q __done_notification_command
188 | set __done_enabled
189 | end
190 |
191 | if set -q __done_enabled
192 | set -g __done_initial_window_id ''
193 | set -q __done_min_cmd_duration; or set -g __done_min_cmd_duration 5000
194 | set -q __done_exclude; or set -g __done_exclude 'git (?!push|pull|fetch)'
195 | set -q __done_notify_sound; or set -g __done_notify_sound 0
196 | set -q __done_sway_ignore_visible; or set -g __done_sway_ignore_visible 0
197 |
198 | function __done_started --on-event fish_preexec
199 | set __done_initial_window_id (__done_get_focused_window_id)
200 | end
201 |
202 | function __done_ended --on-event fish_prompt
203 | set -l exit_status $status
204 |
205 | # backwards compatibility for fish < v3.0
206 | set -q cmd_duration; or set -l cmd_duration $CMD_DURATION
207 |
208 | if test $cmd_duration
209 | and test $cmd_duration -gt $__done_min_cmd_duration # longer than notify_duration
210 | and not __done_is_process_window_focused # process pane or window not focused
211 | and not string match -qr $__done_exclude $history[1] # don't notify on git commands which might wait external editor
212 |
213 | # Store duration of last command
214 | set -l humanized_duration (__done_humanize_duration "$cmd_duration")
215 |
216 | set -l title "Done in $humanized_duration"
217 | set -l wd (string replace --regex "^$HOME" "~" (pwd))
218 | set -l message "$wd/ $history[1]"
219 | set -l sender $__done_initial_window_id
220 |
221 | if test $exit_status -ne 0
222 | set title "Failed ($exit_status) after $humanized_duration"
223 | end
224 |
225 | if set -q __done_notification_command
226 | eval $__done_notification_command
227 | if test "$__done_notify_sound" -eq 1
228 | echo -e "\a" # bell sound
229 | end
230 | else if type -q terminal-notifier # https://github.com/julienXX/terminal-notifier
231 | if test "$__done_notify_sound" -eq 1
232 | terminal-notifier -message "$message" -title "$title" -sender "$__done_initial_window_id" -sound default
233 | else
234 | terminal-notifier -message "$message" -title "$title" -sender "$__done_initial_window_id"
235 | end
236 |
237 | else if type -q osascript # AppleScript
238 | osascript -e "display notification \"$message\" with title \"$title\""
239 | if test "$__done_notify_sound" -eq 1
240 | echo -e "\a" # bell sound
241 | end
242 |
243 | else if type -q notify-send # Linux notify-send
244 | # set urgency to normal
245 | set -l urgency normal
246 |
247 | # use user-defined urgency if set
248 | if set -q __done_notification_urgency_level
249 | set urgency "$__done_notification_urgency_level"
250 | end
251 | # override user-defined urgency level if non-zero exitstatus
252 | if test $exit_status -ne 0
253 | set urgency critical
254 | if set -q __done_notification_urgency_level_failure
255 | set urgency "$__done_notification_urgency_level_failure"
256 | end
257 | end
258 |
259 | notify-send --hint=int:transient:1 --urgency=$urgency --icon=utilities-terminal --app-name=fish "$title" "$message"
260 |
261 | if test "$__done_notify_sound" -eq 1
262 | echo -e "\a" # bell sound
263 | end
264 |
265 | else if type -q notify-desktop # Linux notify-desktop
266 | set -l urgency
267 | if test $exit_status -ne 0
268 | set urgency "--urgency=critical"
269 | end
270 | notify-desktop $urgency --icon=utilities-terminal --app-name=fish "$title" "$message"
271 | if test "$__done_notify_sound" -eq 1
272 | echo -e "\a" # bell sound
273 | end
274 |
275 | else if uname -a | string match --quiet --ignore-case --regex microsoft
276 | __done_windows_notification "$title" "$message"
277 |
278 | else # anything else
279 | echo -e "\a" # bell sound
280 | end
281 |
282 | end
283 | end
284 | end
285 |
286 | function __done_uninstall -e done_uninstall
287 | # Erase all __done_* functions
288 | functions -e __done_ended
289 | functions -e __done_started
290 | functions -e __done_get_focused_window_id
291 | functions -e __done_is_tmux_window_active
292 | functions -e __done_is_screen_window_active
293 | functions -e __done_is_process_window_focused
294 | functions -e __done_windows_notification
295 | functions -e __done_run_powershell_script
296 | functions -e __done_humanize_duration
297 |
298 | # Erase __done variables
299 | set -e __done_version
300 | end
301 |
--------------------------------------------------------------------------------
/fish/conf.d/omf.fish:
--------------------------------------------------------------------------------
1 | # Path to Oh My Fish install.
2 | set -q XDG_DATA_HOME
3 | and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
4 | or set -gx OMF_PATH "$HOME/.local/share/omf"
5 |
6 | # Load Oh My Fish configuration.
7 | source $OMF_PATH/init.fish
8 |
--------------------------------------------------------------------------------
/fish/config.fish:
--------------------------------------------------------------------------------
1 | starship init fish | source
2 | theme_gruvbox dark medium
3 | fish_vi_key_bindings # Vim keybindings on terminal! WOW
4 |
5 | ## Add Cargo binaries to PATH:
6 | export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/kobruh/.cargo/bin/"
7 | ## Set values
8 | # Hide welcome message
9 | set fish_greeting
10 | set VIRTUAL_ENV_DISABLE_PROMPT "1"
11 | set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
12 | set -x EDITOR "nvim"
13 |
14 |
15 | ## Export variable need for qt-theme
16 | if type "qtile" >> /dev/null 2>&1
17 | set -x QT_QPA_PLATFORMTHEME "qt5ct"
18 | end
19 |
20 | # Set settings for https://github.com/franciscolourenco/done
21 | set -U __done_min_cmd_duration 10000
22 | set -U __done_notification_urgency_level low
23 |
24 |
25 | ## Environment setup
26 | # Apply .profile: use this to put fish compatible .profile stuff in
27 | if test -f ~/.fish_profile
28 | source ~/.fish_profile
29 | end
30 |
31 | # Add ~/.local/bin to PATH
32 | if test -d ~/.local/bin
33 | if not contains -- ~/.local/bin $PATH
34 | set -p PATH ~/.local/bin
35 | end
36 | end
37 |
38 | # Add depot_tools to PATH
39 | if test -d ~/Applications/depot_tools
40 | if not contains -- ~/Applications/depot_tools $PATH
41 | set -p PATH ~/Applications/depot_tools
42 | end
43 | end
44 |
45 |
46 | ## Starship prompt
47 | if status --is-interactive
48 | source ("/bin/starship" init fish --print-full-init | psub)
49 | end
50 |
51 | ## Functions
52 | # Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
53 | function __history_previous_command
54 | switch (commandline -t)
55 | case "!"
56 | commandline -t $history[1]; commandline -f repaint
57 | case "*"
58 | commandline -i !
59 | end
60 | end
61 |
62 | function __history_previous_command_arguments
63 | switch (commandline -t)
64 | case "!"
65 | commandline -t ""
66 | commandline -f history-token-search-backward
67 | case "*"
68 | commandline -i '$'
69 | end
70 | end
71 |
72 | if [ "$fish_key_bindings" = fish_vi_key_bindings ];
73 | bind -Minsert ! __history_previous_command
74 | bind -Minsert '$' __history_previous_command_arguments
75 | else
76 | bind ! __history_previous_command
77 | bind '$' __history_previous_command_arguments
78 | end
79 |
80 | # Fish command history
81 | function history
82 | builtin history --show-time='%F %T '
83 | end
84 |
85 | function backup --argument filename
86 | cp $filename $filename.bak
87 | end
88 |
89 | # Copy DIR1 DIR2
90 | function copy
91 | set count (count $argv | tr -d \n)
92 | if test "$count" = 2; and test -d "$argv[1]"
93 | set from (echo $argv[1] | trim-right /)
94 | set to (echo $argv[2])
95 | command cp -r $from $to
96 | else
97 | command cp $argv
98 | end
99 | end
100 |
101 | ## Useful aliases
102 | # Replace ls with exa
103 | alias ls='exa -al --color=always --group-directories-first --icons' # preferred listing
104 | alias la='exa -a --color=always --group-directories-first --icons' # all files and dirs
105 | alias ll='exa -l --color=always --group-directories-first --icons' # long format
106 | alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing
107 | alias l.="exa -a | egrep '^\.'" # show only dotfiles
108 | alias ip="ip -color"
109 |
110 | # Replace some more things with better alternatives
111 | alias cat='bat --style header --style rules --style snip --style changes --style header'
112 | [ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay='paru'
113 |
114 | # Common use
115 | alias tarnow='tar -acf '
116 | alias untar='tar -xvf '
117 | alias wget='wget -c '
118 | alias ..='cd ..'
119 | alias ...='cd ../..'
120 | alias ....='cd ../../..'
121 | alias .....='cd ../../../..'
122 | alias ......='cd ../../../../..'
123 | alias dir='dir --color=auto'
124 | alias vdir='vdir --color=auto'
125 | alias grep='grep --color=auto'
126 | alias fgrep='fgrep --color=auto'
127 | alias egrep='egrep --color=auto'
128 | alias hw='hwinfo --short' # Hardware Info
129 | alias ins='sudo dnf install'
130 | alias uins='sudo dnf remove'
131 | alias upd='sudo dnf update && sudo dnf upgrade'
132 |
133 | # Get the error messages from journalctl
134 | alias jctl="journalctl -p 3 -xb"
135 |
136 | ## Run neofetch if session is interactive
137 | if status --is-interactive && type -q neofetch
138 | neofetch
139 | end
140 |
141 | alias vim='nvim'
142 |
143 |
--------------------------------------------------------------------------------
/fish/fish_plugins:
--------------------------------------------------------------------------------
1 | jorgebucaran/fisher
2 | franciscolourenco/done
3 | jomik/fish-gruvbox
4 |
--------------------------------------------------------------------------------
/fish/fish_variables:
--------------------------------------------------------------------------------
1 | # This file contains fish universal variable definitions.
2 | # VERSION: 3.0
3 | SETUVAR __done_min_cmd_duration:10000
4 | SETUVAR __done_notification_urgency_level:low
5 | SETUVAR __fish_initialized:3400
6 | SETUVAR _fisher_franciscolourenco_2F_done_files:/home/cruithne/\x2econfig/fish/conf\x2ed/done\x2efish
7 | SETUVAR _fisher_jomik_2F_fish_2D_gruvbox_files:/home/kobruh/\x2econfig/fish/functions/theme_gruvbox\x2efish
8 | SETUVAR _fisher_jorgebucaran_2F_fisher_files:/home/cruithne/\x2econfig/fish/functions/fisher\x2efish\x1e/home/cruithne/\x2econfig/fish/completions/fisher\x2efish
9 | SETUVAR _fisher_plugins:jorgebucaran/fisher\x1efranciscolourenco/done\x1ejomik/fish\x2dgruvbox
10 | SETUVAR fish_color_autosuggestion:555\x1ebrblack
11 | SETUVAR fish_color_cancel:\x2dr
12 | SETUVAR fish_color_command:blue
13 | SETUVAR fish_color_comment:red
14 | SETUVAR fish_color_cwd:green
15 | SETUVAR fish_color_cwd_root:red
16 | SETUVAR fish_color_end:green
17 | SETUVAR fish_color_error:brred
18 | SETUVAR fish_color_escape:brcyan
19 | SETUVAR fish_color_history_current:\x2d\x2dbold
20 | SETUVAR fish_color_host:normal
21 | SETUVAR fish_color_host_remote:yellow
22 | SETUVAR fish_color_normal:normal
23 | SETUVAR fish_color_operator:brcyan
24 | SETUVAR fish_color_param:cyan
25 | SETUVAR fish_color_quote:yellow
26 | SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
27 | SETUVAR fish_color_search_match:\x2d\x2dbackground\x3d111
28 | SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
29 | SETUVAR fish_color_status:red
30 | SETUVAR fish_color_user:brgreen
31 | SETUVAR fish_color_valid_path:\x2d\x2dunderline
32 | SETUVAR fish_key_bindings:fish_vi_key_bindings
33 | SETUVAR fish_pager_color_completion:normal
34 | SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di
35 | SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
36 | SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
37 | SETUVAR fish_pager_color_selected_background:\x2dr
38 |
--------------------------------------------------------------------------------
/fish/functions/fisher.fish:
--------------------------------------------------------------------------------
1 | function fisher --argument-names cmd --description "A plugin manager for Fish"
2 | set --query fisher_path || set --local fisher_path $__fish_config_dir
3 | set --local fisher_version 4.3.1
4 | set --local fish_plugins $__fish_config_dir/fish_plugins
5 |
6 | switch "$cmd"
7 | case -v --version
8 | echo "fisher, version $fisher_version"
9 | case "" -h --help
10 | echo "Usage: fisher install Install plugins"
11 | echo " fisher remove Remove installed plugins"
12 | echo " fisher update Update installed plugins"
13 | echo " fisher update Update all installed plugins"
14 | echo " fisher list [] List installed plugins matching regex"
15 | echo "Options:"
16 | echo " -v or --version Print version"
17 | echo " -h or --help Print this help message"
18 | echo "Variables:"
19 | echo " \$fisher_path Plugin installation path. Default: ~/.config/fish"
20 | case ls list
21 | string match --entire --regex -- "$argv[2]" $_fisher_plugins
22 | case install update remove
23 | isatty || read --local --null --array stdin && set --append argv $stdin
24 |
25 | set --local install_plugins
26 | set --local update_plugins
27 | set --local remove_plugins
28 | set --local arg_plugins $argv[2..-1]
29 | set --local old_plugins $_fisher_plugins
30 | set --local new_plugins
31 |
32 | if ! set --query argv[2]
33 | if test "$cmd" != update
34 | echo "fisher: Not enough arguments for command: \"$cmd\"" >&2 && return 1
35 | else if test ! -e $fish_plugins
36 | echo "fisher: \"$fish_plugins\" file not found: \"$cmd\"" >&2 && return 1
37 | end
38 | set arg_plugins (string match --regex -- '^[^\s]+$' <$fish_plugins)
39 | end
40 |
41 | for plugin in $arg_plugins
42 | test -e "$plugin" && set plugin (realpath $plugin)
43 | contains -- "$plugin" $new_plugins || set --append new_plugins $plugin
44 | end
45 |
46 | if set --query argv[2]
47 | for plugin in $new_plugins
48 | if contains -- "$plugin" $old_plugins
49 | test "$cmd" = remove &&
50 | set --append remove_plugins $plugin ||
51 | set --append update_plugins $plugin
52 | else if test "$cmd" = install
53 | set --append install_plugins $plugin
54 | else
55 | echo "fisher: Plugin not installed: \"$plugin\"" >&2 && return 1
56 | end
57 | end
58 | else
59 | for plugin in $new_plugins
60 | contains -- "$plugin" $old_plugins &&
61 | set --append update_plugins $plugin ||
62 | set --append install_plugins $plugin
63 | end
64 |
65 | for plugin in $old_plugins
66 | contains -- "$plugin" $new_plugins || set --append remove_plugins $plugin
67 | end
68 | end
69 |
70 | set --local pid_list
71 | set --local source_plugins
72 | set --local fetch_plugins $update_plugins $install_plugins
73 | echo (set_color --bold)fisher $cmd version $fisher_version(set_color normal)
74 |
75 | for plugin in $fetch_plugins
76 | set --local source (command mktemp -d)
77 | set --append source_plugins $source
78 |
79 | command mkdir -p $source/{completions,conf.d,functions}
80 |
81 | fish --command "
82 | if test -e $plugin
83 | command cp -Rf $plugin/* $source
84 | else
85 | set temp (command mktemp -d)
86 | set name (string split \@ $plugin) || set name[2] HEAD
87 | set url https://api.github.com/repos/\$name[1]/tarball/\$name[2]
88 | set header 'Accept: application/vnd.github.v3+json'
89 |
90 | echo Fetching (set_color --underline)\$url(set_color normal)
91 |
92 | if curl --silent -L -H \$header \$url | tar -xzC \$temp -f - 2>/dev/null
93 | command cp -Rf \$temp/*/* $source
94 | else
95 | echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
96 | command rm -rf $source
97 | end
98 | command rm -rf \$temp
99 | end
100 |
101 | set files $source/* && string match --quiet --regex -- .+\.fish\\\$ \$files
102 | " &
103 |
104 | set --append pid_list (jobs --last --pid)
105 | end
106 |
107 | wait $pid_list 2>/dev/null
108 |
109 | for plugin in $fetch_plugins
110 | if set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)] && test ! -e $source
111 | if set --local index (contains --index -- "$plugin" $install_plugins)
112 | set --erase install_plugins[$index]
113 | else
114 | set --erase update_plugins[(contains --index -- "$plugin" $update_plugins)]
115 | end
116 | end
117 | end
118 |
119 | for plugin in $update_plugins $remove_plugins
120 | if set --local index (contains --index -- "$plugin" $_fisher_plugins)
121 | set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files
122 |
123 | if contains -- "$plugin" $remove_plugins
124 | for name in (string replace --filter --regex -- '.+/conf\.d/([^/]+)\.fish$' '$1' $$plugin_files_var)
125 | emit {$name}_uninstall
126 | end
127 | printf "%s\n" Removing\ (set_color red --bold)$plugin(set_color normal) " "$$plugin_files_var
128 | end
129 |
130 | command rm -rf $$plugin_files_var
131 | functions --erase (string replace --filter --regex -- '.+/functions/([^/]+)\.fish$' '$1' $$plugin_files_var)
132 |
133 | for name in (string replace --filter --regex -- '.+/completions/([^/]+)\.fish$' '$1' $$plugin_files_var)
134 | complete --erase --command $name
135 | end
136 |
137 | set --erase _fisher_plugins[$index]
138 | set --erase $plugin_files_var
139 | end
140 | end
141 |
142 | if set --query update_plugins[1] || set --query install_plugins[1]
143 | command mkdir -p $fisher_path/{functions,conf.d,completions}
144 | end
145 |
146 | for plugin in $update_plugins $install_plugins
147 | set --local source $source_plugins[(contains --index -- "$plugin" $fetch_plugins)]
148 | set --local files $source/{functions,conf.d,completions}/*
149 |
150 | if set --local index (contains --index -- $plugin $install_plugins)
151 | set --local user_files $fisher_path/{functions,conf.d,completions}/*
152 | set --local conflict_files
153 |
154 | for file in (string replace -- $source/ $fisher_path/ $files)
155 | contains -- $file $user_files && set --append conflict_files $file
156 | end
157 |
158 | if set --query conflict_files[1] && set --erase install_plugins[$index]
159 | echo -s "fisher: Cannot install \"$plugin\": please remove or move conflicting files first:" \n" "$conflict_files >&2
160 | continue
161 | end
162 | end
163 |
164 | for file in (string replace -- $source/ "" $files)
165 | command cp -Rf $source/$file $fisher_path/$file
166 | end
167 |
168 | set --local plugin_files_var _fisher_(string escape --style=var -- $plugin)_files
169 | set --query files[1] && set --universal $plugin_files_var (string replace -- $source $fisher_path $files)
170 |
171 | contains -- $plugin $_fisher_plugins || set --universal --append _fisher_plugins $plugin
172 | contains -- $plugin $install_plugins && set --local event install || set --local event update
173 |
174 | printf "%s\n" Installing\ (set_color --bold)$plugin(set_color normal) " "$$plugin_files_var
175 |
176 | for file in (string match --regex -- '.+/[^/]+\.fish$' $$plugin_files_var)
177 | source $file
178 | if set --local name (string replace --regex -- '.+conf\.d/([^/]+)\.fish$' '$1' $file)
179 | emit {$name}_$event
180 | end
181 | end
182 | end
183 |
184 | command rm -rf $source_plugins
185 |
186 | set --query _fisher_plugins[1] || set --erase _fisher_plugins
187 | set --query _fisher_plugins &&
188 | printf "%s\n" $_fisher_plugins >$fish_plugins ||
189 | command rm -f $fish_plugins
190 |
191 | set --local total (count $install_plugins) (count $update_plugins) (count $remove_plugins)
192 | test "$total" != "0 0 0" && echo (string join ", " (
193 | test $total[1] = 0 || echo "Installed $total[1]") (
194 | test $total[2] = 0 || echo "Updated $total[2]") (
195 | test $total[3] = 0 || echo "Removed $total[3]")
196 | ) plugin/s
197 | case \*
198 | echo "fisher: Unknown command: \"$cmd\"" >&2 && return 1
199 | end
200 | end
201 |
202 | ## Migrations ##
203 | function _fisher_fish_postexec --on-event fish_postexec
204 | if functions --query _fisher_list
205 | fisher update >/dev/null 2>/dev/null
206 | set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
207 | test -e $XDG_DATA_HOME/fisher && command rm -rf $XDG_DATA_HOME/fisher
208 | functions --erase _fisher_list _fisher_plugin_parse
209 | set --erase fisher_data
210 | end
211 | functions --erase _fisher_fish_postexec
212 | end
213 |
--------------------------------------------------------------------------------
/fish/functions/theme_gruvbox.fish:
--------------------------------------------------------------------------------
1 | #!/usr/bin/fish
2 | function theme_gruvbox --description 'Apply gruvbox theme'
3 | set -l mode 'light'
4 | if test (count $argv) -gt 0
5 | set mode $argv[1]
6 | end
7 |
8 | set -g contrast 'medium'
9 | if test (count $argv) -gt 1
10 | set contrast $argv[2]
11 | end
12 |
13 | switch $contrast
14 | case 'soft'
15 | case 'medium'
16 | case 'hard'
17 | case '*'
18 | set_color $fish_color_error
19 | echo 'Unknown contrast $contrast, choose soft, medium or hard'
20 | set_color $fish_color_normal
21 | return 1
22 | end
23 |
24 | switch $mode
25 | case 'light'
26 | __theme_gruvbox_base
27 | __theme_gruvbox_light
28 | case 'dark'
29 | __theme_gruvbox_base
30 | __theme_gruvbox_dark
31 | case '*'
32 | set_color $fish_color_error
33 | echo 'Unknown mode $mode, choose light or dark'
34 | set_color $fish_color_normal
35 | return 1
36 | end
37 | __theme_gruvbox_palette
38 | return 0
39 | end
40 |
41 | function __theme_gruvbox_base
42 | __printf_color 1 'cc/24/1d'
43 | __printf_color 2 '98/97/1a'
44 | __printf_color 3 'd7/99/21'
45 | __printf_color 4 '45/85/88'
46 | __printf_color 5 'b1/62/86'
47 | __printf_color 6 '68/9d/6a'
48 | end
49 |
50 | function __theme_gruvbox_light
51 | set -l bg 'fb/f1/c7'
52 | switch $contrast
53 | case "soft"
54 | set bg 'f2/e5/bc'
55 | case "hard"
56 | set bg 'f9/f5/d7'
57 | end
58 | command printf "\033]11;rgb:$bg\007"
59 |
60 | set -l fg '3c/38/36'
61 | command printf "\033]10;rgb:$fg\007"
62 |
63 | __printf_color 0 $bg
64 | __printf_color 7 '7c/6f/64'
65 | __printf_color 8 '92/83/74'
66 | __printf_color 9 '9d/00/06'
67 | __printf_color 10 '79/74/0e'
68 | __printf_color 11 'b5/76/14'
69 | __printf_color 12 '07/66/78'
70 | __printf_color 13 '8f/3f/71'
71 | __printf_color 14 '42/7b/58'
72 | __printf_color 15 $fg
73 | end
74 |
75 | function __theme_gruvbox_dark
76 | set -l bg '28/28/28'
77 | switch $contrast
78 | case "soft"
79 | set bg '32/30/2f'
80 | case "hard"
81 | set bg '1d/20/21'
82 | end
83 | command printf "\033]11;rgb:$bg\007"
84 |
85 | set -l fg 'eb/db/b2'
86 | command printf "\033]10;rgb:$fg\007"
87 |
88 | __printf_color 0 $bg
89 | __printf_color 7 'a8/99/84'
90 | __printf_color 8 '92/83/74'
91 | __printf_color 9 'fb/59/34'
92 | __printf_color 10 'b8/bb/26'
93 | __printf_color 11 'fa/bd/2f'
94 | __printf_color 12 '83/a5/98'
95 | __printf_color 13 'd3/86/9b'
96 | __printf_color 14 '8e/c0/7c'
97 | __printf_color 15 $fg
98 | end
99 |
100 | function __theme_gruvbox_palette
101 | __printf_color 236 '32/30/2f'
102 | __printf_color 234 '1d/20/21'
103 |
104 | __printf_color 235 '28/28/28'
105 | __printf_color 237 '3c/38/36'
106 | __printf_color 239 '50/49/45'
107 | __printf_color 241 '66/5c/54'
108 | __printf_color 243 '7c/6f/64'
109 |
110 | __printf_color 244 '92/83/74'
111 | __printf_color 245 '92/83/74'
112 |
113 | __printf_color 228 'f2/e5/bc'
114 | __printf_color 230 'f9/f5/d7'
115 |
116 | __printf_color 229 'fb/f1/c7'
117 | __printf_color 223 'eb/db/b2'
118 | __printf_color 250 'd5/c4/a1'
119 | __printf_color 248 'bd/ae/93'
120 | __printf_color 246 'a8/99/84'
121 |
122 | __printf_color 167 'fb/49/34'
123 | __printf_color 142 'b8/bb/26'
124 | __printf_color 214 'fa/bd/2f'
125 | __printf_color 109 '83/a5/98'
126 | __printf_color 175 'd3/86/9b'
127 | __printf_color 108 '8e/c0/7c'
128 | __printf_color 208 'fe/80/19'
129 |
130 | __printf_color 88 '9d/00/06'
131 | __printf_color 100 '79/74/0e'
132 | __printf_color 136 'b5/76/14'
133 | __printf_color 24 '07/66/78'
134 | __printf_color 96 '8f/3f/71'
135 | __printf_color 66 '42/7b/58'
136 | __printf_color 130 'af/3a/03'
137 | end
138 |
139 | function __printf_color
140 | command printf "\033]4;$argv[1];rgb:$argv[2]\007"
141 | end
142 |
--------------------------------------------------------------------------------
/fish/pipewire/pipewire.conf:
--------------------------------------------------------------------------------
1 | # Daemon config file for PipeWire version "0.3.49" #
2 | #
3 | # Copy and edit this file in /etc/pipewire for system-wide changes
4 | # or in ~/.config/pipewire for local changes.
5 | #
6 | # It is also possible to place a file with an updated section in
7 | # /etc/pipewire/pipewire.conf.d/ for system-wide changes or in
8 | # ~/.config/pipewire/pipewire.conf.d/ for local changes.
9 | #
10 |
11 | context.properties = {
12 | ## Configure properties in the system.
13 | #library.name.system = support/libspa-support
14 | #context.data-loop.library.name.system = support/libspa-support
15 | #support.dbus = true
16 | #link.max-buffers = 64
17 | link.max-buffers = 16 # version < 3 clients can't handle more
18 | #mem.warn-mlock = false
19 | #mem.allow-mlock = true
20 | #mem.mlock-all = false
21 | #clock.power-of-two-quantum = true
22 | #log.level = 2
23 | #cpu.zero.denormals = false
24 |
25 | core.daemon = true # listening for socket connections
26 | core.name = pipewire-0 # core name and socket name
27 |
28 | ## Properties for the DSP configuration.
29 | default.clock.rate = 96000
30 | default.clock.allowed-rates = [ 48000, 96000, 192000 ]
31 | #default.clock.quantum = 1024
32 | default.clock.min-quantum = 16
33 | #default.clock.max-quantum = 2048
34 | #default.clock.quantum-limit = 8192
35 | #default.video.width = 640
36 | #default.video.height = 480
37 | #default.video.rate.num = 25
38 | #default.video.rate.denom = 1
39 | #
40 | #settings.check-quantum = false
41 | #settings.check-rate = false
42 | #
43 | # These overrides are only applied when running in a vm.
44 | vm.overrides = {
45 | default.clock.min-quantum = 1024
46 | }
47 | }
48 |
49 | context.spa-libs = {
50 | # =
51 | #
52 | # Used to find spa factory names. It maps an spa factory name
53 | # regular expression to a library name that should contain
54 | # that factory.
55 | #
56 | audio.convert.* = audioconvert/libspa-audioconvert
57 | api.alsa.* = alsa/libspa-alsa
58 | api.v4l2.* = v4l2/libspa-v4l2
59 | api.libcamera.* = libcamera/libspa-libcamera
60 | api.bluez5.* = bluez5/libspa-bluez5
61 | api.vulkan.* = vulkan/libspa-vulkan
62 | api.jack.* = jack/libspa-jack
63 | support.* = support/libspa-support
64 | #videotestsrc = videotestsrc/libspa-videotestsrc
65 | #audiotestsrc = audiotestsrc/libspa-audiotestsrc
66 | }
67 |
68 | context.modules = [
69 | #{ name =
70 | # [ args = { = ... } ]
71 | # [ flags = [ [ ifexists ] [ nofail ] ]
72 | #}
73 | #
74 | # Loads a module with the given parameters.
75 | # If ifexists is given, the module is ignored when it is not found.
76 | # If nofail is given, module initialization failures are ignored.
77 | #
78 |
79 | # Uses realtime scheduling to boost the audio thread priorities. This uses
80 | # RTKit if the user doesn't have permission to use regular realtime
81 | # scheduling.
82 | { name = libpipewire-module-rt
83 | args = {
84 | nice.level = -11
85 | #rt.prio = 88
86 | #rt.time.soft = -1
87 | #rt.time.hard = -1
88 | }
89 | flags = [ ifexists nofail ]
90 | }
91 |
92 | # The native communication protocol.
93 | { name = libpipewire-module-protocol-native }
94 |
95 | # The profile module. Allows application to access profiler
96 | # and performance data. It provides an interface that is used
97 | # by pw-top and pw-profiler.
98 | { name = libpipewire-module-profiler }
99 |
100 | # Allows applications to create metadata objects. It creates
101 | # a factory for Metadata objects.
102 | { name = libpipewire-module-metadata }
103 |
104 | # Creates a factory for making devices that run in the
105 | # context of the PipeWire server.
106 | { name = libpipewire-module-spa-device-factory }
107 |
108 | # Creates a factory for making nodes that run in the
109 | # context of the PipeWire server.
110 | { name = libpipewire-module-spa-node-factory }
111 |
112 | # Allows creating nodes that run in the context of the
113 | # client. Is used by all clients that want to provide
114 | # data to PipeWire.
115 | { name = libpipewire-module-client-node }
116 |
117 | # Allows creating devices that run in the context of the
118 | # client. Is used by the session manager.
119 | { name = libpipewire-module-client-device }
120 |
121 | # The portal module monitors the PID of the portal process
122 | # and tags connections with the same PID as portal
123 | # connections.
124 | { name = libpipewire-module-portal
125 | flags = [ ifexists nofail ]
126 | }
127 |
128 | # The access module can perform access checks and block
129 | # new clients.
130 | { name = libpipewire-module-access
131 | args = {
132 | # access.allowed to list an array of paths of allowed
133 | # apps.
134 | #access.allowed = [
135 | # /usr/bin/pipewire-media-session
136 | #]
137 |
138 | # An array of rejected paths.
139 | #access.rejected = [ ]
140 |
141 | # An array of paths with restricted access.
142 | #access.restricted = [ ]
143 |
144 | # Anything not in the above lists gets assigned the
145 | # access.force permission.
146 | #access.force = flatpak
147 | }
148 | }
149 |
150 | # Makes a factory for wrapping nodes in an adapter with a
151 | # converter and resampler.
152 | { name = libpipewire-module-adapter }
153 |
154 | # Makes a factory for creating links between ports.
155 | { name = libpipewire-module-link-factory }
156 |
157 | # Provides factories to make session manager objects.
158 | { name = libpipewire-module-session-manager }
159 |
160 | # Use libcanberra to play X11 Bell
161 | #{ name = libpipewire-module-x11-bell
162 | # args = {
163 | # #sink.name = ""
164 | # #sample.name = "bell-window-system"
165 | # #x11.display = null
166 | # #x11.xauthority = null
167 | # }
168 | #}
169 | ]
170 |
171 | context.objects = [
172 | #{ factory =
173 | # [ args = { = ... } ]
174 | # [ flags = [ [ nofail ] ]
175 | #}
176 | #
177 | # Creates an object from a PipeWire factory with the given parameters.
178 | # If nofail is given, errors are ignored (and no object is created).
179 | #
180 | #{ factory = spa-node-factory args = { factory.name = videotestsrc node.name = videotestsrc Spa:Pod:Object:Param:Props:patternType = 1 } }
181 | #{ factory = spa-device-factory args = { factory.name = api.jack.device foo=bar } flags = [ nofail ] }
182 | #{ factory = spa-device-factory args = { factory.name = api.alsa.enum.udev } }
183 | #{ factory = spa-node-factory args = { factory.name = api.alsa.seq.bridge node.name = Internal-MIDI-Bridge } }
184 | #{ factory = adapter args = { factory.name = audiotestsrc node.name = my-test } }
185 | #{ factory = spa-node-factory args = { factory.name = api.vulkan.compute.source node.name = my-compute-source } }
186 |
187 | # A default dummy driver. This handles nodes marked with the "node.always-driver"
188 | # property when no other driver is currently active. JACK clients need this.
189 | { factory = spa-node-factory
190 | args = {
191 | factory.name = support.node.driver
192 | node.name = Dummy-Driver
193 | node.group = pipewire.dummy
194 | priority.driver = 20000
195 | }
196 | }
197 | { factory = spa-node-factory
198 | args = {
199 | factory.name = support.node.driver
200 | node.name = Freewheel-Driver
201 | priority.driver = 19000
202 | node.group = pipewire.freewheel
203 | node.freewheel = true
204 | }
205 | }
206 | # This creates a new Source node. It will have input ports
207 | # that you can link, to provide audio for this source.
208 | #{ factory = adapter
209 | # args = {
210 | # factory.name = support.null-audio-sink
211 | # node.name = "my-mic"
212 | # node.description = "Microphone"
213 | # media.class = "Audio/Source/Virtual"
214 | # audio.position = "FL,FR"
215 | # }
216 | #}
217 |
218 | # This creates a single PCM source device for the given
219 | # alsa device path hw:0. You can change source to sink
220 | # to make a sink in the same way.
221 | #{ factory = adapter
222 | # args = {
223 | # factory.name = api.alsa.pcm.source
224 | # node.name = "alsa-source"
225 | # node.description = "PCM Source"
226 | # media.class = "Audio/Source"
227 | # api.alsa.path = "hw:0"
228 | # api.alsa.period-size = 1024
229 | # api.alsa.headroom = 0
230 | # api.alsa.disable-mmap = false
231 | # api.alsa.disable-batch = false
232 | # audio.format = "S16LE"
233 | # audio.rate = 48000
234 | # audio.channels = 2
235 | # audio.position = "FL,FR"
236 | # }
237 | #}
238 | ]
239 |
240 | context.exec = [
241 | #{ path = [ args = "" ] }
242 | #
243 | # Execute the given program with arguments.
244 | #
245 | # You can optionally start the session manager here,
246 | # but it is better to start it as a systemd service.
247 | # Run the session manager with -h for options.
248 | #
249 | #{ path = "/usr/bin/pipewire-media-session" args = "" }
250 | #
251 | # You can optionally start the pulseaudio-server here as well
252 | # but it is better to start it as a systemd service.
253 | # It can be interesting to start another daemon here that listens
254 | # on another address with the -a option (eg. -a tcp:4713).
255 | #
256 | #{ path = "/usr/bin/pipewire" args = "-c pipewire-pulse.conf" }
257 | ]
258 |
--------------------------------------------------------------------------------
/fish/starship.toml:
--------------------------------------------------------------------------------
1 | ## FIRST LINE/ROW: Info & Status
2 | # First param ─┌
3 | [username]
4 | format = " [╭─$user]($style)@"
5 | show_always = true
6 | style_root = "bold yellow"
7 | style_user = "bold yellow"
8 |
9 | # Second param
10 | [hostname]
11 | disabled = false
12 | format = "[$hostname]($style) in "
13 | ssh_only = false
14 | style = "bold blue"
15 | trim_at = "-"
16 |
17 | # Third param
18 | [directory]
19 | style = "purple"
20 | truncate_to_repo = true
21 | truncation_length = 0
22 | truncation_symbol = "repo: "
23 |
24 | # Fourth param
25 | [sudo]
26 | disabled = false
27 |
28 | # Before all the version info (python, nodejs, php, etc.)
29 | [git_status]
30 | ahead = "⇡${count}"
31 | behind = "⇣${count}"
32 | deleted = "x"
33 | diverged = "⇕⇡${ahead_count}⇣${behind_count}"
34 | style = "white"
35 |
36 | # Last param in the first line/row
37 | [cmd_duration]
38 | disabled = false
39 | format = "took [$duration]($style)"
40 | min_time = 1
41 |
42 |
43 | ## SECOND LINE/ROW: Prompt
44 | # Somethere at the beginning
45 | [battery]
46 | charging_symbol = ""
47 | disabled = true
48 | discharging_symbol = ""
49 | full_symbol = ""
50 |
51 | [[battery.display]] # "bold red" style when capacity is between 0% and 10%
52 | disabled = false
53 | style = "bold red"
54 | threshold = 15
55 |
56 | [[battery.display]] # "bold yellow" style when capacity is between 10% and 30%
57 | disabled = true
58 | style = "bold yellow"
59 | threshold = 50
60 |
61 | [[battery.display]] # "bold green" style when capacity is between 10% and 30%
62 | disabled = true
63 | style = "bold green"
64 | threshold = 80
65 |
66 | # Prompt: optional param 1
67 | [time]
68 | disabled = true
69 | format = " 🕙 $time($style)\n"
70 | style = "bright-white"
71 | time_format = "%T"
72 |
73 | # Prompt: param 2
74 | [character]
75 | error_symbol = " [×](bold red)"
76 | success_symbol = " [╰─λ](bold red)"
77 |
78 | # SYMBOLS
79 | [status]
80 | disabled = false
81 | format = '[\[$symbol$status_common_meaning$status_signal_name$status_maybe_int\]]($style)'
82 | map_symbol = true
83 | pipestatus = true
84 | symbol = "🔴"
85 |
86 | [aws]
87 | symbol = " "
88 |
89 | [conda]
90 | symbol = " "
91 |
92 | [dart]
93 | symbol = " "
94 |
95 | [docker_context]
96 | symbol = " "
97 |
98 | [elixir]
99 | symbol = " "
100 |
101 | [elm]
102 | symbol = " "
103 |
104 | [git_branch]
105 | symbol = " "
106 |
107 | [golang]
108 | symbol = " "
109 |
110 | [hg_branch]
111 | symbol = " "
112 |
113 | [java]
114 | symbol = " "
115 |
116 | [julia]
117 | symbol = " "
118 |
119 | [nim]
120 | symbol = " "
121 |
122 | [nix_shell]
123 | symbol = " "
124 |
125 | [nodejs]
126 | symbol = " "
127 |
128 | [package]
129 | symbol = " "
130 |
131 | [perl]
132 | symbol = " "
133 |
134 | [php]
135 | symbol = " "
136 |
137 | [python]
138 | symbol = " "
139 |
140 | [ruby]
141 | symbol = " "
142 |
143 | [rust]
144 | symbol = " "
145 |
146 | [swift]
147 | symbol = "ﯣ "
148 |
--------------------------------------------------------------------------------
/hypr/hyprland.conf:
--------------------------------------------------------------------------------
1 | # Please note not all available settings / options are set here.
2 | # For a full list, see the wiki
3 | #
4 |
5 | # autogenerated = 1 # remove this line to remove the warning
6 |
7 | # See https://wiki.hyprland.org/Configuring/Monitors/
8 | monitor=VGA-1,1024x768,0x0,1
9 | monitor=HDMI-A-1,1920x1080,1024x0,1
10 |
11 | $gnome-schema=org.gnome.desktop.interface
12 |
13 | exec-once=gsettings set $gnome-schema gtk-theme oomox-Gruvish
14 |
15 | # wallpaper
16 | exec-once = sh ~/.config/hypr/scripts/wallpaper.sh
17 |
18 | exec-once = sh ~/.config/hypr/scripts/init.sh
19 | exec-once = waybar
20 | exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2
21 |
22 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more
23 |
24 | # Execute your favorite apps at launch
25 | # exec-once = waybar & hyprpaper & firefox
26 |
27 | # Source a file (multi-file configs)
28 | # source = ~/.config/hypr/myColors.conf
29 |
30 | # For all categories, see https://wiki.hyprland.org/Configuring/Variables/
31 | input {
32 | kb_layout = tr
33 | kb_variant =
34 | kb_model =
35 | kb_options =
36 | kb_rules =
37 |
38 | follow_mouse = 1
39 |
40 | touchpad {
41 | natural_scroll = no
42 | }
43 |
44 | sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
45 | }
46 |
47 | general {
48 | gaps_in = 30 # 30
49 | gaps_out = 35 # 30
50 | border_size = 3
51 | col.active_border = rgba(000000FF)
52 | col.inactive_border = rgba(000000FF)
53 | layout = dwindle
54 | }
55 |
56 | decoration {
57 | rounding = 10
58 | blur = false
59 |
60 | blur_passes = 2
61 | blur_size = 8
62 |
63 | active_opacity = 1
64 | inactive_opacity = 1
65 |
66 | drop_shadow = true
67 | shadow_range= 1
68 | shadow_offset = 18 18 # 10 10
69 | shadow_render_power = 1
70 | col.shadow = rgba(000000FF)
71 | }
72 |
73 | animations {
74 | enabled = yes
75 |
76 | # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
77 |
78 | bezier = myBezier, 0.05, 0.9, 0.1, 1.05
79 |
80 | animation = windows, 1, 7, myBezier
81 | animation = windowsOut, 1, 7, default, popin 80%
82 | animation = border, 1, 10, default
83 | animation = fade, 1, 7, default
84 | animation = workspaces, 1, 6, default
85 | }
86 |
87 | dwindle {
88 | # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
89 | pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
90 | preserve_split = yes # you probably want this
91 | }
92 |
93 | master {
94 | # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
95 | new_is_master = true
96 | }
97 |
98 | gestures {
99 | # See https://wiki.hyprland.org/Configuring/Variables/ for more
100 | workspace_swipe = off
101 | }
102 |
103 | # Example per-device config
104 | # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
105 | device:epic mouse V1 {
106 | sensitivity = -0.5
107 | }
108 |
109 | # Example windowrule v1
110 | # windowrule = float, ^(kitty)$
111 | # Example windowrule v2
112 | # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
113 | # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
114 |
115 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more
116 | $mainMod = SUPER
117 |
118 |
119 | # Applications
120 | # bind = $mainMod, Return, exec, footclient
121 | bind = SUPER_SHIFT, F, exec, thunar # File Manager
122 | bind = $mainMod, T, exec, alacritty # Terminal
123 | bind = $mainMod, B, exec, firefox # Browser
124 | bind = $mainMod, M, exec, emacs
125 | # bind = $mainMod, C, exec, chromium
126 | # bind = $mainMod, W, exec,swaylock -c 000000 --line-color 282828 -n
127 |
128 | # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
129 | bind = SUPER,F,fullscreen
130 | bind = $mainMod, Q, killactive,
131 | bind = SUPER_SHIFT, Q, exit,
132 | bind = SUPER, Space, togglefloating,
133 | bind = $mainMod, V, pseudo, # dwindle
134 | bind = $mainMod, S, togglesplit, # dwindle
135 |
136 | # Move focus with mainMod + arrow keys
137 | bind = $mainMod, h, movefocus, l
138 | bind = $mainMod, l, movefocus, r
139 | bind = $mainMod, k, movefocus, u
140 | bind = $mainMod, j, movefocus, d
141 |
142 | # Switch workspaces with mainMod + [0-9]
143 | bind = $mainMod, 1, workspace, 1
144 | bind = $mainMod, 2, workspace, 2
145 | bind = $mainMod, 3, workspace, 3
146 | bind = $mainMod, 4, workspace, 4
147 | bind = $mainMod, 5, workspace, 5
148 | bind = $mainMod, 6, workspace, 6
149 | bind = $mainMod, 7, workspace, 7
150 | bind = $mainMod, 8, workspace, 8
151 | bind = $mainMod, 9, workspace, 9
152 | bind = $mainMod, 0, workspace, 10
153 | # bind = $mainMod, *, workspace, 11
154 |
155 | # Move active window to a workspace with mainMod + SHIFT + [0-9]
156 | bind = $mainMod SHIFT, 1, movetoworkspace, 1
157 | bind = $mainMod SHIFT, 2, movetoworkspace, 2
158 | bind = $mainMod SHIFT, 3, movetoworkspace, 3
159 | bind = $mainMod SHIFT, 4, movetoworkspace, 4
160 | bind = $mainMod SHIFT, 5, movetoworkspace, 5
161 | bind = $mainMod SHIFT, 6, movetoworkspace, 6
162 | bind = $mainMod SHIFT, 7, movetoworkspace, 7
163 | bind = $mainMod SHIFT, 8, movetoworkspace, 8
164 | bind = $mainMod SHIFT, 9, movetoworkspace, 9
165 | bind = $mainMod SHIFT, 0, movetoworkspace, 10
166 | # bind = $mainMod, -, movetoworkspace, 11
167 |
168 | # Rofi
169 | bind = $mainMod, D, exec, killall rofi; rofi -show drun
170 |
171 | # Logout
172 | bind = $mainMod, ESCAPE, exec, wlogout
173 |
174 | # Misc
175 | bind = ,XF86AudioRaiseVolume,exec,amixer sset Master 5%+
176 | bind = ,XF86AudioLowerVolume,exec,amixer sset Master 5%-
177 | bind = ,XF86AudioMute,exec,amixer sset Master 0%
178 | bind = SHIFT,Print,exec,grim ~/Pictures/Screenshots/$(date +'%s.png') -g "$(slurp)" | wl-copy && notify-send "Screenshot Saved"
179 | bind = ,Print,exec,grim ~/Pictures/Screenshots/$(date +'%s.png') | wl-copy && notify-send "Screenshot Saved"
180 | bind = ,XF86MonBrightnessDown,exec,brightnessctl set "5%-"
181 | bind = ,XF86MonBrightnessUp,exec,brightnessctl set "+5%"
182 |
183 | # Scroll through existing workspaces with mainMod + scroll
184 | bind = $mainMod, mouse_down, workspace, e+1
185 | bind = $mainMod, mouse_up, workspace, e-1
186 |
187 | # Move/resize windows with mainMod + LMB/RMB and dragging
188 | bindm = $mainMod, mouse:272, movewindow
189 | bindm = $mainMod, mouse:273, resizewindow
190 |
191 | # Some rules
192 | windowrulev2 = float,title:^(rofi),
193 |
--------------------------------------------------------------------------------
/hypr/scripts/init.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Used to activate some daemons, and get everything else set up, basically.
4 | swww init
5 | swww img ~/Pictures/wallpapers/snotgirl/lottieline.png
6 | mpd
7 | foot -s
8 |
--------------------------------------------------------------------------------
/hypr/scripts/wallpaper.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | swww img /home/kobruh/Pictures/Wallpaper/Selected/26951f43602825.57f5649c50333.jpg --outputs VGA-1
4 | swww img /home/kobruh/Pictures/Wallpaper/Selected/eec164115095715.6047da91020c0.jpg --outputs HDMI-A-1
5 |
--------------------------------------------------------------------------------
/hypr/wallpapers/3fe23e1aa58f9afcda3900e7b5e33157.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/hypr/wallpapers/3fe23e1aa58f9afcda3900e7b5e33157.jpg
--------------------------------------------------------------------------------
/hypr/wallpapers/vintage.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/hypr/wallpapers/vintage.jpg
--------------------------------------------------------------------------------
/hypr/wallpapers/vintage_chocolets.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/hypr/wallpapers/vintage_chocolets.jpg
--------------------------------------------------------------------------------
/hypr/wallpapers/vintage_chocolets_cropped.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/hypr/wallpapers/vintage_chocolets_cropped.jpg
--------------------------------------------------------------------------------
/hypr/wallpapers/wp5889741-vintage-comics-wallpapers.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/hypr/wallpapers/wp5889741-vintage-comics-wallpapers.jpg
--------------------------------------------------------------------------------
/neofetch/config.conf:
--------------------------------------------------------------------------------
1 | print_info() {
2 | # prin "$(color 3)┌─────────────────────────────────────┐"
3 |
4 | prin ""
5 | info "$(color 1) OS " distro
6 | # info "$(color 2) KER" kernel
7 | info "$(color 3) UP " uptime
8 | info "$(color 4) PKG" packages
9 | # info "$(color 5) CPU" cpu
10 | info "$(color 6) TRM" term
11 | info "$(color 7) MEM" memory
12 | info "$(color 8) WM " wm
13 | # prin "$(color 3)└─────────────────────────────────────┘"
14 | prin ""
15 | prin " \n \n \n $(color 1)██\n \n $(color 2)██\n \n $(color 3)██\n \n $(color 4)██\n \n $(color 5)██\n \n $(color 6)██\n \n $(color 7)██\n \n $(color 0)██"
16 | }
17 |
18 |
19 |
20 | # Title
21 |
22 |
23 | # Hide/Show Fully qualified domain name.
24 | #
25 | # Default: 'off'
26 | # Values: 'on', 'off'
27 | # Flag: --title_fqdn
28 | title_fqdn="off"
29 |
30 |
31 | # Kernel
32 |
33 |
34 | # Shorten the output of the kernel function.
35 | #
36 | # Default: 'on'
37 | # Values: 'on', 'off'
38 | # Flag: --kernel_shorthand
39 | # Supports: Everything except *BSDs (except PacBSD and PC-BSD)
40 | #
41 | # Example:
42 | # on: '4.8.9-1-ARCH'
43 | # off: 'Linux 4.8.9-1-ARCH'
44 | kernel_shorthand="on"
45 |
46 |
47 | # Distro
48 |
49 |
50 | # Shorten the output of the distro function
51 | #
52 | # Default: 'off'
53 | # Values: 'on', 'tiny', 'off'
54 | # Flag: --distro_shorthand
55 | # Supports: Everything except Windows and Haiku
56 | distro_shorthand="off"
57 |
58 | # Show/Hide OS Architecture.
59 | # Show 'x86_64', 'x86' and etc in 'Distro:' output.
60 | #
61 | # Default: 'on'
62 | # Values: 'on', 'off'
63 | # Flag: --os_arch
64 | #
65 | # Example:
66 | # on: 'Arch Linux x86_64'
67 | # off: 'Arch Linux'
68 | os_arch="on"
69 |
70 |
71 | # Uptime
72 |
73 |
74 | # Shorten the output of the uptime function
75 | #
76 | # Default: 'on'
77 | # Values: 'on', 'tiny', 'off'
78 | # Flag: --uptime_shorthand
79 | #
80 | # Example:
81 | # on: '2 days, 10 hours, 3 mins'
82 | # tiny: '2d 10h 3m'
83 | # off: '2 days, 10 hours, 3 minutes'
84 | uptime_shorthand="on"
85 |
86 |
87 | # Memory
88 |
89 |
90 | # Show memory pecentage in output.
91 | #
92 | # Default: 'off'
93 | # Values: 'on', 'off'
94 | # Flag: --memory_percent
95 | #
96 | # Example:
97 | # on: '1801MiB / 7881MiB (22%)'
98 | # off: '1801MiB / 7881MiB'
99 | memory_percent="off"
100 |
101 | # Change memory output unit.
102 | #
103 | # Default: 'mib'
104 | # Values: 'kib', 'mib', 'gib'
105 | # Flag: --memory_unit
106 | #
107 | # Example:
108 | # kib '1020928KiB / 7117824KiB'
109 | # mib '1042MiB / 6951MiB'
110 | # gib: ' 0.98GiB / 6.79GiB'
111 | memory_unit="gib"
112 |
113 |
114 | # Packages
115 |
116 |
117 | # Show/Hide Package Manager names.
118 | #
119 | # Default: 'tiny'
120 | # Values: 'on', 'tiny' 'off'
121 | # Flag: --package_managers
122 | #
123 | # Example:
124 | # on: '998 (pacman), 8 (flatpak), 4 (snap)'
125 | # tiny: '908 (pacman, flatpak, snap)'
126 | # off: '908'
127 | package_managers="on"
128 |
129 |
130 | # Shell
131 |
132 |
133 | # Show the path to $SHELL
134 | #
135 | # Default: 'off'
136 | # Values: 'on', 'off'
137 | # Flag: --shell_path
138 | #
139 | # Example:
140 | # on: '/bin/bash'
141 | # off: 'bash'
142 | shell_path="off"
143 |
144 | # Show $SHELL version
145 | #
146 | # Default: 'on'
147 | # Values: 'on', 'off'
148 | # Flag: --shell_version
149 | #
150 | # Example:
151 | # on: 'bash 4.4.5'
152 | # off: 'bash'
153 | shell_version="on"
154 |
155 |
156 | # CPU
157 |
158 |
159 | # CPU speed type
160 | #
161 | # Default: 'bios_limit'
162 | # Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
163 | # Flag: --speed_type
164 | # Supports: Linux with 'cpufreq'
165 | # NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
166 | speed_type="bios_limit"
167 |
168 | # CPU speed shorthand
169 | #
170 | # Default: 'off'
171 | # Values: 'on', 'off'.
172 | # Flag: --speed_shorthand
173 | # NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
174 | #
175 | # Example:
176 | # on: 'i7-6500U (4) @ 3.1GHz'
177 | # off: 'i7-6500U (4) @ 3.100GHz'
178 | speed_shorthand="off"
179 |
180 | # Enable/Disable CPU brand in output.
181 | #
182 | # Default: 'on'
183 | # Values: 'on', 'off'
184 | # Flag: --cpu_brand
185 | #
186 | # Example:
187 | # on: 'Intel i7-6500U'
188 | # off: 'i7-6500U (4)'
189 | cpu_brand="on"
190 |
191 | # CPU Speed
192 | # Hide/Show CPU speed.
193 | #
194 | # Default: 'on'
195 | # Values: 'on', 'off'
196 | # Flag: --cpu_speed
197 | #
198 | # Example:
199 | # on: 'Intel i7-6500U (4) @ 3.1GHz'
200 | # off: 'Intel i7-6500U (4)'
201 | cpu_speed="on"
202 |
203 | # CPU Cores
204 | # Display CPU cores in output
205 | #
206 | # Default: 'logical'
207 | # Values: 'logical', 'physical', 'off'
208 | # Flag: --cpu_cores
209 | # Support: 'physical' doesn't work on BSD.
210 | #
211 | # Example:
212 | # logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
213 | # physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
214 | # off: 'Intel i7-6500U @ 3.1GHz'
215 | cpu_cores="logical"
216 |
217 | # CPU Temperature
218 | # Hide/Show CPU temperature.
219 | # Note the temperature is added to the regular CPU function.
220 | #
221 | # Default: 'off'
222 | # Values: 'C', 'F', 'off'
223 | # Flag: --cpu_temp
224 | # Supports: Linux, BSD
225 | # NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
226 | # coretemp kernel module. This only supports newer Intel processors.
227 | #
228 | # Example:
229 | # C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
230 | # F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
231 | # off: 'Intel i7-6500U (4) @ 3.1GHz'
232 | cpu_temp="off"
233 |
234 |
235 | # GPU
236 |
237 |
238 | # Enable/Disable GPU Brand
239 | #
240 | # Default: 'on'
241 | # Values: 'on', 'off'
242 | # Flag: --gpu_brand
243 | #
244 | # Example:
245 | # on: 'AMD HD 7950'
246 | # off: 'HD 7950'
247 | gpu_brand="on"
248 |
249 | # Which GPU to display
250 | #
251 | # Default: 'all'
252 | # Values: 'all', 'dedicated', 'integrated'
253 | # Flag: --gpu_type
254 | # Supports: Linux
255 | #
256 | # Example:
257 | # all:
258 | # GPU1: AMD HD 7950
259 | # GPU2: Intel Integrated Graphics
260 | #
261 | # dedicated:
262 | # GPU1: AMD HD 7950
263 | #
264 | # integrated:
265 | # GPU1: Intel Integrated Graphics
266 | gpu_type="dedicated"
267 |
268 |
269 | # Resolution
270 |
271 |
272 | # Display refresh rate next to each monitor
273 | # Default: 'off'
274 | # Values: 'on', 'off'
275 | # Flag: --refresh_rate
276 | # Supports: Doesn't work on Windows.
277 | #
278 | # Example:
279 | # on: '1920x1080 @ 60Hz'
280 | # off: '1920x1080'
281 | refresh_rate="off"
282 |
283 |
284 | # Gtk Theme / Icons / Font
285 |
286 |
287 | # Shorten output of GTK Theme / Icons / Font
288 | #
289 | # Default: 'off'
290 | # Values: 'on', 'off'
291 | # Flag: --gtk_shorthand
292 | #
293 | # Example:
294 | # on: 'Numix, Adwaita'
295 | # off: 'Numix [GTK2], Adwaita [GTK3]'
296 | gtk_shorthand="off"
297 |
298 |
299 | # Enable/Disable gtk2 Theme / Icons / Font
300 | #
301 | # Default: 'on'
302 | # Values: 'on', 'off'
303 | # Flag: --gtk2
304 | #
305 | # Example:
306 | # on: 'Numix [GTK2], Adwaita [GTK3]'
307 | # off: 'Adwaita [GTK3]'
308 | gtk2="on"
309 |
310 | # Enable/Disable gtk3 Theme / Icons / Font
311 | #
312 | # Default: 'on'
313 | # Values: 'on', 'off'
314 | # Flag: --gtk3
315 | #
316 | # Example:
317 | # on: 'Numix [GTK2], Adwaita [GTK3]'
318 | # off: 'Numix [GTK2]'
319 | gtk3="on"
320 |
321 |
322 | # IP Address
323 |
324 |
325 | # Website to ping for the public IP
326 | #
327 | # Default: 'http://ident.me'
328 | # Values: 'url'
329 | # Flag: --ip_host
330 | public_ip_host="http://ident.me"
331 |
332 | # Public IP timeout.
333 | #
334 | # Default: '2'
335 | # Values: 'int'
336 | # Flag: --ip_timeout
337 | public_ip_timeout=2
338 |
339 |
340 | # Desktop Environment
341 |
342 |
343 | # Show Desktop Environment version
344 | #
345 | # Default: 'on'
346 | # Values: 'on', 'off'
347 | # Flag: --de_version
348 | de_version="on"
349 |
350 |
351 | # Disk
352 |
353 |
354 | # Which disks to display.
355 | # The values can be any /dev/sdXX, mount point or directory.
356 | # NOTE: By default we only show the disk info for '/'.
357 | #
358 | # Default: '/'
359 | # Values: '/', '/dev/sdXX', '/path/to/drive'.
360 | # Flag: --disk_show
361 | #
362 | # Example:
363 | # disk_show=('/' '/dev/sdb1'):
364 | # 'Disk (/): 74G / 118G (66%)'
365 | # 'Disk (/mnt/Videos): 823G / 893G (93%)'
366 | #
367 | # disk_show=('/'):
368 | # 'Disk (/): 74G / 118G (66%)'
369 | #
370 | disk_show=('/')
371 |
372 | # Disk subtitle.
373 | # What to append to the Disk subtitle.
374 | #
375 | # Default: 'mount'
376 | # Values: 'mount', 'name', 'dir', 'none'
377 | # Flag: --disk_subtitle
378 | #
379 | # Example:
380 | # name: 'Disk (/dev/sda1): 74G / 118G (66%)'
381 | # 'Disk (/dev/sdb2): 74G / 118G (66%)'
382 | #
383 | # mount: 'Disk (/): 74G / 118G (66%)'
384 | # 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
385 | # 'Disk (/mnt/Videos): 74G / 118G (66%)'
386 | #
387 | # dir: 'Disk (/): 74G / 118G (66%)'
388 | # 'Disk (Local Disk): 74G / 118G (66%)'
389 | # 'Disk (Videos): 74G / 118G (66%)'
390 | #
391 | # none: 'Disk: 74G / 118G (66%)'
392 | # 'Disk: 74G / 118G (66%)'
393 | # 'Disk: 74G / 118G (66%)'
394 | disk_subtitle="mount"
395 |
396 | # Disk percent.
397 | # Show/Hide disk percent.
398 | #
399 | # Default: 'on'
400 | # Values: 'on', 'off'
401 | # Flag: --disk_percent
402 | #
403 | # Example:
404 | # on: 'Disk (/): 74G / 118G (66%)'
405 | # off: 'Disk (/): 74G / 118G'
406 | disk_percent="on"
407 |
408 |
409 | # Song
410 |
411 |
412 | # Manually specify a music player.
413 | #
414 | # Default: 'auto'
415 | # Values: 'auto', 'player-name'
416 | # Flag: --music_player
417 | #
418 | # Available values for 'player-name':
419 | #
420 | # amarok
421 | # audacious
422 | # banshee
423 | # bluemindo
424 | # clementine
425 | # cmus
426 | # deadbeef
427 | # deepin-music
428 | # dragon
429 | # elisa
430 | # exaile
431 | # gnome-music
432 | # gmusicbrowser
433 | # gogglesmm
434 | # guayadeque
435 | # io.elementary.music
436 | # iTunes
437 | # juk
438 | # lollypop
439 | # mocp
440 | # mopidy
441 | # mpd
442 | # muine
443 | # netease-cloud-music
444 | # olivia
445 | # playerctl
446 | # pogo
447 | # pragha
448 | # qmmp
449 | # quodlibet
450 | # rhythmbox
451 | # sayonara
452 | # smplayer
453 | # spotify
454 | # strawberry
455 | # tauonmb
456 | # tomahawk
457 | # vlc
458 | # xmms2d
459 | # xnoise
460 | # yarock
461 | music_player="mpd"
462 |
463 | # Format to display song information.
464 | #
465 | # Default: '%artist% - %album% - %title%'
466 | # Values: '%artist%', '%album%', '%title%'
467 | # Flag: --song_format
468 | #
469 | # Example:
470 | # default: 'Song: Jet - Get Born - Sgt Major'
471 | song_format="%artist% - %album% - %title%"
472 |
473 | # Print the Artist, Album and Title on separate lines
474 | #
475 | # Default: 'off'
476 | # Values: 'on', 'off'
477 | # Flag: --song_shorthand
478 | #
479 | # Example:
480 | # on: 'Artist: The Fratellis'
481 | # 'Album: Costello Music'
482 | # 'Song: Chelsea Dagger'
483 | #
484 | # off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
485 | song_shorthand="off"
486 |
487 | # 'mpc' arguments (specify a host, password etc).
488 | #
489 | # Default: ''
490 | # Example: mpc_args=(-h HOST -P PASSWORD)
491 | mpc_args=()
492 |
493 |
494 | # Text Colors
495 |
496 |
497 | # Text Colors
498 | #
499 | # Default: 'distro'
500 | # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
501 | # Flag: --colors
502 | #
503 | # Each number represents a different part of the text in
504 | # this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
505 | #
506 | # Example:
507 | # colors=(distro) - Text is colored based on Distro colors.
508 | # colors=(4 6 1 8 8 6) - Text is colored in the order above.
509 | colors=(distro)
510 |
511 |
512 | # Text Options
513 |
514 |
515 | # Toggle bold text
516 | #
517 | # Default: 'on'
518 | # Values: 'on', 'off'
519 | # Flag: --bold
520 | bold="on"
521 |
522 | # Enable/Disable Underline
523 | #
524 | # Default: 'on'
525 | # Values: 'on', 'off'
526 | # Flag: --underline
527 | underline_enabled="on"
528 |
529 | # Underline character
530 | #
531 | # Default: '-'
532 | # Values: 'string'
533 | # Flag: --underline_char
534 | underline_char="-"
535 |
536 |
537 | # Info Separator
538 | # Replace the default separator with the specified string.
539 | #
540 | # Default: ':'
541 | # Flag: --separator
542 | #
543 | # Example:
544 | # separator="->": 'Shell-> bash'
545 | # separator=" =": 'WM = dwm'
546 | separator=":"
547 |
548 |
549 | # Color Blocks
550 |
551 |
552 | # Color block range
553 | # The range of colors to print.
554 | #
555 | # Default: '0', '15'
556 | # Values: 'num'
557 | # Flag: --block_range
558 | #
559 | # Example:
560 | #
561 | # Display colors 0-7 in the blocks. (8 colors)
562 | # neofetch --block_range 0 7
563 | #
564 | # Display colors 0-15 in the blocks. (16 colors)
565 | # neofetch --block_range 0 15
566 | block_range=(0 15)
567 |
568 | # Toggle color blocks
569 | #
570 | # Default: 'on'
571 | # Values: 'on', 'off'
572 | # Flag: --color_blocks
573 | color_blocks="on"
574 |
575 | # Color block width in spaces
576 | #
577 | # Default: '3'
578 | # Values: 'num'
579 | # Flag: --block_width
580 | block_width=3
581 |
582 | # Color block height in lines
583 | #
584 | # Default: '1'
585 | # Values: 'num'
586 | # Flag: --block_height
587 | block_height=1
588 |
589 | # Color Alignment
590 | #
591 | # Default: 'auto'
592 | # Values: 'auto', 'num'
593 | # Flag: --col_offset
594 | #
595 | # Number specifies how far from the left side of the terminal (in spaces) to
596 | # begin printing the columns, in case you want to e.g. center them under your
597 | # text.
598 | # Example:
599 | # col_offset="auto" - Default behavior of neofetch
600 | # col_offset=7 - Leave 7 spaces then print the colors
601 | col_offset="auto"
602 |
603 | # Progress Bars
604 |
605 |
606 | # Bar characters
607 | #
608 | # Default: '-', '='
609 | # Values: 'string', 'string'
610 | # Flag: --bar_char
611 | #
612 | # Example:
613 | # neofetch --bar_char 'elapsed' 'total'
614 | # neofetch --bar_char '-' '='
615 | bar_char_elapsed="-"
616 | bar_char_total="="
617 |
618 | # Toggle Bar border
619 | #
620 | # Default: 'on'
621 | # Values: 'on', 'off'
622 | # Flag: --bar_border
623 | bar_border="on"
624 |
625 | # Progress bar length in spaces
626 | # Number of chars long to make the progress bars.
627 | #
628 | # Default: '15'
629 | # Values: 'num'
630 | # Flag: --bar_length
631 | bar_length=15
632 |
633 | # Progress bar colors
634 | # When set to distro, uses your distro's logo colors.
635 | #
636 | # Default: 'distro', 'distro'
637 | # Values: 'distro', 'num'
638 | # Flag: --bar_colors
639 | #
640 | # Example:
641 | # neofetch --bar_colors 3 4
642 | # neofetch --bar_colors distro 5
643 | bar_color_elapsed="distro"
644 | bar_color_total="distro"
645 |
646 |
647 | # Info display
648 | # Display a bar with the info.
649 | #
650 | # Default: 'off'
651 | # Values: 'bar', 'infobar', 'barinfo', 'off'
652 | # Flags: --cpu_display
653 | # --memory_display
654 | # --battery_display
655 | # --disk_display
656 | #
657 | # Example:
658 | # bar: '[---=======]'
659 | # infobar: 'info [---=======]'
660 | # barinfo: '[---=======] info'
661 | # off: 'info'
662 | cpu_display="off"
663 | memory_display="off"
664 | battery_display="off"
665 | disk_display="off"
666 |
667 |
668 | # Backend Settings
669 |
670 |
671 | # Image backend.
672 | #
673 | # Default: 'ascii'
674 | # Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
675 | # 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
676 | # Flag: --backend
677 | image_backend="ascii"
678 |
679 | # Image Source
680 | #
681 | # Which image or ascii file to display.
682 | #
683 | # Default: 'auto'
684 | # Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
685 | # 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
686 | # Flag: --source
687 | #
688 | # NOTE: 'auto' will pick the best image source for whatever image backend is used.
689 | # In ascii mode, distro ascii art will be used and in an image mode, your
690 | # wallpaper will be used.
691 | image_source="auto"
692 |
693 |
694 | # Ascii Options
695 |
696 |
697 | # Ascii distro
698 | # Which distro's ascii art to display.
699 | #
700 | # Default: 'auto'
701 | # Values: 'auto', 'distro_name'
702 | # Flag: --ascii_distro
703 | # NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS",
704 | # "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs,
705 | # ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock,
706 | # Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
707 | # BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
708 | # Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
709 | # Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
710 | # DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary,
711 | # EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
712 | # FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
713 | # gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
714 | # Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
715 | # Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
716 | # LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
717 | # Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
718 | # Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
719 | # NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba,
720 | # OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD,
721 | # Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint,
722 | # popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
723 | # Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
724 | # Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
725 | # Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
726 | # SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
727 | # openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
728 | # Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
729 | # Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin,
730 | # and IRIX have ascii logos
731 | # NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
732 | # Use '{distro name}_old' to use the old logos.
733 | # NOTE: Ubuntu has flavor variants.
734 | # Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
735 | # Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
736 | # NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
737 | # CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
738 | # Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
739 | # Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
740 | # Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
741 | # postmarketOS, and Void have a smaller logo variant.
742 | # Use '{distro name}_small' to use the small variants.
743 | ascii_distro="arch_small"
744 |
745 | # Ascii Colors
746 | #
747 | # Default: 'distro'
748 | # Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
749 | # Flag: --ascii_colors
750 | #
751 | # Example:
752 | # ascii_colors=(distro) - Ascii is colored based on Distro colors.
753 | # ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
754 | ascii_colors=(distro)
755 |
756 | # Bold ascii logo
757 | # Whether or not to bold the ascii logo.
758 | #
759 | # Default: 'on'
760 | # Values: 'on', 'off'
761 | # Flag: --ascii_bold
762 | ascii_bold="on"
763 |
764 |
765 | # Image Options
766 |
767 |
768 | # Image loop
769 | # Setting this to on will make neofetch redraw the image constantly until
770 | # Ctrl+C is pressed. This fixes display issues in some terminal emulators.
771 | #
772 | # Default: 'off'
773 | # Values: 'on', 'off'
774 | # Flag: --loop
775 | image_loop="off"
776 |
777 | # Thumbnail directory
778 | #
779 | # Default: '~/.cache/thumbnails/neofetch'
780 | # Values: 'dir'
781 | thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
782 |
783 | # Crop mode
784 | #
785 | # Default: 'normal'
786 | # Values: 'normal', 'fit', 'fill'
787 | # Flag: --crop_mode
788 | #
789 | # See this wiki page to learn about the fit and fill options.
790 | # https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
791 | crop_mode="normal"
792 |
793 | # Crop offset
794 | # Note: Only affects 'normal' crop mode.
795 | #
796 | # Default: 'center'
797 | # Values: 'northwest', 'north', 'northeast', 'west', 'center'
798 | # 'east', 'southwest', 'south', 'southeast'
799 | # Flag: --crop_offset
800 | crop_offset="center"
801 |
802 | # Image size
803 | # The image is half the terminal width by default.
804 | #
805 | # Default: 'auto'
806 | # Values: 'auto', '00px', '00%', 'none'
807 | # Flags: --image_size
808 | # --size
809 | image_size="auto"
810 |
811 | # Gap between image and text
812 | #
813 | # Default: '3'
814 | # Values: 'num', '-num'
815 | # Flag: --gap
816 | gap=3
817 |
818 | # Image offsets
819 | # Only works with the w3m backend.
820 | #
821 | # Default: '0'
822 | # Values: 'px'
823 | # Flags: --xoffset
824 | # --yoffset
825 | yoffset=0
826 | xoffset=0
827 |
828 | # Image background color
829 | # Only works with the w3m backend.
830 | #
831 | # Default: ''
832 | # Values: 'color', 'blue'
833 | # Flag: --b
834 |
--------------------------------------------------------------------------------
/neofetch/images/arch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/arch.png
--------------------------------------------------------------------------------
/neofetch/images/arch_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/arch_dark.png
--------------------------------------------------------------------------------
/neofetch/images/artix.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/artix.png
--------------------------------------------------------------------------------
/neofetch/images/bedrock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/bedrock.png
--------------------------------------------------------------------------------
/neofetch/images/gentoo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/gentoo.png
--------------------------------------------------------------------------------
/neofetch/images/gentoo_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/gentoo_dark.png
--------------------------------------------------------------------------------
/neofetch/images/lofi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/lofi.png
--------------------------------------------------------------------------------
/neofetch/images/loli.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/loli.png
--------------------------------------------------------------------------------
/neofetch/images/lolix.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/lolix.png
--------------------------------------------------------------------------------
/neofetch/images/sakura.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/sakura.png
--------------------------------------------------------------------------------
/neofetch/images/ubuntu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/ubuntu.png
--------------------------------------------------------------------------------
/neofetch/images/ubuntu_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/ubuntu_dark.png
--------------------------------------------------------------------------------
/neofetch/images/void.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/void.png
--------------------------------------------------------------------------------
/neofetch/images/void_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/neofetch/images/void_dark.png
--------------------------------------------------------------------------------
/rofi/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/rofi/README.md:
--------------------------------------------------------------------------------
1 | # hyprland-rofi
2 | Just my personal Rofi configuration for Hyprland. :-)
3 |
--------------------------------------------------------------------------------
/rofi/config.rasi:
--------------------------------------------------------------------------------
1 | configuration {
2 | modi: "drun,run";
3 | lines: 5;
4 | font: "JetBrains Mono Nerd Font Bold 14";
5 | show-icons: true;
6 | icon-theme: "Papirus-Dark";
7 | terminal: "alacritty";
8 | drun-display-format: "{icon} {name}";
9 | location: 0;
10 | disable-history: false;
11 | hide-scrollbar: true;
12 | sidebar-mode: true;
13 | display-drun: " Apps ";
14 | display-run: " Command ";
15 | display-window: " Window ";
16 | }
17 |
18 | @theme "themes/gruvbox"
19 |
20 | element-text {
21 | background-color: #00000000;
22 | text-color: inherit;
23 | }
24 |
25 | element-text selected {
26 | background-color: #00000000;
27 | text-color: inherit;
28 | }
29 |
30 | mode-switcher {
31 | background-color: #00000000;
32 | }
33 |
34 | window {
35 | height: 400px;
36 | width: 600px;
37 | border: 0px;
38 | border-radius: 5px;
39 | border: 0px 0px 8px 0px;
40 | border-color: @window-underline;
41 | background-color: @window;
42 | padding: 0px 0px 0px 0px;
43 | fullscreen: false;
44 | }
45 |
46 | mainbox {
47 | background-color: #00000000;
48 | }
49 |
50 | inputbar {
51 | children: [prompt,entry];
52 | background-color: #00000000;
53 | border-radius: 3px;
54 | padding: 2px;
55 | }
56 |
57 | prompt {
58 | background-color: @button;
59 | padding: 12px;
60 | text-color: @bg-col;
61 | border-radius: 3px;
62 | margin: 8px 0px 0px 8px;
63 | border: 0px 0px 8px 0px;
64 | border-color: @button-underline;
65 | }
66 |
67 | textbox-prompt-colon {
68 | expand: false;
69 | str: ":";
70 | }
71 |
72 | entry {
73 | padding: 12px 13px -4px 11px;
74 | margin: 8px 8px 0px 8px;
75 | text-color: @fg-col;
76 | background-color: @blank;
77 | border-radius: 3px;
78 | border: 0px 0px 8px 0px;
79 | border-color: @blank-underline;
80 | }
81 |
82 | listview {
83 | border: 0px 0px 0px;
84 | margin: 27px 10px -13px 10px;
85 | background-color: #00000000;
86 | columns: 1;
87 | }
88 |
89 | element {
90 | padding: 12px 12px 12px 12px;
91 | background-color: @blank;
92 | text-color: @fg-col;
93 | margin: 0px 0px 8px 0px;
94 | border-radius: 3px;
95 | border: 0px 0px 8px 0px;
96 | border-color: @blank-underline;
97 | }
98 |
99 | element-icon {
100 | size: 25px;
101 | background-color: #00000000;
102 | }
103 |
104 | element selected {
105 | background-color: @button;
106 | text-color: @fg-col2;
107 | border-radius: 3px;
108 | border: 0px 0px 8px 0px;
109 | border-color: @button-underline;
110 | }
111 |
112 | mode-switcher {
113 | spacing: 0;
114 | }
115 |
116 | button {
117 | padding: 12px;
118 | margin: 10px;
119 | background-color: @blank;
120 | text-color: @tab;
121 | vertical-align: 0.5;
122 | horizontal-align: 0.5;
123 | border-radius: 3px;
124 | border: 0px 0px 8px 0px;
125 | border-color: @blank-underline;
126 | }
127 |
128 | button selected {
129 | background-color: @bg-col-light;
130 | text-color: @tab-selected;
131 | border-radius: 3px;
132 | border: 0px 0px 8px 0px;
133 | border-color: @button-underline;
134 | }
135 |
--------------------------------------------------------------------------------
/rofi/confirm.rasi:
--------------------------------------------------------------------------------
1 | configuration {
2 | modi: "drun,run";
3 | lines: 5;
4 | font: "JetBrains Mono Nerd Font Bold 14";
5 | show-icons: true;
6 | icon-theme: "Papirus-Dark";
7 | terminal: "alacritty";
8 | drun-display-format: "{icon} {name}";
9 | location: 0;
10 | disable-history: false;
11 | hide-scrollbar: true;
12 | sidebar-mode: true;
13 | display-drun: " Apps ";
14 | display-run: " Command ";
15 | display-window: " Window ";
16 | }
17 |
18 | @theme "themes/gruvbox"
19 |
20 | element-text, element-icon , mode-switcher {
21 | background-color: inherit;
22 | text-color: inherit;
23 | }
24 |
25 | window {
26 | height: 300px;
27 | width: 450px;
28 | border: 0px;
29 | border-radius: 5px;
30 | border-color: @border-col;
31 | background-color: @bg-col;
32 | padding: 0px 0px 0px 0px;
33 | fullscreen: false;
34 | }
35 |
36 | mainbox {
37 | background-color: @bg-col;
38 | }
39 |
40 | inputbar {
41 | children: [prompt];
42 | background-color: @bg-col;
43 | border-radius: 3px;
44 | padding: 2px;
45 | }
46 |
47 | prompt {
48 | background-color: @bubble;
49 | padding: 12px;
50 | text-color: @bg-col;
51 | border-radius: 3px;
52 | margin: 8px 0px 0px 8px;
53 | }
54 |
55 | textbox-prompt-colon {
56 | expand: false;
57 | str: ":";
58 | }
59 |
60 | entry {
61 | padding: 6px;
62 | margin: 14px 0px 0px 2.5px;
63 | text-color: @fg-col;
64 | background-color: @bg-col;
65 | }
66 |
67 | listview {
68 | border: 0px 0px 0px;
69 | margin: 7px 10px 0px 10px;
70 | background-color: @bg-col;
71 | columns: 1;
72 | }
73 |
74 | element {
75 | padding: 12px 12px 12px 12px;
76 | background-color: @bg-col;
77 | text-color: @fg-col ;
78 | }
79 |
80 | element-icon {
81 | size: 25px;
82 | }
83 |
84 | element selected {
85 | background-color: @selected-col ;
86 | text-color: @fg-col2 ;
87 | border-radius: 3px;
88 | }
89 |
90 | mode-switcher {
91 | spacing: 0;
92 | }
93 |
94 | button {
95 | padding: 12px;
96 | margin: 10px;
97 | background-color: @bg-col;
98 | text-color: @tab;
99 | vertical-align: 0.5;
100 | horizontal-align: 0.5;
101 | }
102 |
103 | button selected {
104 | background-color: @bg-col-light;
105 | text-color: @tab-selected;
106 | border-radius: 3px;
107 | }
108 |
--------------------------------------------------------------------------------
/rofi/global/emoji.rasi:
--------------------------------------------------------------------------------
1 | configuration {
2 | display-emoji: "";
3 | show-icons: false;
4 | me-select-entry: "";
5 | me-accept-entry: "MousePrimary";
6 | }
7 |
8 | * {
9 | font: "Noto Sans 11";
10 | text-color: #eff0eb;
11 | background-color: #1917244D;
12 | border-color: #00000000;
13 | width: 684px;
14 | height: 477px;
15 | location: 0;
16 | }
17 |
18 | inputbar {
19 | border: 0 0 1px 0;
20 | children: [prompt,entry];
21 | }
22 |
23 | prompt {
24 | font: "Noto Sans 18";
25 | vertical-align: 0.5;
26 | padding: 0px 9px 0px 9px;
27 | border: 0 1px 0 0;
28 | }
29 |
30 | entry {
31 | padding: 12px;
32 | }
33 |
34 | textbox {
35 | background-color: #1917244D;
36 | border-color: #1917244D;
37 | padding: 13px 13px;
38 | }
39 |
40 | listview {
41 | cycle: false;
42 | scrollbar: false;
43 | columns: 9;
44 | cycle: false;
45 | dynamic: false;
46 | layout: vertical;
47 | padding: 8px 10px 10px 10px;
48 | }
49 |
50 | element {
51 | border-radius: 3px;
52 | padding: 14px 0px 14px 0px;
53 | }
54 |
55 | element-text {
56 | font: "Noto Color Emoji 27";
57 | expand: false;
58 | text-color: #333333;
59 | horizontal-align: 1;
60 | vertical-align: 0.5;
61 | margin: 0px 0px 0px 13px;
62 | width: 1px;
63 | padding: 1px 0px 16px;
64 | }
65 |
66 | element selected {
67 | background-color: #191724;
68 | }
--------------------------------------------------------------------------------
/rofi/global/history.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orhnk/hypr-dots/aa5bfb8ff83ea85d3102a1709cd2f7ea3a26739e/rofi/global/history.txt
--------------------------------------------------------------------------------
/rofi/global/icons/google.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
366 |
--------------------------------------------------------------------------------
/rofi/global/icons/history.svg:
--------------------------------------------------------------------------------
1 |
2 |
76 |
--------------------------------------------------------------------------------
/rofi/global/icons/result.svg:
--------------------------------------------------------------------------------
1 |
2 |
58 |
--------------------------------------------------------------------------------
/rofi/global/icons/suggestion.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rofi/global/rofi-spotlight.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | TMP_DIR="/tmp/rofi/${USER}/"
4 |
5 | PREV_LOC_FILE="${TMP_DIR}rofi_fb_prevloc"
6 | CURRENT_FILE="${TMP_DIR}rofi_fb_current_file"
7 |
8 | MY_PATH="$(realpath "$0" | xargs dirname)"
9 | HIST_FILE="${MY_PATH}/history.txt"
10 |
11 | OPENER=xdg-open
12 | TERM_EMU=wezterm
13 | TEXT_EDITOR=$EDITOR
14 | FILE_MANAGER=xdg-open
15 | BLUETOOTH_SEND=blueman-sendto
16 |
17 | CUR_DIR=$PWD
18 | NEXT_DIR=""
19 | FD_INSTALLED=$(command -v fd)
20 |
21 | SHOW_HIDDEN=false
22 |
23 | # Setup menu options
24 | declare -a OPEN_FILE_LOCATION=(
25 | "Open file location in ${TERM_EMU}"
26 | "Open file location in ${FILE_MANAGER}"
27 | )
28 | declare -a RUN_COMMANDS=(
29 | "Run"
30 | "Execute in ${TERM_EMU}"
31 | )
32 | declare -a STANDARD_CONTROLS=(
33 | "Move to trash"
34 | "Delete"
35 | "Back"
36 | )
37 | declare -a SHELL_NO_X_OPTIONS=(
38 | "Edit"
39 | "${OPEN_FILE_LOCATION[@]}"
40 | "${STANDARD_CONTROLS[@]}"
41 | )
42 | declare -a SHELL_OPTIONS=(
43 | "${RUN_COMMANDS[@]}"
44 | "${SHELL_NO_X_OPTIONS[@]}"
45 | )
46 | declare -a BIN_NO_X_OPTIONS=(
47 | "${OPEN_FILE_LOCATION[@]}"
48 | "Back"
49 | )
50 | declare -a BIN_OPTIONS=(
51 | "${RUN_COMMANDS[@]}"
52 | "${BIN_NO_X_OPTIONS[@]}"
53 | )
54 | declare -a TEXT_OPTIONS=("${SHELL_NO_X_OPTIONS[@]}")
55 | declare -a HTML_OPTIONS=(
56 | "Open"
57 | "Edit"
58 | "${OPEN_FILE_LOCATION[@]}"
59 | "${STANDARD_CONTROLS[@]}"
60 | )
61 | declare -a XCF_SVG_OPTIONS=(
62 | "Open"
63 | "${OPEN_FILE_LOCATION[@]}"
64 | "${STANDARD_CONTROLS[@]}"
65 | )
66 | declare -a IMAGE_OPTIONS=(
67 | "Open"
68 | "Send via Bluetooth"
69 | "${OPEN_FILE_LOCATION[@]}"
70 | "${STANDARD_CONTROLS[@]}"
71 | )
72 |
73 | declare -a ALL_OPTIONS=()
74 |
75 | # Combine all context menu
76 | COMBINED_OPTIONS=(
77 | "${SHELL_OPTIONS[@]}"
78 | "${IMAGE_OPTIONS[@]}"
79 | )
80 |
81 | # Remove duplicates
82 | ALL_OPTIONS=("$(printf '%s\n' "${COMBINED_OPTIONS[@]}" | sort -u)")
83 |
84 | # Create tmp dir for rofi
85 | [ ! -d "${TMP_DIR}" ] && mkdir -p "${TMP_DIR}";
86 |
87 | # Create hist file if it doesn't exist
88 | [ ! -f "${HIST_FILE}" ] && touch "${HIST_FILE}"
89 |
90 | # Help message
91 | if [ -n "$*" ] && [[ "$*" = ":help" ]]
92 | then
93 | echo -en "Rofi Spotlight
94 | A Rofi with file and web searching functionality
95 |
96 | Commands:
97 | :help to print this help message
98 | :h or :hidden to show hidden files/dirs
99 | :sh or :show_hist to show search history
100 | :ch or :clear_hist to clear search history
101 | :xdg to jump to an xdg directory
102 | Examples:
103 | :xdg DOCUMENTS
104 | :xdg DOWNLOADS
105 | Also supports incomplete path:
106 | Examples:
107 | :xdg doc
108 | :xdg down
109 | For more info about XDG dirs, see:
110 | \`man xdg-user-dir\`
111 |
112 | File search syntaxes:
113 | ! to search for a file and web suggestions
114 | ? to search parent directories
115 | Examples:
116 | !half-life 3
117 | ?portal 3
118 |
119 | Web search syntaxes:
120 | ! to gets search suggestions
121 | :web/:w to also to gets search suggestions
122 | :webbro/:wb to search directly from your browser
123 | Examples:
124 | !how to install archlinux
125 | :web how to install gentoo
126 | :w how to make a nuclear fission
127 | :webbro how to install wine in windowsxp
128 | Back\0icon\x1fdraw-arrow-back\n"
129 |
130 | exit
131 | fi
132 |
133 | # Return the icon string
134 | function icon_file_type(){
135 | icon_name=""
136 | mime_type=$(file --mime-type -b "${1}")
137 |
138 | case "${mime_type}" in
139 | "inode/directory")
140 | case "${1}" in
141 | "Desktop/" )
142 | icon_name='folder-blue-desktop'
143 | ;;
144 | "Documents/" )
145 | icon_name='folder-blue-documents'
146 | ;;
147 | "Downloads/" )
148 | icon_name='folder-blue-downloads'
149 | ;;
150 | "Music/" )
151 | icon_name='folder-blue-music'
152 | ;;
153 | "Pictures/" )
154 | icon_name='folder-blue-pictures'
155 | ;;
156 | "Public/" )
157 | icon_name='folder-blue-public'
158 | ;;
159 | "Templates/" )
160 | icon_name='folder-blue-templates'
161 | ;;
162 | "Videos/" )
163 | icon_name='folder-blue-videos'
164 | ;;
165 | "root/" )
166 | icon_name='folder-root'
167 | ;;
168 | "home/" | "${USER}/")
169 | icon_name='folder-home'
170 | ;;
171 | *"$" )
172 | icon_name='folder-blue'
173 | ;;
174 | *)
175 | icon_name='folder-blue'
176 | ;;
177 | esac
178 | ;;
179 | "inode/symlink" )
180 | icon_name='inode-symlink'
181 | ;;
182 | "audio/flac" | "audio/mpeg" )
183 | icon_name='music'
184 | ;;
185 | "video/mp4" )
186 | icon_name='video-mp4'
187 | ;;
188 | "video/x-matroska" )
189 | icon_name=video-x-matroska
190 | ;;
191 | "image/x-xcf" )
192 | # notify-send '123'
193 | icon_name='image-x-xcf'
194 | ;;
195 | "image/jpeg" | "image/png" | "image/svg+xml")
196 | icon_name="${CUR_DIR}/${1}"
197 | ;;
198 | "image/gif" )
199 | icon_name='gif'
200 | ;;
201 | "image/vnd.adobe.photoshop" )
202 | icon_name='image-vnd.adobe.photoshop'
203 | ;;
204 | "image/webp" )
205 | icon_name='gif'
206 | ;;
207 | "application/x-pie-executable" )
208 | icon_name='binary'
209 | ;;
210 | "application/pdf" )
211 | icon_name='pdf'
212 | ;;
213 | "application/zip" )
214 | icon_name='application-zip'
215 | ;;
216 | "application/x-xz" )
217 | icon_name='application-x-xz-compressed-tar'
218 | ;;
219 | "application/x-7z-compressed" )
220 | icon_name='application-x-7zip'
221 | ;;
222 | "application/x-rar" )
223 | icon_name='application-x-rar'
224 | ;;
225 | "application/octet-stream" | "application/x-iso9660-image" )
226 | icon_name='application-x-iso'
227 | ;;
228 | "application/x-dosexec" )
229 | icon_name='application-x-ms-dos-executable'
230 | ;;
231 | "text/plain" )
232 | icon_name='application-text'
233 | ;;
234 | "text/x-shellscript" )
235 | icon_name='application-x-shellscript'
236 | ;;
237 | "text/html" )
238 | icon_name='text-html'
239 | ;;
240 | "font/sfnt" | "application/vnd.ms-opentype" )
241 | icon_name='application-x-font-ttf'
242 | ;;
243 | * )
244 | case "${1}" in
245 | *."docx" | *".doc" )
246 | icon_name='application-msword'
247 | ;;
248 | *."apk" )
249 | icon_name='android-package-archive'
250 | ;;
251 | * )
252 | icon_name='unknown'
253 | ;;
254 | esac
255 | ;;
256 | esac
257 |
258 | echo -en "$1\0icon\x1f$icon_name\n"
259 | }
260 |
261 | export -f icon_file_type
262 |
263 | # Pass the argument to python script
264 | function web_search() {
265 | # Pass the search query to web-search script
266 | "${MY_PATH}/web-search.py" "${1}"
267 | exit;
268 | }
269 |
270 | # Handles the web search method
271 | if [ ! -z "$@" ] && ([[ "$@" == ":webbro"* ]] || [[ "$@" == ":wb"* ]])
272 | then
273 | remove=''
274 | [[ "$*" = ":webbro"* ]] && remove=":webbro" || remove=":wb"
275 |
276 | # Search directly from your web browser
277 | web_search "$(printf '%s\n' "${1//$remove/}")"
278 | exit;
279 |
280 | elif [ ! -z "$@" ] && ([[ "$@" == ":web"* ]] || [[ "$@" == ":w"* ]])
281 | then
282 | remove=''
283 | [[ "$*" = ":web"* ]] && remove=":web" || remove=":w"
284 |
285 | # Get search suggestions
286 | web_search "!$(printf '%s\n' "${1//$remove/}")"
287 | exit;
288 | fi
289 |
290 | function find_query() {
291 | QUERY=${1}
292 | if [[ ! "${QUERY}" =~ ( |\') ]]
293 | then
294 | if [ -z "$FD_INSTALLED" ];
295 | then
296 | find "${HOME}" -iname *"${QUERY}"* | sed "s/\/home\/$USER/\~/" |
297 | awk -v MY_PATH="${MY_PATH}" '{print $0"\0icon\x1f"MY_PATH"/icons/result.svg\n"}'
298 | else
299 | fd -H ${QUERY} ${HOME} | sed "s/\/home\/$USER/\~/" |
300 | awk -v MY_PATH="${MY_PATH}" '{print $0"\0icon\x1f"MY_PATH"/icons/result.svg\n"}'
301 | fi
302 | fi
303 | }
304 |
305 | # File and calls to the web search
306 | if [ ! -z "$@" ] && ([[ "$@" == ?(\~)/* ]] || [[ "$@" == \?* ]] || [[ "$@" == \!* ]])
307 | then
308 | QUERY=$@
309 |
310 | echo "${QUERY}" >> "${HIST_FILE}"
311 |
312 | if [[ "$@" == ?(\~)/* ]]
313 | then
314 | [[ "$*" = \~* ]] && QUERY="${QUERY//"~"/"$HOME"}"
315 |
316 | coproc ${OPENER} "${QUERY}" > /dev/null 2>&1
317 | exec 1>&-
318 | exit
319 |
320 | elif [[ "$@" == \?* ]]
321 | then
322 | find_query ${QUERY#\?}
323 |
324 | else
325 | # Find the file
326 | find_query ${QUERY#!}
327 |
328 | # Web search
329 | web_search "! ${QUERY#!}"
330 | fi
331 | exit;
332 | fi
333 |
334 | # Create notification if there's an error
335 | function create_notification() {
336 | case "${1}" in
337 | "denied" )
338 | notify-send -a "Global Search" "Permission denied!" \
339 | 'You have no permission to access '"${CUR_DIR}!"
340 | ;;
341 | "deleted" )
342 | notify-send -a "Global Search" "Success!" \
343 | 'File deleted!'
344 | ;;
345 | "trashed" )
346 | notify-send -a "Global Search" "Success!" \
347 | 'The file has been moved to trash!'
348 | ;;
349 | "cleared" )
350 | notify-send -a "Global Search" "Success!" \
351 | 'Search history has been successfully cleared!'
352 | ;;
353 | * )
354 | notify-send -a "Global Search" "Somethings wrong I can feel it!" \
355 | 'This incident will be reported!'
356 | ;;
357 | esac
358 | }
359 |
360 | # Show the files in the current directory
361 | function navigate_to() {
362 | # process current dir.
363 | if [ -n "${CUR_DIR}" ]
364 | then
365 | CUR_DIR=$(readlink -e "${CUR_DIR}")
366 | if [ ! -d "${CUR_DIR}" ] || [ ! -r "${CUR_DIR}" ]
367 | then
368 | create_notification "denied"
369 | CUR_DIR=$(realpath ${CUR_DIR} | xargs dirname)
370 | echo "${CUR_DIR}" > "${PREV_LOC_FILE}"
371 | else
372 | echo "${CUR_DIR}/" > "${PREV_LOC_FILE}"
373 | fi
374 | pushd "${CUR_DIR}" >/dev/null || exit
375 | fi
376 |
377 | printf "..\0icon\x1fup\n"
378 |
379 | if [[ -z "$FD_INSTALLED" ]]
380 | then
381 | #Group directories
382 | if [[ ${SHOW_HIDDEN} == true ]]
383 | then
384 | for i in .*/
385 | do
386 | [[ -d "${i}" ]] && ([[ "${i}" != "./" ]] && [[ "${i}" != "../"* ]]) && icon_file_type "${i}"
387 | done
388 | fi
389 | for i in */
390 | do
391 | [[ -d "${i}" ]] && icon_file_type "${i}"
392 | done
393 | #Group files
394 | if [[ ${SHOW_HIDDEN} = true ]]
395 | then
396 | for i in .*
397 | do
398 | [[ -f "${i}" ]] && icon_file_type "${i}"
399 | done
400 | fi
401 | for i in *
402 | do
403 | [[ -f "${i}" ]] && icon_file_type "${i}"
404 | done
405 | else
406 | THREADS=$(getconf _NPROCESSORS_ONLN)
407 | export CUR_DIR
408 | if [[ ${SHOW_HIDDEN} == true ]]
409 | then
410 | fd -Ht d -d 1 -x bash -c 'icon_file_type "$1/"' _ {} \ | sort -V --parallel=$THREADS
411 | fd -Ht f -d 1 -x bash -c 'icon_file_type "$1"' _ {} \ | sort -V --parallel=$THREADS
412 | else
413 | fd -t d -d 1 -x bash -c 'icon_file_type "$1/"' _ {} \ | sort -V --parallel=$THREADS
414 | fd -t f -d 1 -x bash -c 'icon_file_type "$1"' _ {} \ | sort -V --parallel=$THREADS
415 | fi
416 | fi
417 | }
418 |
419 | # Set XDG dir
420 | function return_xdg_dir() {
421 | target_dir=${1^^}
422 |
423 | if [[ "HOME" == *"${target_dir}"* ]]
424 | then
425 | CUR_DIR=$(xdg-user-dir)
426 |
427 | elif [[ "DESKTOP" == *"${target_dir}"* ]]
428 | then
429 | CUR_DIR=$(xdg-user-dir DESKTOP)
430 |
431 | elif [[ "DOCUMENTS" == *"${target_dir}"* ]]
432 | then
433 | CUR_DIR=$(xdg-user-dir DOCUMENTS)
434 |
435 | elif [[ "DOWNLOADS" == *"${target_dir}"* ]]
436 | then
437 | CUR_DIR=$(xdg-user-dir DOWNLOAD)
438 |
439 | elif [[ "MUSIC" == *"${target_dir}"* ]]
440 | then
441 | CUR_DIR=$(xdg-user-dir MUSIC)
442 |
443 | elif [[ "PICTURES" == *"${target_dir}"* ]]
444 | then
445 | CUR_DIR=$(xdg-user-dir PICTURES)
446 |
447 | elif [[ "PUBLICSHARE" == *"${target_dir}"* ]]
448 | then
449 | CUR_DIR=$(xdg-user-dir PUBLICSHARE)
450 |
451 | elif [[ "TEMPLATES" == *"${target_dir}"* ]]
452 | then
453 | CUR_DIR=$(xdg-user-dir TEMPLATES)
454 |
455 | elif [[ "VIDEOS" == *"${target_dir}"* ]]
456 | then
457 | CUR_DIR=$(xdg-user-dir VIDEOS)
458 |
459 | elif [[ "ROOT" == *"${target_dir}"* ]]
460 | then
461 | CUR_DIR="/"
462 |
463 | else
464 | CUR_DIR="${HOME}"
465 | fi
466 | navigate_to
467 | exit;
468 | }
469 |
470 | # Show and Clear History
471 | if [ ! -z "$@" ] && ([[ "$@" == ":sh" ]] || [[ "$@" == ":show_hist" ]])
472 | then
473 | hist=$(tac "${HIST_FILE}")
474 |
475 | echo -en "Back\0icon\x1fdraw-arrow-back\n"
476 | [ -z "${hist}" ] && echo -en "No History Yet\0icon\x1ftext-plain\n"
477 |
478 | while IFS= read -r line;
479 | do
480 | echo -en "${line}\0icon\x1f${MY_PATH}/icons/history.svg\n";
481 | done <<< "${hist}"
482 |
483 | exit;
484 | elif [ ! -z "$@" ] && ([[ "$@" == ":ch" ]] || [[ "$@" == ":clear_hist" ]])
485 | then
486 | :> "${HIST_FILE}"
487 | create_notification "cleared"
488 |
489 | CUR_DIR="${HOME}"
490 | navigate_to
491 | exit;
492 | fi
493 |
494 | # Accepts XDG command
495 | if [[ ! -z "$@" ]] && [[ "$@" == ":xdg"* ]]
496 | then
497 | NEXT_DIR=${*//":xdg "/}
498 |
499 | [[ -n "$NEXT_DIR" ]] && return_xdg_dir "${NEXT_DIR}" || return_xdg_dir "${HOME}"
500 | fi
501 |
502 | # Read last location, otherwise we default to PWD.
503 | [ -f "${PREV_LOC_FILE}" ] && CUR_DIR=$(< "${PREV_LOC_FILE}")
504 |
505 | if [[ ! -z "$@" ]] && ([[ "$@" == ":h" ]] || [[ "$@" == ":hidden" ]])
506 | then
507 | SHOW_HIDDEN=true
508 | navigate_to
509 | exit;
510 | fi
511 |
512 | # Handle argument.
513 | [ -n "$*" ] && CUR_DIR="${CUR_DIR}/$*"
514 |
515 | # Context Menu
516 | if [ -n "$*" ] && [[ "${ALL_OPTIONS[*]} " = *"$*"* ]]
517 | then
518 | case "${1}" in
519 | "Run" )
520 | coproc ( eval "$(< ${CURRENT_FILE})" & > /dev/null 2>&1 )
521 | kill -9 $(pgrep rofi)
522 | ;;
523 | "Execute in ${TERM_EMU}" )
524 | coproc ( eval "${TERM_EMU} \"$(< ${CURRENT_FILE})\"" & > /dev/null 2>&1 )
525 | kill -9 $(pgrep rofi)
526 | ;;
527 | "Open" )
528 | coproc ( eval "${OPENER} \"$(< ${CURRENT_FILE})\"" & > /dev/null 2>&1 )
529 | kill -9 $(pgrep rofi)
530 | ;;
531 | "Open file location in ${TERM_EMU}" )
532 | file_path="$(< ${CURRENT_FILE})"
533 | coproc ( ${TERM_EMU} bash -c "cd ${file_path%/*} ; ${SHELL}" & > /dev/null 2>&1 )
534 | kill -9 $(pgrep rofi)
535 | ;;
536 | "Open file location in ${FILE_MANAGER}" )
537 | file_path="$(< "${CURRENT_FILE}")"
538 | coproc ( eval "${FILE_MANAGER} "${file_path%/*}"" & > /dev/null 2>&1 )
539 | kill -9 $(pgrep rofi)
540 | ;;
541 | "Edit" )
542 | coproc ( eval "${TERM_EMU} ${TEXT_EDITOR} \"$(< ${CURRENT_FILE})\"" & > /dev/null 2>&1 )
543 | kill -9 $(pgrep rofi)
544 | ;;
545 | "Move to trash" )
546 | coproc( gio trash "$(< ${CURRENT_FILE})" & > /dev/null 2>&1 )
547 | create_notification "trashed"
548 | CUR_DIR="$(dirname "$(< ${CURRENT_FILE})")"
549 | navigate_to
550 | ;;
551 | "Delete" )
552 | shred "$(< ${CURRENT_FILE})"
553 | rm "$(< ${CURRENT_FILE})"
554 | create_notification "deleted"
555 | CUR_DIR="$(dirname "$(< ${CURRENT_FILE})")"
556 | navigate_to
557 | ;;
558 | "Send via Bluetooth" )
559 | rfkill unblock bluetooth && bluetoothctl power on
560 | sleep 1
561 | blueman-sendto "$(< ${CURRENT_FILE})" & > /dev/null 2>&1
562 | kill -9 $(pgrep rofi)
563 | ;;
564 | "Back" )
565 | CUR_DIR="$(< ${PREV_LOC_FILE})"
566 | navigate_to
567 | ;;
568 | esac
569 | exit;
570 | fi
571 |
572 | function context_menu_icons() {
573 |
574 | if [[ "${1}" == "Run" ]]
575 | then
576 | echo '\0icon\x1fsystem-run\n'
577 |
578 | elif [[ "${1}" == "Execute in ${TERM_EMU}" ]]
579 | then
580 | echo "\0icon\x1f${TERM_EMU}\n"
581 |
582 | elif [[ "${1}" == "Open" ]]
583 | then
584 | echo "\0icon\x1futilities-x-terminal\n"
585 |
586 | elif [[ "${1}" == "Open file location in ${TERM_EMU}" ]]
587 | then
588 | echo "\0icon\x1f${TERM_EMU}\n"
589 |
590 | elif [[ "${1}" == "Open file location in ${FILE_MANAGER}" ]]
591 | then
592 | echo "\0icon\x1fblue-folder-open\n"
593 |
594 | elif [[ "${1}" == "Edit" ]]
595 | then
596 | echo "\0icon\x1faccessories-text-editor\n"
597 |
598 | elif [[ "${1}" == "Move to trash" ]]
599 | then
600 | echo "\0icon\x1fapplication-x-trash\n"
601 |
602 | elif [[ "${1}" == "Delete" ]]
603 | then
604 | echo "\0icon\x1findicator-trashindicator\n"
605 |
606 | elif [[ "${1}" == "Send via Bluetooth" ]]
607 | then
608 | echo "\0icon\x1fbluetooth\n"
609 |
610 | elif [[ "${1}" == "Back" ]]
611 | then
612 | echo "\0icon\x1fback\n"
613 | fi
614 | }
615 |
616 | function print_context_menu() {
617 | declare -a arg_arr=("${!1}")
618 |
619 | for menu in "${arg_arr[@]}"
620 | do
621 | printf "$menu$(context_menu_icons "${menu}")\n"
622 | done
623 | }
624 |
625 | function context_menu() {
626 |
627 | type="$(file --mime-type -b "${CUR_DIR}")"
628 |
629 | if [ -w "${CUR_DIR}" ] && [[ "${type}" == "text/x-shellscript" ]]
630 | then
631 | if [ -x "${CUR_DIR}" ];
632 | then
633 | print_context_menu SHELL_OPTIONS[@]
634 | else
635 | print_context_menu SHELL_NO_X_OPTIONS[@]
636 | fi
637 |
638 | elif [[ "${type}" == "application/x-executable" ]] || [[ "${type}" == "application/x-pie-executable" ]]
639 | then
640 | if [ -x "${CUR_DIR}" ]
641 | then
642 | print_context_menu BIN_OPTIONS[@]
643 | else
644 | print_context_menu BIN_NO_X_OPTIONS[@]
645 | fi
646 |
647 | elif [[ "${type}" == "text/plain" ]]
648 | then
649 | print_context_menu TEXT_OPTIONS[@]
650 |
651 | elif [[ "${type}" == "text/html" ]]
652 | then
653 | print_context_menu HTML_OPTIONS[@]
654 |
655 | elif [[ "${type}" == "image/jpeg" ]] || [[ "${type}" == "image/png" ]]
656 | then
657 | print_context_menu IMAGE_OPTIONS[@]
658 |
659 | elif [[ "${type}" == "image/x-xcf" ]] || [[ "${type}" == "image/svg+xml" ]]
660 | then
661 | print_context_menu XCF_SVG_OPTIONS[@]
662 |
663 | elif [ ! -w "${CUR_DIR}" ] && [[ "${type}" == "text/x-shellscript" ]]
664 | then
665 | coproc ( exec "${CUR_DIR}" & > /dev/null 2>&1 )
666 |
667 | else
668 | if [ ! -d "${CUR_DIR}" ] && [ ! -f "${CUR_DIR}" ]
669 | then
670 | QUERY="${CUR_DIR//*\/\//}"
671 |
672 | echo "${QUERY}" >> "${HIST_FILE}"
673 |
674 | find_query "${QUERY#!}"
675 |
676 | web_search "!${QUERY}"
677 | else
678 | coproc ( ${OPENER} "${CUR_DIR}" & > /dev/null 2>&1 )
679 | fi
680 | fi
681 | exit;
682 | }
683 |
684 | # If argument is not a directory/folder
685 | if [ ! -d "${CUR_DIR}" ]
686 | then
687 | echo "${CUR_DIR}" > "${CURRENT_FILE}"
688 | context_menu
689 | exit;
690 | fi
691 |
692 | navigate_to
693 |
--------------------------------------------------------------------------------
/rofi/global/rofi.rasi:
--------------------------------------------------------------------------------
1 | configuration {
2 | font: "Inter Regular 10";
3 | sidebar-mode: true;
4 | show-icons: true;
5 | icon-theme: "Nordzy";
6 | fullscreen: false;
7 | threads: 0;
8 | matching: "fuzzy";
9 | scroll-method: 0;
10 | monitor: "primary";
11 | }
12 |
13 | * {
14 | transparent: #00000000;
15 | foreground: #F2F2F2EE;
16 | background-selected: #F2F2F245;
17 | background-active: #F2F2F230;
18 | background-white: #F2F2F211;
19 | background-black: #00000000;
20 | urgent: #E91E6366;
21 | urgent-selected: #E91E6377;
22 | }
23 |
24 | window {
25 | transparency: "real";
26 | background-color: #1917244D;
27 | text-color: #6e6a86;
28 | location: west;
29 | anchor: west;
30 | x-offset: 5px;
31 | y-offset: -50px;
32 | height: 70%;
33 | width: 350px;
34 | orientation: vertical;
35 | }
36 |
37 | prompt {
38 | enabled: false;
39 | }
40 |
41 | button {
42 | action: "ok";
43 | str: " ";
44 | font: "FantasqueSansMono Nerd Font 16";
45 | expand: false;
46 | text-color: #6e6a86;
47 | background-color: @transparent;
48 | vertical-align: 0.5;
49 | horizontal-align: 0.5;
50 | }
51 |
52 | entry {
53 | font: "Inter Regular 12";
54 | background-color: @transparent;
55 | text-color: #6e6a86;
56 | expand: true;
57 | vertical-align: 0.5;
58 | horizontal-align: 0;
59 | placeholder: "Global Search";
60 | placeholder-color: @foreground;
61 | blink: true;
62 | }
63 |
64 | entry-wrapper {
65 | orientation: horizontal;
66 | margin: 0 12px 0 12px;
67 | spacing: 24px;
68 | vertical-align: 0.5;
69 | background-color: @transparent;
70 | children: [ button, entry ];
71 | }
72 |
73 | inputbar {
74 | padding: 14px;
75 | margin: 10px 10px 14px 10px;
76 | background-color: #26233a;
77 | text-color: @foreground;
78 | expand: false;
79 | border-radius: 9px;
80 | position: north;
81 | children: [ entry-wrapper ];
82 | }
83 |
84 | listview {
85 | background-color: @transparent;
86 | spacing: 0;
87 | cycle: true;
88 | dynamic: true;
89 | scrollbar: true;
90 | }
91 |
92 | mainbox {
93 | width: 200px;
94 | expand: true;
95 | spacing: 12px;
96 | padding: 5px;
97 | background-color: @background-black;
98 | children: [ inputbar, listview ];
99 | }
100 |
101 | scrollbar {
102 | background-color: @background-white;
103 | handle-width: 0;
104 | margin: 0 0 5px 0;
105 | border-radius: 9px;
106 | }
107 |
108 | element {
109 | background-color: @transparent;
110 | text-color: @foreground;
111 | orientation: horizontal;
112 | border: 0;
113 | border-color: @background-white;
114 | border-radius: 6px;
115 | spacing: 24px;
116 | margin: 0px 12px 0px 12px;
117 | padding: 10px 24px 10px 24px;
118 | }
119 |
120 | element-icon {
121 | size: 24px;
122 | border: 0;
123 | border-color: @transparent;
124 | background-color: transparent;
125 | }
126 |
127 | element-text {
128 | font: "Inter Regular 11";
129 | expand: true;
130 | horizontal-align: 0;
131 | vertical-align: 0.5;
132 | color: #6e6a86;
133 | background-color: transparent;
134 | }
135 |
136 | element normal.urgent,
137 | element alternate.urgent {
138 | background-color: @urgent;
139 | text-color: @foreground;
140 | border-radius: 9px;
141 | }
142 |
143 | element normal.active,
144 | element alternate.active {
145 | background-color: @background-active;
146 | text-color: @foreground;
147 | }
148 |
149 | element selected {
150 | background-color: #403d5220;
151 | text-color: @foreground;
152 | }
153 |
154 | element selected.urgent {
155 | background-color: @urgent-selected;
156 | text-color: @foreground;
157 | }
158 |
159 | element selected.active {
160 | background-color: #403d5220;
161 | color: @foreground-selected;
162 | }
--------------------------------------------------------------------------------
/rofi/global/web-search.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | # MIT License
4 |
5 | # Copyright (c) 2019 Paolo Donadeo
6 |
7 | # Permission is hereby granted, free of charge, to any person obtaining a copy
8 | # of this software and associated documentation files (the "Software"), to deal
9 | # in the Software without restriction, including without limitation the rights
10 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | # copies of the Software, and to permit persons to whom the Software is
12 | # furnished to do so, subject to the following conditions:
13 |
14 | # The above copyright notice and this permission notice shall be included in all
15 | # copies or substantial portions of the Software.
16 |
17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 |
24 | import json
25 | import re
26 | import urllib.parse
27 | import urllib.request
28 | import sys
29 | import os
30 | import datetime
31 | import gzip
32 |
33 | import subprocess as sp
34 |
35 | import html
36 |
37 |
38 | ################################################################################
39 | ##### C O N F I G U R A T I O N ######
40 | ################################################################################
41 | SEARCH_ENGINE = 'google' # or 'duckduckgo'
42 | BROWSER = 'firefox' # or 'firefox', 'chromium', 'brave', 'lynx'
43 | TERMINAL = ['kitty', '--'] # or ['st', '-e'] or something like that
44 | ################################################################################
45 |
46 | CONFIG = {
47 | 'BROWSER_PATH' : {
48 | 'chrome' : ['google-chrome-stable'],
49 | 'firefox' : ['firefox'],
50 | 'chromium' : ['chromium-browser'],
51 | 'brave' : ['brave-browser'],
52 | 'lynx' : TERMINAL + ['lynx']
53 | },
54 | 'USER_AGENT' : {
55 | 'chrome' : 'Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
56 | 'firefox' : 'Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0',
57 | 'chromium' : 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36',
58 | 'brave' : 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36',
59 | 'lynx' : 'Lynx/2.8.9rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/1.1.1d'
60 | },
61 | 'SEARCH_ENGINE_NAME' : {
62 | 'google' : 'Google',
63 | 'duckduckgo' : 'DuckDuckGo'
64 | },
65 | 'SEARCH_URL' : {
66 | 'google' : 'https://www.google.com/search?q=',
67 | 'duckduckgo' : 'https://duckduckgo.com/?q='
68 | },
69 | 'SUGGESTION_URL' : {
70 | 'google' : 'https://www.google.com/complete/search?',
71 | 'duckduckgo' : 'https://duckduckgo.com/ac/?'
72 | }
73 | }
74 |
75 | def cleanhtml(txt):
76 | return re.sub(r'<.*?>', '', txt)
77 |
78 | def fetch_suggestions(search_string):
79 | if SEARCH_ENGINE == 'google':
80 | r = {
81 | 'q' : search_string,
82 | 'cp' : '11',
83 | 'client' : 'psy-ab',
84 | 'xssi' : 't',
85 | 'gs_ri' : 'gws-wiz',
86 | 'hl' : 'en-IT',
87 | 'authuser' : '0'
88 | }
89 | url = CONFIG['SUGGESTION_URL'][SEARCH_ENGINE] + urllib.parse.urlencode(r)
90 | headers = {
91 | 'sec-fetch-mode' : 'cors',
92 | 'dnt' : '1',
93 | 'accept-encoding' : 'gzip',
94 | 'accept-language' : 'en-US;q=0.9,en;q=0.8',
95 | 'pragma' : 'no-cache',
96 | 'user-agent' : CONFIG['USER_AGENT'][BROWSER],
97 | 'accept' : '*/*',
98 | 'cache-control' : 'no-cache',
99 | 'authority' : 'www.google.com',
100 | 'referer' : 'https://www.google.com/',
101 | 'sec-fetch-site' : 'same-origin'
102 | }
103 | req = urllib.request.Request(url, headers=headers, method='GET')
104 |
105 | reply_data = gzip.decompress(urllib.request.urlopen(req).read()).split(b'\n')[1]
106 | reply_data = json.loads(reply_data)
107 | return [ cleanhtml(res[0]).strip() for res in reply_data[0] ]
108 | else: # 'duckduckgo'
109 | if search_string.startswith('!'):
110 | bang_search = True
111 | search_string = search_string.lstrip('!')
112 | else:
113 | bang_search = False
114 | r = {
115 | 'q' : search_string,
116 | 'callback' : 'autocompleteCallback',
117 | 'kl' : 'wt-wt',
118 | '_' : str(int((datetime.datetime.now().timestamp())*1000))
119 | }
120 | url = CONFIG['SUGGESTION_URL'][SEARCH_ENGINE] + urllib.parse.urlencode(r)
121 | if bang_search:
122 | url = url.replace('?q=', '?q=!')
123 | headers = {
124 | 'pragma' : 'no-cache',
125 | 'dnt' : '1',
126 | 'accept-encoding' : 'gzip',
127 | 'accept-language' : 'en-US;q=0.9,en;q=0.8',
128 | 'user-agent' : CONFIG['USER_AGENT'][BROWSER],
129 | 'sec-fetch-mode' : 'no-cors',
130 | 'accept' : '*/*',
131 | 'cache-control' : 'no-cache',
132 | 'authority' : 'duckduckgo.com',
133 | 'referer' : 'https://duckduckgo.com/',
134 | 'sec-fetch-site' : 'same-origin',
135 | }
136 | req = urllib.request.Request(url, headers=headers, method='GET')
137 | reply_data = gzip.decompress(urllib.request.urlopen(req).read()).decode('utf8')
138 | reply_data = json.loads(re.match(r'autocompleteCallback\((.*)\);', reply_data).group(1))
139 | return [ cleanhtml(res['phrase']).strip() for res in reply_data ]
140 |
141 | def main():
142 | search_string = html.unescape((' '.join(sys.argv[1:])).strip())
143 |
144 | path_str = os.path.dirname(os.path.realpath(__file__)) + '/'
145 | icon_path_str = path_str + 'icons/'
146 | icon_name = icon_path_str
147 |
148 | if SEARCH_ENGINE == 'google':
149 | icon_name += 'google.svg'
150 | else:
151 | icon_name += 'ddg.svg'
152 |
153 | if search_string.startswith('!'):
154 | search_string = search_string.rstrip('!').strip()
155 | results = fetch_suggestions(search_string)
156 | for r in results:
157 | print(":wb " + html.unescape(r) + "\0icon\x1f"+icon_name+"\n")
158 | else:
159 | url = CONFIG['SEARCH_URL'][SEARCH_ENGINE] + urllib.parse.quote_plus(search_string)
160 | sp.Popen(CONFIG['BROWSER_PATH'][BROWSER] + [url], stdout=sp.DEVNULL, stderr=sp.DEVNULL, shell=False)
161 |
162 | if __name__ == "__main__":
163 | try:
164 | main()
165 | except Exception as e:
166 | if e:
167 | sys.exit(1)
168 |
--------------------------------------------------------------------------------
/rofi/powermenu/shared/colors.rasi:
--------------------------------------------------------------------------------
1 | /**
2 | *
3 | * Author : Aditya Shakya (adi1090x)
4 | * Github : @adi1090x
5 | *
6 | * Colors
7 | *
8 | * Available Colors Schemes
9 | *
10 | * adapta catppuccin everforest navy paper
11 | * arc cyberpunk gruvbox nord solarized
12 | * black dracula lovelace onedark yousai
13 | *
14 | **/
15 |
16 | /* Import color-scheme from `colors` directory */
17 |
18 | @import "~/.config/rofi/shared/gruvbox.rasi"
19 |
--------------------------------------------------------------------------------
/rofi/powermenu/shared/fonts.rasi:
--------------------------------------------------------------------------------
1 | /**
2 | *
3 | * Author : Aditya Shakya (adi1090x)
4 | * Github : @adi1090x
5 | *
6 | * Fonts
7 | *
8 | **/
9 |
10 | * {
11 | font: "JetBrainsMono Nerd Font 12";
12 | }
13 |
--------------------------------------------------------------------------------
/rofi/powermenu/style-9.rasi:
--------------------------------------------------------------------------------
1 | /**
2 | *
3 | * Author : Aditya Shakya (adi1090x)
4 | * Github : @adi1090x
5 | *
6 | * Rofi Theme File
7 | * Rofi Version: 1.7.3
8 | **/
9 |
10 | /*****----- Configuration -----*****/
11 | configuration {
12 | show-icons: false;
13 | }
14 |
15 | /*****----- Global Properties -----*****/
16 | @import "shared/colors.rasi"
17 | @import "shared/fonts.rasi"
18 |
19 | /*
20 | USE_BUTTONS=YES
21 | */
22 |
23 | /*****----- Main Window -----*****/
24 | window {
25 | /* properties for window widget */
26 | transparency: "real";
27 | location: center;
28 | anchor: center;
29 | fullscreen: false;
30 | width: 530px;
31 | x-offset: 0px;
32 | y-offset: 20px;
33 |
34 | /* properties for all widgets */
35 | enabled: true;
36 | margin: 0px;
37 | padding: 15px;
38 | border: 0px solid;
39 | border-radius: 5px;
40 | border-color: @selected;
41 | cursor: "default";
42 | border: 0px 0px 8px 0px;
43 | border-color: #272727;
44 | background-color: #303030;
45 | }
46 |
47 | /*****----- Main Box -----*****/
48 | mainbox {
49 | enabled: true;
50 | spacing: 15px;
51 | margin: 0px;
52 | padding: 0px;
53 | border: 0px solid;
54 | border-radius: 0px;
55 | border-color: @selected;
56 | background-color: transparent;
57 | children: [ "listview" ];
58 | }
59 |
60 | /*****----- Inputbar -----*****/
61 | inputbar {
62 | enabled: true;
63 | spacing: 15px;
64 | margin: 0px;
65 | padding: 0px;
66 | border: 0px;
67 | border-radius: 0px;
68 | border-color: @selected;
69 | background-color: transparent;
70 | text-color: @foreground;
71 | children: [ "textbox-prompt-colon", "prompt"];
72 | }
73 |
74 | dummy {
75 | background-color: transparent;
76 | }
77 |
78 | textbox-prompt-colon {
79 | enabled: true;
80 | expand: false;
81 | str: "";
82 | padding: 12px 16px;
83 | border-radius: 0px;
84 | background-color: @urgent;
85 | text-color: @background;
86 | }
87 | prompt {
88 | enabled: true;
89 | padding: 12px;
90 | border-radius: 0px;
91 | background-color: @active;
92 | text-color: @background;
93 | }
94 |
95 | /*****----- Message -----*****/
96 | message {
97 | enabled: true;
98 | margin: 0px;
99 | padding: 15px;
100 | border: 0px solid;
101 | border-radius: 15px;
102 | border-color: @selected;
103 | background-color: @background-alt;
104 | text-color: @foreground;
105 | }
106 | textbox {
107 | background-color: inherit;
108 | text-color: inherit;
109 | vertical-align: 0.5;
110 | horizontal-align: 0.5;
111 | placeholder-color: @foreground;
112 | blink: true;
113 | markup: true;
114 | }
115 | error-message {
116 | padding: 12px;
117 | border: 0px solid;
118 | border-radius: 0px;
119 | border-color: @selected;
120 | background-color: @background;
121 | text-color: @foreground;
122 | }
123 |
124 | /*****----- Listview -----*****/
125 | listview {
126 | enabled: true;
127 | columns: 5;
128 | lines: 1;
129 | cycle: true;
130 | dynamic: true;
131 | scrollbar: false;
132 | layout: vertical;
133 | reverse: false;
134 | fixed-height: true;
135 | fixed-columns: true;
136 |
137 | spacing: 15px;
138 | margin: 0px;
139 | padding: 0px;
140 | border: 0px solid;
141 | border-radius: 0px;
142 | border-color: @selected;
143 | background-color: transparent;
144 | text-color: @foreground;
145 | cursor: "default";
146 | }
147 |
148 | /*****----- Elements -----*****/
149 | element {
150 | enabled: true;
151 | spacing: 0px;
152 | margin: 0px;
153 | padding: 25px 0px;
154 | border: 0px solid;
155 | border-radius: 3px;
156 | border-color: @selected;
157 | background-color: @background-alt;
158 | text-color: @foreground;
159 | cursor: pointer;
160 | border: 0px 0px 8px 0px;
161 | border-color: #191c1d;
162 | background-color: #1f2223;
163 | }
164 | element-text {
165 | font: "JetBrainsMono Nerd Font 18";
166 | background-color: transparent;
167 | text-color: inherit;
168 | cursor: inherit;
169 | vertical-align: 0.5;
170 | horizontal-align: 0.5;
171 | }
172 | element selected.normal {
173 | background-color: var(selected);
174 | text-color: var(background);
175 | border: 0px 0px 8px 0px;
176 | border-color: #518554;
177 | background-color: #689d6a;
178 | }
179 |
--------------------------------------------------------------------------------
/rofi/scripts/bool_question.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | yes="Yes."
4 | no="No."
5 |
6 | user_answer=$(echo -e "$yes\n$no" | rofi -i -dmenu -p "$1:")
7 |
8 | if [[ $user_answer == $yes ]]; then
9 | echo true
10 | else
11 | echo false
12 | fi
13 |
--------------------------------------------------------------------------------
/rofi/scripts/confirm.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | yes="Yes"
4 | no="No"
5 |
6 | answer=$(echo -e "$no\n$yes" | rofi -i -dmenu -p "Are you sure?" -theme ~/.config/rofi/confirm.rasi)
7 |
8 | if [[ $answer == $yes ]]; then
9 | echo "true"
10 | else
11 | echo "false"
12 | fi
13 |
--------------------------------------------------------------------------------
/rofi/scripts/fs_manager.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | open_fs () {
4 | item=$(ls -a | rofi -dmenu -i -p "File Manager:")
5 |
6 | if [[ -d $item ]];
7 | then
8 | cd "$item"
9 | open_fs
10 | else
11 | xdg-open $item
12 | fi
13 | }
14 |
15 | open_fs
16 |
--------------------------------------------------------------------------------
/rofi/scripts/power_menu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ## Original Author : Aditya Shakya (adi1090x)
4 | #
5 | ## Current Author : Jackson Novak (Oglo12)
6 | #
7 | ## Github : @adi1090x
8 | #
9 | ## Codeberg : @Oglo12
10 | #
11 | ## Rofi : Power Menu
12 | #
13 | ## Available Styles
14 | #
15 | ## style-1 style-2 style-3 style-4 style-5
16 | ## style-6 style-7 style-8 style-9 style-10
17 |
18 | # Current Theme
19 | dir="$HOME/.config/rofi/powermenu"
20 | theme='style-9'
21 |
22 | # CMDs
23 | uptime="`uptime -p | sed -e 's/up //g'`"
24 | host=`hostname`
25 |
26 | # Options
27 | shutdown=''
28 | reboot=''
29 | lock=''
30 | suspend=''
31 | logout=''
32 | yes=' '
33 | no=' '
34 |
35 | # Rofi CMD
36 | rofi_cmd() {
37 | rofi -dmenu \
38 | -p "Uptime: $uptime" \
39 | -mesg "Uptime: $uptime" \
40 | -theme ${dir}/${theme}.rasi
41 | }
42 |
43 | # Confirmation CMD
44 | confirm_cmd() {
45 | rofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 350px;}' \
46 | -theme-str 'mainbox {children: [ "message", "listview" ];}' \
47 | -theme-str 'listview {columns: 2; lines: 1;}' \
48 | -theme-str 'element-text {horizontal-align: 0.5;}' \
49 | -theme-str 'textbox {horizontal-align: 0.5;}' \
50 | -dmenu \
51 | -p 'Confirmation' \
52 | -mesg 'Are you Sure?' \
53 | -theme ${dir}/${theme}.rasi
54 | }
55 |
56 | # Ask for confirmation
57 | confirm_exit() {
58 | echo -e "$yes\n$no" | confirm_cmd
59 | }
60 |
61 | # Pass variables to rofi dmenu
62 | run_rofi() {
63 | echo -e "$lock\n$suspend\n$logout\n$reboot\n$shutdown" | rofi_cmd
64 | }
65 |
66 | # Execute Command
67 | run_cmd() {
68 | selected="$yes"
69 | if [[ "$selected" == "$yes" ]]; then
70 | if [[ $1 == '--shutdown' ]]; then
71 | poweroff
72 | elif [[ $1 == '--reboot' ]]; then
73 | reboot
74 | elif [[ $1 == '--suspend' ]]; then
75 | mpc -q pause
76 | amixer set Master mute
77 | systemctl suspend
78 | elif [[ $1 == '--logout' ]]; then
79 | pkill -KILL -u $USER
80 | fi
81 | else
82 | exit 0
83 | fi
84 | }
85 |
86 | # Actions
87 | chosen="$(run_rofi)"
88 | case ${chosen} in
89 | $shutdown)
90 | run_cmd --shutdown
91 | ;;
92 | $reboot)
93 | run_cmd --reboot
94 | ;;
95 | $lock)
96 | gtklock
97 | ;;
98 | $suspend)
99 | run_cmd --suspend
100 | ;;
101 | $logout)
102 | run_cmd --logout
103 | ;;
104 | esac
105 |
--------------------------------------------------------------------------------
/rofi/shared/gruvbox.rasi:
--------------------------------------------------------------------------------
1 | /**
2 | *
3 | * Author : Aditya Shakya (adi1090x)
4 | * Github : @adi1090x
5 | *
6 | * Colors
7 | **/
8 |
9 | * {
10 | background: #1d2021;
11 | background-alt: #1d2021;
12 | foreground: #ebdbb2;
13 | selected: #689d6a;
14 | active: #ff0000;
15 | urgent: #ff0000;
16 | }
17 |
--------------------------------------------------------------------------------
/rofi/themes/gruvbox.rasi:
--------------------------------------------------------------------------------
1 | * {
2 | bg-col: #fbf1c7;
3 | bg-col-transparent: #fbf1c7dd;
4 | bg-col-element: #fbf1c7df;
5 | bg-col-light: #d79921;
6 | border-col: #d79921;
7 | selected-col: #d79921;
8 | tab: #d79921;
9 | tab-selected: #fbf1c7;
10 | fg-col: #f9f5f7;
11 | fg-col2: #f9f5f7;
12 | blank: #d5c4a1;
13 | blank-underline: #a89984;
14 | button: #689d6a;
15 | button-underline: #a89984;
16 | window: #fbf1c7;
17 | window-underline: #a89984;
18 |
19 | width: 600;
20 | }
21 |
--------------------------------------------------------------------------------
/starship/starship.toml:
--------------------------------------------------------------------------------
1 | ## ░█▀▀░▀█▀░█▀█░█▀▄░█▀▀░█░█░▀█▀░█▀█
2 | ## ░▀▀█░░█░░█▀█░█▀▄░▀▀█░█▀█░░█░░█▀▀
3 | ## ░▀▀▀░░▀░░▀░▀░▀░▀░▀▀▀░▀░▀░▀▀▀░▀░░
4 | # Setups
5 | format="$directory$git_branch$character"
6 | right_format = """$git_status$cmd_duration"""
7 | add_newline = false
8 |
9 | # Other languages configurations:
10 | c.disabled = true
11 | cmake.disabled = true
12 | haskell.disabled = true
13 | python.disabled = true
14 | ruby.disabled = true
15 | rust.disabled = true
16 | perl.disabled = true
17 | package.disabled = true
18 | lua.disabled = true
19 | nodejs.disabled = true
20 | java.disabled = true
21 | golang.disabled = true
22 |
23 | [conda]
24 | format = ' [$symbol$environment](dimmed green) '
25 |
26 | # Prompt symbols
27 | [character]
28 | success_symbol = "[](#8EC07C bold)"
29 | error_symbol = "[](#AD685A)"
30 | vicmd_symbol = "[](#DD8F6E)"
31 |
32 | [directory]
33 | format = "[]($style)[ ](bg:#312C2E fg:#DD8F6E)[$path](bg:#312C2E fg:#83A598 bold)[ ]($style)"
34 | style = "bg:none fg:#312C2E"
35 | truncation_length = 3
36 | truncate_to_repo=false
37 |
38 | [git_branch]
39 | format = "[]($style)[[ ](bg:#312C2E fg:#8EC07C bold)$branch](bg:#312C2E fg:#83A598)[ ]($style)"
40 | style = "bg:none fg:#312C2E"
41 |
42 | [git_status]
43 | # $all status$ahead_behind
44 | format = "[]($style)[$all_status$ahead_behind](bg:#312C2E fg:#b4befe)[ ]($style)"
45 | style = "bg:none fg:#312C2E"
46 | conflicted = "="
47 | ahead = "⇡${count}"
48 | behind = "⇣${count}"
49 | diverged = "⇕⇡${ahead_count}⇣${behind_count}"
50 | up_to_date = ""
51 | untracked = "?${count}"
52 | stashed = ""
53 | modified = "!${count}"
54 | staged = "+${count}"
55 | renamed = "»${count}"
56 | deleted = "${count}"
57 |
58 | [cmd_duration]
59 | min_time = 1
60 | # duration & style
61 | format = "[]($style)[[神](bg:#312C2E fg:#eba0ac bold)$duration](bg:#312C2E fg:#BBC3DF)[ ]($style)"
62 | disabled = false
63 | style = "bg:none fg:#312C2E"
64 |
--------------------------------------------------------------------------------
/waybar/config:
--------------------------------------------------------------------------------
1 | {
2 | "layer":"bottom",
3 | "modules-left":[
4 | "custom/wsno",
5 | "hyprland/window"
6 | ],
7 | "modules-right":[
8 | "backlight",
9 | "pulseaudio",
10 | "memory",
11 | "clock"
12 | ],
13 | "custom/wsno":{
14 | "exec":"~/.config/eww/scripts/workspaceno",
15 | "restart-interval":1
16 | },
17 | "hyprland/window":{
18 | "format":"{}",
19 | "separate-outputs":true,
20 | "max-length":100
21 | },
22 | "backlight":{
23 | "format":" {percent}%"
24 | },
25 | "pulseaudio":{
26 | "format":"{icon} {volume}%",
27 | "format-bluetooth":"{icon} {volume}%",
28 | "format-muted":"",
29 | "format-icons":{
30 | "default":[
31 | "",
32 | ""
33 | ]
34 | },
35 | "scroll-step":1,
36 | "on-click":"pavucontrol",
37 | "ignored-sinks":[
38 | "Easy Effects Sink"
39 | ]
40 | },
41 | "memory":{
42 | "interval":30,
43 | "format":" {}% ",
44 | "max-length":10
45 | },
46 | "clock":{
47 | "format":"{:%a %b %d %H:%M}"
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/waybar/style.css:
--------------------------------------------------------------------------------
1 | * {
2 | border: none;
3 | border-radius: 15px;
4 | font-family: "BlexMono Nerd Font";
5 | font-size: 15px;
6 | min-height: 10px;
7 | }
8 |
9 | window#waybar {
10 | background: transparent;
11 | }
12 |
13 | .modules-left,
14 | .modules-right {
15 | padding: 10px;
16 | padding-right: 20px;
17 | padding-left: 20px;
18 |
19 | background: #fbf1c7;
20 | color: #000000;
21 |
22 | border: 2px solid transparent;
23 |
24 | margin-top: 30px;
25 | margin-bottom: 15px;
26 | margin-left: 30px;
27 | margin-right: 30px;
28 |
29 | border: 3px solid black;
30 | box-shadow: 18px 18px rgb(0, 0, 0);
31 | }
32 |
33 | #network,
34 | #backlight,
35 | #pulseaudio,
36 | #memory,
37 | #battery,
38 | #clock,
39 | #cpu {
40 | padding: 0 8px;
41 | }
42 |
--------------------------------------------------------------------------------
/waybar/workspaceno:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | TOTAL=$(hyprctl workspaces | grep workspace | sort -n -k 3n | wc -l)
3 | CURRENT=$(hyprctl activewindow | perl -ne 'm/workspace: (.*) \(.*\)/ && print "$1\n"')
4 |
5 | echo "$CURRENT/10"
6 |
--------------------------------------------------------------------------------
/wlogout/layout:
--------------------------------------------------------------------------------
1 | {
2 | "label" : "lock",
3 | "action" : "swaylock",
4 | "text" : "Lock",
5 | "keybind" : "l"
6 | }
7 | {
8 | "label" : "hibernate",
9 | "action" : "systemctl hibernate",
10 | "text" : "Hibernate",
11 | "keybind" : "h"
12 | }
13 | {
14 | "label" : "logout",
15 | "action" : "loginctl terminate-user $USER",
16 | "text" : "Logout",
17 | "keybind" : "e"
18 | }
19 | {
20 | "label" : "shutdown",
21 | "action" : "systemctl poweroff",
22 | "text" : "Shutdown",
23 | "keybind" : "s"
24 | }
25 | {
26 | "label" : "suspend",
27 | "action" : "systemctl suspend",
28 | "text" : "Suspend",
29 | "keybind" : "u"
30 | }
31 | {
32 | "label" : "reboot",
33 | "action" : "systemctl reboot",
34 | "text" : "Reboot",
35 | "keybind" : "r"
36 | }
37 |
--------------------------------------------------------------------------------
/wlogout/style.css:
--------------------------------------------------------------------------------
1 | * {
2 | background-image: none;
3 | }
4 | window {
5 | background-color: rgba(80, 73, 69, 0.0);
6 | }
7 | button {
8 | color: #FBF1C7;
9 | background-color: #928374;
10 | border-style: solid;
11 | border-width: 2px;
12 | border-color: black;
13 | border-radius: 10px;
14 | background-repeat: no-repeat;
15 | background-position: center;
16 | background-size: 25%;
17 | transition: border-radius .6s, background-color .6s, border-width .6s;
18 | }
19 |
20 | button:focus, button:active {
21 | border-radius: 30px;
22 | border-width: 5px;
23 | background-color: #FBF1C7;
24 | outline-style: none;
25 | }
26 |
27 | #lock {
28 | background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
29 | }
30 |
31 | #logout {
32 | background-image: image(url("/usr/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png"));
33 | }
34 |
35 | #suspend {
36 | background-image: image(url("/usr/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
37 | }
38 |
39 | #hibernate {
40 | background-image: image(url("/usr/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
41 | }
42 |
43 | #shutdown {
44 | background-image: image(url("/usr/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
45 | }
46 |
47 | #reboot {
48 | background-image: image(url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
49 | }
50 |
--------------------------------------------------------------------------------