├── config_files
├── polybar
│ ├── material
│ │ ├── scripts
│ │ │ ├── nmtui.sh
│ │ │ ├── nmeditor.sh
│ │ │ ├── launcher.sh
│ │ │ ├── rofi
│ │ │ │ ├── colors.rasi
│ │ │ │ ├── config.example
│ │ │ │ ├── confirm.rasi
│ │ │ │ ├── message.rasi
│ │ │ │ ├── launcher.rasi
│ │ │ │ ├── styles.rasi
│ │ │ │ ├── networkmenu.rasi
│ │ │ │ └── powermenu.rasi
│ │ │ ├── bts
│ │ │ ├── updates.sh
│ │ │ ├── pywal.sh
│ │ │ ├── random.sh
│ │ │ ├── powermenu.sh
│ │ │ ├── color-switch.sh
│ │ │ ├── colors-dark.sh
│ │ │ ├── colors-light.sh
│ │ │ ├── checkupdates
│ │ │ └── rofi-wifi-menu.sh
│ │ ├── launch.sh
│ │ ├── preview.sh
│ │ ├── colors.ini
│ │ └── config.ini
│ ├── brightnessctl.sh
│ └── launch.sh
├── gtk-3.0
│ ├── bookmarks
│ └── settings.ini
├── dconf
│ └── user
├── pulse
│ └── cookie
├── nitrogen
│ ├── bg-saved.cfg
│ └── nitrogen.cfg
├── nvim
│ ├── init.lua
│ └── lua
│ │ └── gh0st
│ │ ├── core
│ │ ├── colorscheme.lua
│ │ ├── options.lua
│ │ └── keymaps.lua
│ │ ├── plugins
│ │ ├── colorizer.lua
│ │ ├── lualine.lua
│ │ └── nvim-tree.lua
│ │ └── plugins-setup.lua
├── gtk-2.0
│ └── gtkfilechooser.ini
├── mimeapps.list
├── Thunar
│ └── uca.xml
├── xfce4
│ └── xfconf
│ │ └── xfce-perchannel-xml
│ │ └── thunar.xml
├── bspwm
│ └── bspwmrc
├── partitionmanagerrc
├── alacritty
│ ├── alacritty.yml.1674796504556.bak
│ ├── alacritty.yml.1674801368470.bak
│ ├── alacritty.yml.1674801292089.bak
│ └── alacritty.yml
└── picom.conf
├── README.md
├── dotconfig
├── pulse
│ ├── 7433b2e0899548d9940cdb301f066788-default-sink
│ ├── 7433b2e0899548d9940cdb301f066788-default-source
│ ├── cookie
│ ├── 7433b2e0899548d9940cdb301f066788-card-database.tdb
│ ├── 7433b2e0899548d9940cdb301f066788-device-volumes.tdb
│ └── 7433b2e0899548d9940cdb301f066788-stream-volumes.tdb
├── dconf
│ └── user
├── mimeapps.list
├── bspwm
│ ├── assets
│ │ ├── scrot-htop.png
│ │ ├── scrot-colortest.png
│ │ ├── nord-xresources-banner.ai
│ │ └── nord-xresources-banner.svg
│ ├── mount-drives.sh
│ ├── external_rules.sh
│ ├── bspwmrc
│ ├── clean
│ └── nord
├── nitrogen
│ ├── bg-saved.cfg
│ └── nitrogen.cfg
├── polybar
│ ├── material
│ │ ├── scripts
│ │ │ ├── launcher.sh
│ │ │ ├── rofi
│ │ │ │ ├── colors.rasi
│ │ │ │ ├── config.example
│ │ │ │ ├── confirm.rasi
│ │ │ │ ├── message.rasi
│ │ │ │ ├── launcher.rasi
│ │ │ │ ├── styles.rasi
│ │ │ │ ├── networkmenu.rasi
│ │ │ │ └── powermenu.rasi
│ │ │ ├── bts
│ │ │ ├── updates.sh
│ │ │ ├── pywal.sh
│ │ │ ├── random.sh
│ │ │ ├── powermenu.sh
│ │ │ ├── color-switch.sh
│ │ │ ├── colors-dark.sh
│ │ │ ├── colors-light.sh
│ │ │ ├── checkupdates
│ │ │ └── rofi-wifi-menu.sh
│ │ ├── launch.sh
│ │ ├── preview.sh
│ │ └── colors.ini
│ ├── colorblocks
│ │ ├── scripts
│ │ │ ├── launcher.sh
│ │ │ ├── rofi
│ │ │ │ ├── colors.rasi
│ │ │ │ ├── confirm.rasi
│ │ │ │ ├── message.rasi
│ │ │ │ ├── launcher.rasi
│ │ │ │ └── networkmenu.rasi
│ │ │ ├── updates.sh
│ │ │ ├── pywal.sh
│ │ │ ├── random.sh
│ │ │ ├── powermenu.sh
│ │ │ ├── color-switch.sh
│ │ │ └── checkupdates
│ │ ├── launch.sh
│ │ ├── preview.sh
│ │ └── colors.ini
│ ├── blocks
│ │ ├── scripts
│ │ │ ├── rofi
│ │ │ │ ├── colors.rasi
│ │ │ │ ├── confirm.rasi
│ │ │ │ ├── message.rasi
│ │ │ │ ├── launcher.rasi
│ │ │ │ ├── styles.rasi
│ │ │ │ ├── networkmenu.rasi
│ │ │ │ └── powermenu.rasi
│ │ │ ├── launcher.sh
│ │ │ ├── style-switch.sh
│ │ │ ├── updates.sh
│ │ │ ├── styles.sh
│ │ │ ├── powermenu.sh
│ │ │ └── checkupdates
│ │ ├── launch.sh
│ │ ├── preview.sh
│ │ └── colors.ini
│ ├── brightnessctl.sh
│ └── launch.sh
├── rofi
│ ├── colors.rasi
│ ├── config.example
│ ├── confirm.rasi
│ ├── message.rasi
│ ├── launcher.rasi
│ ├── styles.rasi
│ ├── networkmenu.rasi
│ └── powermenu.rasi
├── gtk-2.0
│ └── gtkfilechooser.ini
├── lxsession
│ └── bspwm
│ │ └── desktop.conf
├── Thunar
│ └── uca.xml
├── gtk-3.0
│ └── settings.ini
├── alacritty
│ └── alacritty.yml
└── sxhkd
│ └── sxhkdrc
├── .xinitrc
└── .xsession
/config_files/polybar/material/scripts/nmtui.sh:
--------------------------------------------------------------------------------
1 | nmtui
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # dotconfig
2 | This is the customized os for my needs
3 |
--------------------------------------------------------------------------------
/config_files/gtk-3.0/bookmarks:
--------------------------------------------------------------------------------
1 | file:///home/jayasurya/Downloads
2 |
--------------------------------------------------------------------------------
/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-default-sink:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-default-source:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/nmeditor.sh:
--------------------------------------------------------------------------------
1 | exec nm-connection-editor &
2 |
--------------------------------------------------------------------------------
/dotconfig/dconf/user:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/dconf/user
--------------------------------------------------------------------------------
/dotconfig/pulse/cookie:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/pulse/cookie
--------------------------------------------------------------------------------
/config_files/dconf/user:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/config_files/dconf/user
--------------------------------------------------------------------------------
/config_files/pulse/cookie:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/config_files/pulse/cookie
--------------------------------------------------------------------------------
/dotconfig/mimeapps.list:
--------------------------------------------------------------------------------
1 | [Added Associations]
2 | application/x-shellscript=code.desktop;
3 | text/x-csrc=code.desktop;
4 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/assets/scrot-htop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/bspwm/assets/scrot-htop.png
--------------------------------------------------------------------------------
/dotconfig/bspwm/assets/scrot-colortest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/bspwm/assets/scrot-colortest.png
--------------------------------------------------------------------------------
/dotconfig/nitrogen/bg-saved.cfg:
--------------------------------------------------------------------------------
1 | [xin_-1]
2 | file=/home/jayasurya/Pictures/WallPapers/wallhaven-qzzz9l_1920x1080.png
3 | mode=0
4 | bgcolor=#000000
5 |
--------------------------------------------------------------------------------
/config_files/nitrogen/bg-saved.cfg:
--------------------------------------------------------------------------------
1 | [xin_-1]
2 | file=/home/jayasurya/Pictures/WallPapers/wallhaven-qzzz9l_1920x1080.png
3 | mode=4
4 | bgcolor=#000000
5 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/assets/nord-xresources-banner.ai:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/bspwm/assets/nord-xresources-banner.ai
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/launcher.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/material/scripts/rofi/launcher.rasi
4 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/launcher.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/material/scripts/rofi/launcher.rasi
4 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/launcher.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/colorblocks/scripts/rofi/launcher.rasi
4 |
--------------------------------------------------------------------------------
/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-card-database.tdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-card-database.tdb
--------------------------------------------------------------------------------
/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-device-volumes.tdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-device-volumes.tdb
--------------------------------------------------------------------------------
/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-stream-volumes.tdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayasurya-Marasani/dotconfig/HEAD/dotconfig/pulse/7433b2e0899548d9940cdb301f066788-stream-volumes.tdb
--------------------------------------------------------------------------------
/dotconfig/rofi/colors.rasi:
--------------------------------------------------------------------------------
1 | /* colors */
2 |
3 | * {
4 | al: #00000000;
5 | bg: #1F1F1FFF;
6 | bga: #ffb30033;
7 | bar: #1F1F1FFF;
8 | fg: #FFFFFFFF;
9 | ac: #ffb300FF;
10 | }
11 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/colors.rasi:
--------------------------------------------------------------------------------
1 | /* colors */
2 |
3 | * {
4 | al: #00000000;
5 | bg: #1F1F1FFF;
6 | bga: #ffb30033;
7 | bar: #1F1F1FFF;
8 | fg: #FFFFFFFF;
9 | ac: #ffb300FF;
10 | }
11 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/colors.rasi:
--------------------------------------------------------------------------------
1 | /* colors */
2 |
3 | * {
4 | al: #00000000;
5 | bg: #1F1F1FFF;
6 | bga: #ffb30033;
7 | bar: #1F1F1FFF;
8 | fg: #FFFFFFFF;
9 | ac: #ffb300FF;
10 | }
11 |
--------------------------------------------------------------------------------
/dotconfig/nitrogen/nitrogen.cfg:
--------------------------------------------------------------------------------
1 | [geometry]
2 | posx=1004
3 | posy=58
4 | sizex=900
5 | sizey=1006
6 |
7 | [nitrogen]
8 | view=icon
9 | recurse=true
10 | sort=alpha
11 | icon_caps=false
12 | dirs=/home/jayasurya/Pictures/WallPapers;
13 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/rofi/colors.rasi:
--------------------------------------------------------------------------------
1 | /* colors */
2 |
3 | * {
4 | al: #00000000;
5 | bg: #141C21FF;
6 | bg1: #FFAB91FF;
7 | bg2: #FF8A65FF;
8 | bg3: #FF7043FF;
9 | fg: #FFFFFFFF;
10 | }
11 |
--------------------------------------------------------------------------------
/config_files/nitrogen/nitrogen.cfg:
--------------------------------------------------------------------------------
1 | [geometry]
2 | posx=1004
3 | posy=58
4 | sizex=900
5 | sizey=1006
6 |
7 | [nitrogen]
8 | view=icon
9 | recurse=true
10 | sort=alpha
11 | icon_caps=false
12 | dirs=/home/jayasurya/Pictures/WallPapers;
13 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/rofi/colors.rasi:
--------------------------------------------------------------------------------
1 | /* colors */
2 |
3 | * {
4 | al: #00000000;
5 | bg: #2f343fFF;
6 | bga: #C4C7C5FF;
7 | fga: #C4C7C5FF;
8 | fg: #1C1E20FF;
9 | ac: #00C7DFFF;
10 | se: #00C7DF40;
11 | }
12 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/mount-drives.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo systemctl start media-data.mount
4 | sudo systemctl start media-drive.mount
5 | sudo systemctl start media-mainpool.mount
6 | sudo systemctl start media-images.mount
7 | sudo systemctl start media-fcp.mount
8 |
--------------------------------------------------------------------------------
/config_files/nvim/init.lua:
--------------------------------------------------------------------------------
1 | require("gh0st.plugins-setup")
2 | require("gh0st.core.options")
3 | require("gh0st.core.keymaps")
4 | require("gh0st.core.colorscheme")
5 | require("gh0st.plugins.nvim-tree")
6 | require("gh0st.plugins.lualine")
7 | require("gh0st.plugins.colorizer")
8 |
--------------------------------------------------------------------------------
/config_files/gtk-2.0/gtkfilechooser.ini:
--------------------------------------------------------------------------------
1 | [Filechooser Settings]
2 | LocationMode=path-bar
3 | ShowHidden=false
4 | ShowSizeColumn=true
5 | GeometryX=1036
6 | GeometryY=248
7 | GeometryWidth=840
8 | GeometryHeight=630
9 | SortColumn=name
10 | SortOrder=ascending
11 | StartupMode=recent
12 |
--------------------------------------------------------------------------------
/dotconfig/gtk-2.0/gtkfilechooser.ini:
--------------------------------------------------------------------------------
1 | [Filechooser Settings]
2 | LocationMode=path-bar
3 | ShowHidden=false
4 | ShowSizeColumn=true
5 | GeometryX=1036
6 | GeometryY=450
7 | GeometryWidth=840
8 | GeometryHeight=630
9 | SortColumn=name
10 | SortOrder=ascending
11 | StartupMode=recent
12 |
--------------------------------------------------------------------------------
/dotconfig/rofi/config.example:
--------------------------------------------------------------------------------
1 | # Config for rofi-wifi-menu
2 |
3 | # position values:
4 | # 1 2 3
5 | # 8 0 4
6 | # 7 6 5
7 | POSITION=2
8 |
9 | #y-offset
10 | YOFF=17
11 |
12 | #x-offset
13 | XOFF=0
14 |
15 | #fields to be displayed
16 | FIELDS=SSID,SECURITY,BARS
17 |
18 | #font
19 | FONT="Fantasque Sans Mono 12"
20 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/config.example:
--------------------------------------------------------------------------------
1 | # Config for rofi-wifi-menu
2 |
3 | # position values:
4 | # 1 2 3
5 | # 8 0 4
6 | # 7 6 5
7 | POSITION=2
8 |
9 | #y-offset
10 | YOFF=17
11 |
12 | #x-offset
13 | XOFF=0
14 |
15 | #fields to be displayed
16 | FIELDS=SSID,SECURITY,BARS
17 |
18 | #font
19 | FONT="Fantasque Sans Mono 12"
20 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/config.example:
--------------------------------------------------------------------------------
1 | # Config for rofi-wifi-menu
2 |
3 | # position values:
4 | # 1 2 3
5 | # 8 0 4
6 | # 7 6 5
7 | POSITION=2
8 |
9 | #y-offset
10 | YOFF=17
11 |
12 | #x-offset
13 | XOFF=0
14 |
15 | #fields to be displayed
16 | FIELDS=SSID,SECURITY,BARS
17 |
18 | #font
19 | FONT="Fantasque Sans Mono 12"
20 |
--------------------------------------------------------------------------------
/config_files/nvim/lua/gh0st/core/colorscheme.lua:
--------------------------------------------------------------------------------
1 | local status, _ = pcall(vim.cmd, "colorscheme onedark")
2 | if not status then
3 | print("Colorscheme not found!") -- print error if colorscheme not installed
4 | return
5 | end
6 |
7 | require('onedark').setup {
8 | style = 'darker',
9 | transparent = true
10 | }
11 | require('onedark').load()
12 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Add this script to your wm startup file.
4 |
5 | DIR="$HOME/.config/polybar/blocks"
6 |
7 | # Terminate already running bar instances
8 | killall -q polybar
9 |
10 | # Wait until the processes have been shut down
11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
12 |
13 | # Launch the bar
14 | polybar -q main -c "$DIR"/config.ini &
15 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Add this script to your wm startup file.
4 |
5 | DIR="$HOME/.config/polybar/material"
6 |
7 | # Terminate already running bar instances
8 | killall -q polybar
9 |
10 | # Wait until the processes have been shut down
11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
12 |
13 | # Launch the bar
14 | polybar -q main -c "$DIR"/config.ini &
15 |
--------------------------------------------------------------------------------
/config_files/polybar/material/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Add this script to your wm startup file.
4 |
5 | DIR="$HOME/.config/polybar/material"
6 |
7 | # Terminate already running bar instances
8 | killall -q polybar
9 |
10 | # Wait until the processes have been shut down
11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
12 |
13 | # Launch the bar
14 | polybar -q main -c "$DIR"/config.ini &
15 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Add this script to your wm startup file.
4 |
5 | DIR="$HOME/.config/polybar/colorblocks"
6 |
7 | # Terminate already running bar instances
8 | killall -q polybar
9 |
10 | # Wait until the processes have been shut down
11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
12 |
13 | # Launch the bar
14 | polybar -q main -c "$DIR"/config.ini &
15 |
--------------------------------------------------------------------------------
/config_files/mimeapps.list:
--------------------------------------------------------------------------------
1 | [Default Applications]
2 | font/ttf=Alacritty.desktop
3 | image/jpeg=firefox.desktop
4 | text/html=brave-browser.desktop
5 | x-scheme-handler/http=brave-browser.desktop
6 | x-scheme-handler/https=brave-browser.desktop
7 | x-scheme-handler/about=brave-browser.desktop
8 | x-scheme-handler/unknown=brave-browser.desktop
9 |
10 | [Added Associations]
11 | font/ttf=Alacritty.desktop;
12 | image/jpeg=firefox.desktop;
13 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/bts:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
3 | BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
4 |
5 | if [ $BRIGHTNESS_NR -lt 20 ]; then
6 | BRIGHTNESS_ICON=''
7 | elif [ $BRIGHTNESS_NR -lt 50 ]; then
8 | BRIGHTNESS_ICON=''
9 | elif [ $BRIGHTNESS_NR -lt 80 ]; then
10 | BRIGHTNESS_ICON=''
11 | else
12 | BRIGHTNESS_ICON=''
13 | fi
14 |
15 | echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/bts:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
3 | BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
4 |
5 | if [ $BRIGHTNESS_NR -lt 20 ]; then
6 | BRIGHTNESS_ICON=''
7 | elif [ $BRIGHTNESS_NR -lt 50 ]; then
8 | BRIGHTNESS_ICON=''
9 | elif [ $BRIGHTNESS_NR -lt 80 ]; then
10 | BRIGHTNESS_ICON=''
11 | else
12 | BRIGHTNESS_ICON=''
13 | fi
14 |
15 | echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"
--------------------------------------------------------------------------------
/dotconfig/polybar/brightnessctl.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
3 | BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
4 |
5 | if [ $BRIGHTNESS_NR -lt 20 ]; then
6 | BRIGHTNESS_ICON=''
7 | elif [ $BRIGHTNESS_NR -lt 50 ]; then
8 | BRIGHTNESS_ICON=''
9 | elif [ $BRIGHTNESS_NR -lt 80 ]; then
10 | BRIGHTNESS_ICON=''
11 | else
12 | BRIGHTNESS_ICON=''
13 | fi
14 |
15 | echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"
16 |
17 |
--------------------------------------------------------------------------------
/config_files/Thunar/uca.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | utilities-terminal
5 | Open Terminal Here
6 | 1369297223744670-1
7 | exo-open --working-directory %f --launch TerminalEmulator
8 | Example for a custom action
9 | *
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/config_files/polybar/brightnessctl.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
3 | BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
4 |
5 | if [ $BRIGHTNESS_NR -lt 20 ]; then
6 | BRIGHTNESS_ICON=''
7 | elif [ $BRIGHTNESS_NR -lt 50 ]; then
8 | BRIGHTNESS_ICON=''
9 | elif [ $BRIGHTNESS_NR -lt 80 ]; then
10 | BRIGHTNESS_ICON=''
11 | else
12 | BRIGHTNESS_ICON=''
13 | fi
14 |
15 | echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"
16 |
17 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/preview.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | DIR="$HOME/.config/polybar/blocks"
4 |
5 | # Terminate already running bar instances
6 | killall -q polybar
7 |
8 | # Wait until the processes have been shut down
9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
10 |
11 | # Launch the preview bar
12 | polybar -q top -c "$DIR"/preview.ini &
13 | polybar -q mid -c "$DIR"/preview.ini &
14 | polybar -q bottom -c "$DIR"/preview.ini &
15 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/preview.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | DIR="$HOME/.config/polybar/material"
4 |
5 | # Terminate already running bar instances
6 | killall -q polybar
7 |
8 | # Wait until the processes have been shut down
9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
10 |
11 | # Launch the preview bar
12 | polybar -q top -c "$DIR"/preview.ini &
13 | polybar -q mid -c "$DIR"/preview.ini &
14 | polybar -q bottom -c "$DIR"/preview.ini &
15 |
--------------------------------------------------------------------------------
/config_files/polybar/material/preview.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | DIR="$HOME/.config/polybar/material"
4 |
5 | # Terminate already running bar instances
6 | killall -q polybar
7 |
8 | # Wait until the processes have been shut down
9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
10 |
11 | # Launch the preview bar
12 | polybar -q top -c "$DIR"/preview.ini &
13 | polybar -q mid -c "$DIR"/preview.ini &
14 | polybar -q bottom -c "$DIR"/preview.ini &
15 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/preview.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | DIR="$HOME/.config/polybar/colorblocks"
4 |
5 | # Terminate already running bar instances
6 | killall -q polybar
7 |
8 | # Wait until the processes have been shut down
9 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
10 |
11 | # Launch the preview bar
12 | polybar -q top -c "$DIR"/preview.ini &
13 | polybar -q mid -c "$DIR"/preview.ini &
14 | polybar -q bottom -c "$DIR"/preview.ini &
15 |
--------------------------------------------------------------------------------
/dotconfig/lxsession/bspwm/desktop.conf:
--------------------------------------------------------------------------------
1 | [GTK]
2 | sNet/ThemeName=Nordic-darker
3 | sGtk/FontName=Liga SFMono Nerd Font Bold 11
4 | sGtk/ColorScheme=
5 | sNet/IconThemeName=Adwaita
6 | sGtk/CursorThemeName=Adwaita
7 | iGtk/CursorThemeSize=0
8 | iGtk/ToolbarStyle=2
9 | iGtk/ToolbarIconSize=3
10 | iGtk/ButtonImages=1
11 | iGtk/MenuImages=1
12 | iNet/EnableEventSounds=1
13 | iNet/EnableInputFeedbackSounds=1
14 | iXft/Antialias=1
15 | iXft/Hinting=1
16 | sXft/HintStyle=hintfull
17 |
--------------------------------------------------------------------------------
/dotconfig/Thunar/uca.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | utilities-terminal
5 | Open Terminal Here
6 |
7 | 1673463803418238-1
8 | exo-open --working-directory %f --launch TerminalEmulator
9 | Example for a custom action
10 |
11 | *
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/dotconfig/gtk-3.0/settings.ini:
--------------------------------------------------------------------------------
1 | [Settings]
2 | gtk-theme-name=Nordic-darker
3 | gtk-icon-theme-name=Adwaita
4 | gtk-font-name=Liga SFMono Nerd Font Bold 12
5 | gtk-cursor-theme-name=Adwaita
6 | gtk-cursor-theme-size=0
7 | gtk-toolbar-style=GTK_TOOLBAR_BOTH
8 | gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
9 | gtk-button-images=1
10 | gtk-menu-images=1
11 | gtk-enable-event-sounds=1
12 | gtk-enable-input-feedback-sounds=1
13 | gtk-xft-antialias=1
14 | gtk-xft-hinting=1
15 | gtk-xft-hintstyle=hintfull
16 |
--------------------------------------------------------------------------------
/config_files/gtk-3.0/settings.ini:
--------------------------------------------------------------------------------
1 | [Settings]
2 | gtk-theme-name=Nordic-darker
3 | gtk-icon-theme-name=Papirus-Dark
4 | gtk-font-name=Liga SFMono Nerd Font Bold 12
5 | gtk-cursor-theme-name=Adwaita
6 | gtk-cursor-theme-size=0
7 | gtk-toolbar-style=GTK_TOOLBAR_BOTH
8 | gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
9 | gtk-button-images=1
10 | gtk-menu-images=1
11 | gtk-enable-event-sounds=1
12 | gtk-enable-input-feedback-sounds=1
13 | gtk-xft-antialias=1
14 | gtk-xft-hinting=1
15 | gtk-xft-hintstyle=hintfull
16 |
--------------------------------------------------------------------------------
/dotconfig/rofi/confirm.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Fantasque Sans Mono 10";
9 | }
10 |
11 | window {
12 | width: 225px;
13 | padding: 25px;
14 | border: 1px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/rofi/message.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Fantasque Sans Mono 10";
9 | }
10 |
11 | window {
12 | width: 320px;
13 | padding: 25px;
14 | border: 1px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/launcher.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | FILE="$HOME/.config/polybar/blocks/scripts/rofi/colors.rasi"
4 |
5 | # random accent color
6 | COLORS=('#EC7875' '#EC6798' '#BE78D1' '#75A4CD' '#00C7DF' '#00B19F' '#61C766' \
7 | '#B9C244' '#EBD369' '#EDB83F' '#E57C46' '#AC8476' '#6C77BB' '#6D8895')
8 | AC="${COLORS[$(( $RANDOM % 14 ))]}"
9 | sed -i -e "s/ac: .*/ac: ${AC}FF;/g" $FILE
10 | sed -i -e "s/se: .*/se: ${AC}40;/g" $FILE
11 |
12 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/blocks/scripts/rofi/launcher.rasi
13 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/confirm.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Fantasque Sans Mono 10";
9 | }
10 |
11 | window {
12 | width: 225px;
13 | padding: 25px;
14 | border: 1px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/message.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Fantasque Sans Mono 10";
9 | }
10 |
11 | window {
12 | width: 320px;
13 | padding: 25px;
14 | border: 1px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/confirm.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Fantasque Sans Mono 10";
9 | }
10 |
11 | window {
12 | width: 225px;
13 | padding: 25px;
14 | border: 1px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/message.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Fantasque Sans Mono 10";
9 | }
10 |
11 | window {
12 | width: 320px;
13 | padding: 25px;
14 | border: 1px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/rofi/confirm.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fga;
8 | font: "Iosevka Nerd Font 10";
9 | }
10 |
11 | window {
12 | width: 210px;
13 | padding: 25px;
14 | border: 0px 0px 4px 0px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/rofi/message.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fga;
8 | font: "Iosevka Nerd Font 10";
9 | }
10 |
11 | window {
12 | width: 320px;
13 | padding: 25px;
14 | border: 0px 0px 4px 0px;
15 | border-radius: 0px;
16 | border-color: @ac;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @ac;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/style-switch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | SDIR="$HOME/.config/polybar/blocks/scripts"
4 |
5 | # Launch Rofi
6 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
7 | -theme $SDIR/rofi/styles.rasi \
8 | <<< " Default| Nord| Gruvbox| Adapta| Cherry|")"
9 | case "$MENU" in
10 | *Default) "$SDIR"/styles.sh --default ;;
11 | *Nord) "$SDIR"/styles.sh --nord ;;
12 | *Gruvbox) "$SDIR"/styles.sh --gruvbox ;;
13 | *Adapta) "$SDIR"/styles.sh --adapta ;;
14 | *Cherry) "$SDIR"/styles.sh --cherry ;;
15 | esac
16 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/rofi/confirm.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Iosevka Nerd Font 10";
9 | }
10 |
11 | window {
12 | width: 225px;
13 | padding: 25px;
14 | border: 0px 0px 0px 4px;
15 | border-radius: 0px;
16 | border-color: @bg3;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @bg2;
24 | }
25 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/rofi/message.rasi:
--------------------------------------------------------------------------------
1 | /* Confirm Dialog */
2 |
3 | @import "colors.rasi"
4 |
5 | * {
6 | background-color: @bg;
7 | text-color: @fg;
8 | font: "Iosevka Nerd Font 10";
9 | }
10 |
11 | window {
12 | width: 320px;
13 | padding: 25px;
14 | border: 0px 0px 0px 4px;
15 | border-radius: 0px;
16 | border-color: @bg3;
17 | location: center;
18 | y-offset: -2em;
19 | }
20 |
21 | entry {
22 | expand: true;
23 | text-color: @bg2;
24 | }
25 |
--------------------------------------------------------------------------------
/config_files/nvim/lua/gh0st/plugins/colorizer.lua:
--------------------------------------------------------------------------------
1 | require'colorizer'.setup(
2 | {'*';},
3 | {
4 | RGB = true; -- #RGB hex codes
5 | RRGGBB = true; -- #RRGGBB hex codes
6 | names = true; -- "Name" codes like Blue
7 | RRGGBBAA = true; -- #RRGGBBAA hex codes
8 | rgb_fn = true; -- CSS rgb() and rgba() functions
9 | hsl_fn = true; -- CSS hsl() and hsla() functions
10 | css = true; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
11 | css_fn = true; -- Enable all CSS *functions*: rgb_fn, hsl_fn
12 | })
13 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/external_rules.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | id="${1?}" \
4 | instance="$3" \
5 | class="$2";
6 |
7 | case "$class" in
8 | (foo)
9 | bar;;
10 | ("")
11 | unset -v _NET_WM_PID;
12 | . /dev/fd/0 2>/dev/null </dev/null)" in
22 | (spotify)
23 | echo desktop=^7 follow=on;;
24 | esac;;
25 | esac;
26 |
--------------------------------------------------------------------------------
/config_files/xfce4/xfconf/xfce-perchannel-xml/thunar.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/config_files/bspwm/bspwmrc:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | pgrep -x sxhkd > /dev/null || sxhkd &
4 |
5 | bspc monitor -d 1 2 3 4 5
6 |
7 | $HOME/.config/polybar/material/launch.sh &
8 | bspc config border_width 2
9 | bspc config window_gap 12
10 |
11 | bspc config split_ratio 0.52
12 | bspc config borderless_monocle true
13 | bspc config gapless_monocle true
14 |
15 | bspc config normal_border_color "#ECEFF4"
16 | bspc config focused_border_colr "81A1C1"
17 | bspc rule -a Gimp desktop='^8' state=floating follow=on
18 | bspc rule -a Chromium desktop='^2'
19 | bspc rule -a mplayer2 state=floating
20 | bspc rule -a Kupfer.py focus=on
21 | bspc rule -a Screenkey manage=off
22 |
23 | picom --config "$HOME/.config/picom.conf" &
24 | nitrogen --restore &
25 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/bspwmrc:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | pgrep -x sxhkd > /dev/null || sxhkd &
4 |
5 | bspc monitor -d 1 2 3 4 5
6 |
7 | $HOME/.config/polybar/material/launch.sh &
8 | bspc config border_width 2
9 | bspc config window_gap 12
10 |
11 | bspc config split_ratio 0.52
12 | bspc config borderless_monocle true
13 | bspc config gapless_monocle true
14 |
15 | bspc config normal_border_color "#ECEFF4"
16 | bspc config focused_border_colr "81A1C1"
17 | bspc rule -a Gimp desktop='^8' state=floating follow=on
18 | bspc rule -a Chromium desktop='^2'
19 | bspc rule -a mplayer2 state=floating
20 | bspc rule -a Kupfer.py focus=on
21 | bspc rule -a Screenkey manage=off
22 |
23 | picom --config "$HOME/.config/bspwm/picom.conf" &
24 | nitrogen --set-auto "$HOME/Pictures/WallPapers/wallhaven-qzzz9l_1920x1080.png" &
25 |
--------------------------------------------------------------------------------
/config_files/nvim/lua/gh0st/core/options.lua:
--------------------------------------------------------------------------------
1 | local opt = vim.opt -- for conciseness
2 |
3 | -- Numeracion de las lineas
4 | opt.relativenumber = true
5 | opt.number = true
6 |
7 | -- tabs & indentation
8 | opt.tabstop = 4
9 | opt.shiftwidth = 4
10 | opt.expandtab = true
11 | opt.autoindent = true
12 |
13 | -- Line wrapping
14 | opt.wrap = false
15 |
16 | -- Search setting
17 | opt.ignorecase = true
18 | opt.smartcase = true
19 |
20 | -- Cursor line
21 | opt.cursorline = true
22 |
23 | -- appearance
24 | opt.termguicolors = true
25 | opt.background = "dark"
26 | opt.signcolumn = "yes"
27 |
28 | -- Backspace
29 | opt.backspace = "indent,eol,start"
30 |
31 | -- Clipboard
32 | opt.clipboard:append("unnamedplus")
33 |
34 | -- Splitt Windows
35 | opt.splitright = true
36 | opt.splitbelow = true
37 |
38 | opt.iskeyword:append("-")
39 |
40 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/colors.ini:
--------------------------------------------------------------------------------
1 | ;; ┌────────────────────────────────────────────────────────────┐
2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
6 | ;; └────────────────────────────────────────────────────────────┘
7 |
8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
9 |
10 | [color]
11 |
12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper.
13 |
14 | ;; main colors
15 | background = #1F1F1F
16 | foreground = #FFFFFF
17 | foreground-alt = #8F8F8F
18 | module-fg = #1F1F1F
19 | primary = #ffb300
20 | secondary = #E53935
21 | alternate = #7cb342
22 |
23 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
24 |
--------------------------------------------------------------------------------
/config_files/nvim/lua/gh0st/core/keymaps.lua:
--------------------------------------------------------------------------------
1 | vim.g.mapleader = " "
2 |
3 | local keymap = vim.keymap -- haz las cosas facil..
4 |
5 | -- General Keymaps
6 |
7 | -- window management
8 | keymap.set("n", "sv", "v") -- split window vertically
9 | keymap.set("n", "sh", "s") -- split window horizontally
10 | keymap.set("n", "se", "=") -- make split windows equal width & height
11 | keymap.set("n", "sx", ":close") -- close current split window
12 |
13 | keymap.set("n", "to", ":tabnew") -- open new tab
14 | keymap.set("n", "tx", ":tabclose") -- close current tab
15 | keymap.set("n", "tn", ":tabn") -- go to next tab
16 | keymap.set("n", "tp", ":tabp") -- go to previous tab
17 |
18 | -- nvim-tree
19 | keymap.set("n", "e", ":NvimTreeToggle") -- toggle file explorer
20 |
--------------------------------------------------------------------------------
/config_files/polybar/material/colors.ini:
--------------------------------------------------------------------------------
1 | ;; ┌────────────────────────────────────────────────────────────┐
2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
6 | ;; └────────────────────────────────────────────────────────────┘
7 |
8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
9 |
10 | [color]
11 |
12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper.
13 |
14 | ;; main colors
15 | background = #1F1F1F
16 | foreground = #FFFFFF
17 | foreground-alt = #8F8F8F
18 | module-fg = #1F1F1F
19 | primary = #ffb300
20 | secondary = #E53935
21 | alternate = #7cb342
22 |
23 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
24 |
--------------------------------------------------------------------------------
/.xinitrc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | userresources=$HOME/.Xresources
4 | usermodmap=$HOME/.Xmodmap
5 | sysresources=/etc/X11/xinit/.Xresources
6 | sysmodmap=/etc/X11/xinit/.Xmodmap
7 |
8 | # merge in defaults and keymaps
9 |
10 | if [ -f $sysresources ]; then
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | xrdb -merge $sysresources
19 |
20 | fi
21 |
22 | if [ -f $sysmodmap ]; then
23 | xmodmap $sysmodmap
24 | fi
25 |
26 | if [ -f "$userresources" ]; then
27 | https://github.com/adi1090x/polybar-themes.git
28 |
29 | if [ -f "$usermodmap" ]; then
30 | xmodmap "$usermodmap"
31 | fi
32 |
33 | # start some nice programs
34 |
35 | if [ -d /etc/X11/xinit/xinitrc.d ] ; then
36 | for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
37 | [ -x "$f" ] && . "$f"
38 | done
39 | unset f
40 | fi
41 | setxkbmap us &
42 | lxsession &
43 | xsetroot -cursor_name left_ptr
44 | exec bspwm
45 |
--------------------------------------------------------------------------------
/.xsession:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | userresources=$HOME/.Xresources
4 | usermodmap=$HOME/.Xmodmap
5 | sysresources=/etc/X11/xinit/.Xresources
6 | sysmodmap=/etc/X11/xinit/.Xmodmap
7 |
8 | # merge in defaults and keymaps
9 |
10 | if [ -f $sysresources ]; then
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | xrdb -merge $sysresources
19 |
20 | fi
21 |
22 | if [ -f $sysmodmap ]; then
23 | xmodmap $sysmodmap
24 | fi
25 |
26 | if [ -f "$userresources" ]; then
27 | https://github.com/adi1090x/polybar-themes.git
28 |
29 | if [ -f "$usermodmap" ]; then
30 | xmodmap "$usermodmap"
31 | fi
32 |
33 | # start some nice programs
34 |
35 | if [ -d /etc/X11/xinit/xinitrc.d ] ; then
36 | for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
37 | [ -x "$f" ] && . "$f"
38 | done
39 | unset f
40 | fi
41 | setxkbmap us &
42 | lxsession &
43 | xsetroot -cursor_name left_ptr
44 | exec bspwm
45 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/clean:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | ## This configuration file is meant for applications that
3 | # still run in the background when a reload is triggered
4 | # for awesome, this script just kills the running instance
5 | # and starts a new one.
6 | # Only add applications/scripts without parameters here
7 | # (if you want to apply parameters then use a script file!)
8 |
9 | # List of applications to run
10 | APPS=(
11 | synergy
12 | flameshot
13 | )
14 |
15 | # Some applications start child applications that need to be killed on reload
16 | KILL=(
17 | synergys
18 | )
19 |
20 | # First kill lingering apps
21 | for app in "${APPS[@]}"
22 | do
23 | kill -9 $(pidof $app)
24 | done
25 | for app in "${KILL[@]}"
26 | do
27 | kill -9 $(pidof $app)
28 | while _is_running $app; do sleep 1; done
29 | done
30 |
31 | # Start new instances
32 | for app in "${APPS[@]}"
33 | do
34 | env $app ${@:2} &
35 | done
36 |
37 |
--------------------------------------------------------------------------------
/config_files/nvim/lua/gh0st/plugins/lualine.lua:
--------------------------------------------------------------------------------
1 | -- import lualine plugin safely
2 | local status, lualine = pcall(require, "lualine")
3 | if not status then
4 | return
5 | end
6 |
7 | -- get lualine nightfly theme
8 | local lualine_onedark = require("lualine.themes.onedark")
9 |
10 | -- new colors for theme
11 | local new_colors = {
12 | blue = "#65D1FF",
13 | green = "#3EFFDC",
14 | violet = "#FF61EF",
15 | yellow = "#FFDA7B",
16 | black = "#000000",
17 | }
18 |
19 | -- change nightlfy theme colors
20 | lualine_onedark.normal.a.bg = new_colors.blue
21 | lualine_onedark.insert.a.bg = new_colors.green
22 | lualine_onedark.visual.a.bg = new_colors.violet
23 | lualine_onedark.command = {
24 | a = {
25 | gui = "bold",
26 | bg = new_colors.yellow,
27 | fg = new_colors.black, -- black
28 | },
29 | }
30 |
31 | -- configure lualine with modified theme
32 | lualine.setup({
33 | options = {
34 | theme = lualine_onedark,
35 | },
36 | })
37 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/colors.ini:
--------------------------------------------------------------------------------
1 | ;; ┌────────────────────────────────────────────────────────────┐
2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
6 | ;; └────────────────────────────────────────────────────────────┘
7 |
8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
9 |
10 | [color]
11 |
12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper.
13 |
14 | ;; main colors
15 | background = #141C21
16 | foreground = #F5F5F5
17 | foreground-alt = #FFFFFF
18 | alpha = #00000000
19 |
20 | ;; shades
21 | shade1 = #BF360C
22 | shade2 = #D84315
23 | shade3 = #E64A19
24 | shade4 = #F4511E
25 | shade5 = #FF5722
26 | shade6 = #FF7043
27 | shade7 = #FF8A65
28 | shade8 = #FFAB91
29 |
30 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
31 |
--------------------------------------------------------------------------------
/config_files/nvim/lua/gh0st/plugins/nvim-tree.lua:
--------------------------------------------------------------------------------
1 | -- import nvim-tree plugin safely
2 | local setup, nvimtree = pcall(require, "nvim-tree")
3 | if not setup then
4 | return
5 | end
6 |
7 | -- recommended settings from nvim-tree documentation
8 | vim.g.loaded_netrw = 1
9 | vim.g.loaded_netrwPlugin = 1
10 |
11 | -- change color for arrows in tree to light blue
12 | vim.cmd([[ highlight NvimTreeIndentMarker guifg=#3FC5FF ]])
13 |
14 | -- configure nvim-tree
15 | nvimtree.setup({
16 | -- change folder arrow icons
17 | renderer = {
18 | icons = {
19 | glyphs = {
20 | folder = {
21 | arrow_closed = "", -- arrow when folder is closed
22 | arrow_open = "", -- arrow when folder is open
23 | },
24 | },
25 | },
26 | },
27 | -- disable window_picker for
28 | -- explorer to work well with
29 | -- window splits
30 | actions = {
31 | open_file = {
32 | window_picker = {
33 | enable = false,
34 | },
35 | },
36 | },
37 | -- git = {
38 | -- ignore = false,
39 | -- },
40 | })
41 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/colors.ini:
--------------------------------------------------------------------------------
1 | ;; ┌────────────────────────────────────────────────────────────┐
2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█░░░█▀█░█▀▄░█▀▀│
3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░░░█░█░█▀▄░▀▀█│
4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀▀▀│
5 | ;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
6 | ;; └────────────────────────────────────────────────────────────┘
7 |
8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
9 |
10 | [color]
11 |
12 | ;; Use pywal.sh in scripts directory to use colors from an image/wallpaper.
13 |
14 | ;; main colors
15 | background = #2f343f
16 | background-alt = #C4C7C5
17 | foreground = #1C1E20
18 | foreground-alt = #C4C7C5
19 | primary = #B4BC67
20 |
21 | white = #FFFFFF
22 | black = #000000
23 | red = #EC7875
24 | pink = #EC6798
25 | purple = #BE78D1
26 | blue = #75A4CD
27 | cyan = #00C7DF
28 | teal = #00B19F
29 | green = #61C766
30 | lime = #B9C244
31 | yellow = #EBD369
32 | amber = #EDB83F
33 | orange = #E57C46
34 | brown = #AC8476
35 | gray = #9E9E9E
36 | indigo = #6C77BB
37 | blue-gray = #6D8895
38 |
39 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
40 |
--------------------------------------------------------------------------------
/config_files/partitionmanagerrc:
--------------------------------------------------------------------------------
1 | [KDE Partition Manager]
2 | backend=pmsfdiskbackendplugin
3 | firstRun=false
4 | treeLogColumnWidths=38,192,800
5 |
6 | [MainWindow]
7 | State=AAAA/wAAAAD9AAAAAwAAAAAAAAEAAAACw/wCAAAAAvsAAAAaAG0AXwBEAG8AYwBrAEQAZQB2AGkAYwBlAHMAAAAAPAAAAsMAAABZAP////sAAAAiAG0AXwBEAG8AYwBrAEkAbgBmAG8AcgBtAGEAdABpAG8AbgAAAAG3AAAAHAAAABMA////AAAAAgAAB2QAAAAA/AEAAAAB+wAAACIATQBlAHMAcwBhAGcAZQBXAGkAZABnAGUAdABEAG8AYwBrAQAAAAAAAAdkAAAAAAAAAAAAAAADAAAHZAAAANP8AQAAAAL7AAAAIABtAF8ARABvAGMAawBPAHAAZQByAGEAdABpAG8AbgBzAQAAAAAAAAdkAAAARgD////7AAAAEgBtAF8ARABvAGMAawBMAG8AZwAAAAH7AAAB9AAAAEYA////AAAHZAAAAsMAAAAEAAAABAAAAAgAAAAI/AAAAAEAAAACAAAAAQAAACAAcABhAHIAdABpAHQAaQBvAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAA
8 | ToolBarsMovable=Disabled
9 | eDP=eDP
10 | eDP Height 1920x1080 eDP=1006
11 | eDP Width 1920x1080 eDP=1892
12 | eDP XPosition 1920x1080 eDP=14
13 | eDP YPosition 1920x1080 eDP=60
14 |
15 | [applyProgressDialog]
16 | Geometry=\x01\xd9\xd0\xcb\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00c\x00\x00\x001\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00c\x00\x00\x001\x00\x00\x00\x00\x00\x00\x00\x00\x07\x80\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00c\x00\x00\x001
17 |
--------------------------------------------------------------------------------
/dotconfig/alacritty/alacritty.yml:
--------------------------------------------------------------------------------
1 | window:
2 | padding:
3 | x: 5
4 | y: 5
5 | class:
6 | instance: Alacritty
7 | general: Alacritty
8 | opacity: 1
9 |
10 | scrolling:
11 | history: 10000
12 | multiplier: 3
13 |
14 |
15 | font:
16 | normal:
17 | family: Liga SFMono Nerd Font
18 | style: Bold
19 | bold:
20 | family: Liga SFMono Nerd Font
21 | style: Bold
22 | italic:
23 | family: Liga SFMono Nerd Font
24 | style: MediumItalic
25 | bold_italic:
26 | family: Liga SFMono Nerd Font
27 | style: BoldItalic
28 | size: 10
29 | draw_bold_text_with_bright_colors: true
30 |
31 | colors:
32 | primary:
33 | background: "#11121D"
34 | foreground: "#a9b1d6"
35 | normal:
36 | black: "#32344a"
37 | red: "#f7768e"
38 | green: "#9ece6a"
39 | yellow: "#e0af68"
40 | blue: "#7aa2f7"
41 | magenta: "#ad8ee6"
42 | cyan: "#449dab"
43 | white: "#787c99"
44 | bright:
45 | black: "#444b6a"
46 | red: "#ff7a93"
47 | green: "#b9f27c"
48 | yellow: "#ff9e64"
49 | blue: "#7da6ff"
50 | magenta: "#bb9af7"
51 | cyan: "#0db9d7"
52 | white: "#acb0d0"
53 |
54 | selection:
55 | save_to_clipboard: false
56 |
57 | shell:
58 | program: /usr/bin/bash
59 |
60 | key_bindings:
61 | - { key: Return, mods: Super|Shift, action: SpawnNewInstance }
--------------------------------------------------------------------------------
/config_files/alacritty/alacritty.yml.1674796504556.bak:
--------------------------------------------------------------------------------
1 | window:
2 | padding:
3 | x: 5
4 | y: 5
5 | class:
6 | instance: Alacritty
7 | general: Alacritty
8 | opacity: 0.95
9 |
10 | scrolling:
11 | history: 10000
12 | multiplier: 3
13 |
14 |
15 | font:
16 | normal:
17 | family: Liga SFMono Nerd Font
18 | style: Bold
19 | bold:
20 | family: Liga SFMono Nerd Font
21 | style: Bold
22 | italic:
23 | family: Liga SFMono Nerd Font
24 | style: MediumItalic
25 | bold_italic:
26 | family: Liga SFMono Nerd Font
27 | style: BoldItalic
28 | size: 10
29 | draw_bold_text_with_bright_colors: true
30 |
31 | colors:
32 | primary:
33 | background: "#11121D"
34 | foreground: "#a9b1d6"
35 | normal:
36 | black: "#32344a"
37 | red: "#f7768e"
38 | green: "#9ece6a"
39 | yellow: "#e0af68"
40 | blue: "#7aa2f7"
41 | magenta: "#ad8ee6"
42 | cyan: "#449dab"
43 | white: "#787c99"
44 | bright:
45 | black: "#444b6a"
46 | red: "#ff7a93"
47 | green: "#b9f27c"
48 | yellow: "#ff9e64"
49 | blue: "#7da6ff"
50 | magenta: "#bb9af7"
51 | cyan: "#0db9d7"
52 | white: "#acb0d0"
53 |
54 | selection:
55 | save_to_clipboard: false
56 |
57 | shell:
58 | program: /usr/bin/bash
59 |
60 | key_bindings:
61 | - { key: Return, mods: Super|Shift, action: SpawnNewInstance }
62 |
--------------------------------------------------------------------------------
/config_files/nvim/lua/gh0st/plugins-setup.lua:
--------------------------------------------------------------------------------
1 | -- auto install packer if not installed
2 | local ensure_packer = function()
3 | local fn = vim.fn
4 | local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
5 | if fn.empty(fn.glob(install_path)) > 0 then
6 | fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
7 | vim.cmd([[packadd packer.nvim]])
8 | return true
9 | end
10 | return false
11 | end
12 | local packer_bootstrap = ensure_packer() -- true if packer was just installed
13 |
14 | -- autocommand that reloads neovim and installs/updates/removes plugins
15 | -- when file is saved
16 | vim.cmd([[
17 | augroup packer_user_config
18 | autocmd!
19 | autocmd BufWritePost plugins-setup.lua source | PackerSync
20 | augroup end
21 | ]])
22 |
23 | -- import packer safely
24 | local status, packer = pcall(require, "packer")
25 | if not status then
26 | return
27 | end
28 |
29 | -- add list of plugins to install
30 | return packer.startup(function(use)
31 | -- packer can manage itself
32 | use("wbthomason/packer.nvim")
33 |
34 | use("navarasu/onedark.nvim")
35 |
36 | -- file explorer
37 | use("nvim-tree/nvim-tree.lua")
38 |
39 | -- vs-code like icons
40 | use("nvim-tree/nvim-web-devicons")
41 |
42 | -- statusline
43 | use("nvim-lualine/lualine.nvim")
44 |
45 | -- Colorizer
46 | use("norcalli/nvim-colorizer.lua")
47 |
48 |
49 | if packer_bootstrap then
50 | require("packer").sync()
51 | end
52 | end)
53 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/nord:
--------------------------------------------------------------------------------
1 | ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 | ! title Nord XResources +
3 | ! project nord-xresources +
4 | ! version 0.1.0 +
5 | ! repository https://github.com/arcticicestudio/nord-xresources +
6 | ! author Arctic Ice Studio +
7 | ! email development@arcticicestudio.com +
8 | ! copyright Copyright (C) 2016 +
9 | ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10 | #define nord0 #2E3440
11 | #define nord1 #3B4252
12 | #define nord2 #434C5E
13 | #define nord3 #4C566A
14 | #define nord4 #D8DEE9
15 | #define nord5 #E5E9F0
16 | #define nord6 #ECEFF4
17 | #define nord7 #8FBCBB
18 | #define nord8 #88C0D0
19 | #define nord9 #81A1C1
20 | #define nord10 #5E81AC
21 | #define nord11 #BF616A
22 | #define nord12 #D08770
23 | #define nord13 #EBCB8B
24 | #define nord14 #A3BE8C
25 | #define nord15 #B48EAD
26 |
27 | *.foreground: nord4
28 | *.background: nord0
29 | *.cursorColor: nord4
30 | *fading: 35
31 | *fadeColor: nord3
32 |
33 | *.color0: nord1
34 | *.color1: nord11
35 | *.color2: nord14
36 | *.color3: nord13
37 | *.color4: nord9
38 | *.color5: nord15
39 | *.color6: nord8
40 | *.color7: nord5
41 | *.color8: nord3
42 | *.color9: nord11
43 | *.color10: nord14
44 | *.color11: nord13
45 | *.color12: nord9
46 | *.color13: nord15
47 | *.color14: nord7
48 | *.color15: nord6
49 |
--------------------------------------------------------------------------------
/config_files/alacritty/alacritty.yml.1674801368470.bak:
--------------------------------------------------------------------------------
1 | window:
2 | padding:
3 | x: 5
4 | y: 5
5 | class:
6 | instance: Alacritty
7 | general: Alacritty
8 | opacity: 0.95
9 |
10 | scrolling:
11 | history: 10000
12 | multiplier: 3
13 |
14 | font:
15 | normal:
16 | family: Liga SFMono Nerd Font
17 | style: Bold
18 | bold:
19 | family: Liga SFMono Nerd Font
20 | style: Bold
21 | italic:
22 | family: Liga SFMono Nerd Font
23 | style: MediumItalic
24 | bold_italic:
25 | family: Liga SFMono Nerd Font
26 | style: BoldItalic
27 | size: 10
28 | draw_bold_text_with_bright_colors: true
29 |
30 | colors:
31 | name: 3024 (dark)
32 | author: Chris Kempson
33 | primary:
34 | background: "#090300"
35 | foreground: "#a5a2a2"
36 | cursor:
37 | text: "#090300"
38 | cursor: "#a5a2a2"
39 | normal:
40 | black: "#090300"
41 | red: "#db2d20"
42 | green: "#01a252"
43 | yellow: "#fded02"
44 | blue: "#01a0e4"
45 | magenta: "#a16a94"
46 | cyan: "#b5e4f4"
47 | white: "#a5a2a2"
48 | bright:
49 | black: "#5c5855"
50 | red: "#db2d20"
51 | green: "#01a252"
52 | yellow: "#fded02"
53 | blue: "#01a0e4"
54 | magenta: "#a16a94"
55 | cyan: "#b5e4f4"
56 | white: "#f7f7f7"
57 |
58 | selection:
59 | save_to_clipboard: false
60 |
61 | shell:
62 | program: /usr/bin/bash
63 |
64 | key_bindings:
65 | - {
66 | key: Return,
67 | mods: Super|Shift,
68 | action: SpawnNewInstance
69 | }
70 | theme: 3024.dark
71 |
--------------------------------------------------------------------------------
/config_files/alacritty/alacritty.yml.1674801292089.bak:
--------------------------------------------------------------------------------
1 | window:
2 | padding:
3 | x: 5
4 | y: 5
5 | class:
6 | instance: Alacritty
7 | general: Alacritty
8 | opacity: 0.95
9 |
10 | scrolling:
11 | history: 10000
12 | multiplier: 3
13 |
14 | font:
15 | normal:
16 | family: Liga SFMono Nerd Font
17 | style: Bold
18 | bold:
19 | family: Liga SFMono Nerd Font
20 | style: Bold
21 | italic:
22 | family: Liga SFMono Nerd Font
23 | style: MediumItalic
24 | bold_italic:
25 | family: Liga SFMono Nerd Font
26 | style: BoldItalic
27 | size: 10
28 | draw_bold_text_with_bright_colors: true
29 |
30 | colors:
31 | name: Greenscreen (dark)
32 | author: Chris Kempson
33 | primary:
34 | background: "#001100"
35 | foreground: "#00bb00"
36 | cursor:
37 | text: "#001100"
38 | cursor: "#00bb00"
39 | normal:
40 | black: "#001100"
41 | red: "#007700"
42 | green: "#00bb00"
43 | yellow: "#007700"
44 | blue: "#009900"
45 | magenta: "#00bb00"
46 | cyan: "#005500"
47 | white: "#00bb00"
48 | bright:
49 | black: "#007700"
50 | red: "#007700"
51 | green: "#00bb00"
52 | yellow: "#007700"
53 | blue: "#009900"
54 | magenta: "#00bb00"
55 | cyan: "#005500"
56 | white: "#00ff00"
57 |
58 | selection:
59 | save_to_clipboard: false
60 |
61 | shell:
62 | program: /usr/bin/bash
63 |
64 | key_bindings:
65 | - {
66 | key: Return,
67 | mods: Super|Shift,
68 | action: SpawnNewInstance
69 | }
70 | theme: Greenscreen.dark
71 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/updates.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg
4 |
5 | get_total_updates() { UPDATES=$(~/.config/polybar/blocks/scripts/checkupdates 2>/dev/null | wc -l); }
6 |
7 | while true; do
8 | get_total_updates
9 |
10 | # notify user of updates
11 | if hash notify-send &>/dev/null; then
12 | if (( UPDATES > 50 )); then
13 | notify-send -u critical -i $NOTIFY_ICON \
14 | "You really need to update!!" "$UPDATES New packages"
15 | elif (( UPDATES > 25 )); then
16 | notify-send -u normal -i $NOTIFY_ICON \
17 | "You should update soon" "$UPDATES New packages"
18 | elif (( UPDATES > 2 )); then
19 | notify-send -u low -i $NOTIFY_ICON \
20 | "$UPDATES New packages"
21 | fi
22 | fi
23 |
24 | # when there are updates available
25 | # every 10 seconds another check for updates is done
26 | while (( UPDATES > 0 )); do
27 | if (( UPDATES == 1 )); then
28 | echo "$UPDATES"
29 | elif (( UPDATES > 1 )); then
30 | echo "$UPDATES"
31 | else
32 | echo "None"
33 | fi
34 | sleep 10
35 | get_total_updates
36 | done
37 |
38 | # when no updates are available, use a longer loop, this saves on CPU
39 | # and network uptime, only checking once every 30 min for new updates
40 | while (( UPDATES == 0 )); do
41 | echo "None"
42 | sleep 1800
43 | get_total_updates
44 | done
45 | done
46 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/updates.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg
4 |
5 | get_total_updates() { UPDATES=$(~/.config/polybar/material/scripts/checkupdates 2>/dev/null | wc -l); }
6 |
7 | while true; do
8 | get_total_updates
9 |
10 | # notify user of updates
11 | if hash notify-send &>/dev/null; then
12 | if (( UPDATES > 50 )); then
13 | notify-send -u critical -i $NOTIFY_ICON \
14 | "You really need to update!!" "$UPDATES New packages"
15 | elif (( UPDATES > 25 )); then
16 | notify-send -u normal -i $NOTIFY_ICON \
17 | "You should update soon" "$UPDATES New packages"
18 | elif (( UPDATES > 2 )); then
19 | notify-send -u low -i $NOTIFY_ICON \
20 | "$UPDATES New packages"
21 | fi
22 | fi
23 |
24 | # when there are updates available
25 | # every 10 seconds another check for updates is done
26 | while (( UPDATES > 0 )); do
27 | if (( UPDATES == 1 )); then
28 | echo " $UPDATES"
29 | elif (( UPDATES > 1 )); then
30 | echo " $UPDATES"
31 | else
32 | echo " None"
33 | fi
34 | sleep 10
35 | get_total_updates
36 | done
37 |
38 | # when no updates are available, use a longer loop, this saves on CPU
39 | # and network uptime, only checking once every 30 min for new updates
40 | while (( UPDATES == 0 )); do
41 | echo " None"
42 | sleep 1800
43 | get_total_updates
44 | done
45 | done
46 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/updates.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg
4 |
5 | get_total_updates() { UPDATES=$(~/.config/polybar/material/scripts/checkupdates 2>/dev/null | wc -l); }
6 |
7 | while true; do
8 | get_total_updates
9 |
10 | # notify user of updates
11 | if hash notify-send &>/dev/null; then
12 | if (( UPDATES > 50 )); then
13 | notify-send -u critical -i $NOTIFY_ICON \
14 | "You really need to update!!" "$UPDATES New packages"
15 | elif (( UPDATES > 25 )); then
16 | notify-send -u normal -i $NOTIFY_ICON \
17 | "You should update soon" "$UPDATES New packages"
18 | elif (( UPDATES > 2 )); then
19 | notify-send -u low -i $NOTIFY_ICON \
20 | "$UPDATES New packages"
21 | fi
22 | fi
23 |
24 | # when there are updates available
25 | # every 10 seconds another check for updates is done
26 | while (( UPDATES > 0 )); do
27 | if (( UPDATES == 1 )); then
28 | echo " $UPDATES"
29 | elif (( UPDATES > 1 )); then
30 | echo " $UPDATES"
31 | else
32 | echo " None"
33 | fi
34 | sleep 10
35 | get_total_updates
36 | done
37 |
38 | # when no updates are available, use a longer loop, this saves on CPU
39 | # and network uptime, only checking once every 30 min for new updates
40 | while (( UPDATES == 0 )); do
41 | echo " None"
42 | sleep 1800
43 | get_total_updates
44 | done
45 | done
46 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/updates.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | NOTIFY_ICON=/usr/share/icons/Papirus/32x32/apps/system-software-update.svg
4 |
5 | get_total_updates() { UPDATES=$(~/.config/polybar/colorblocks/scripts/checkupdates 2>/dev/null | wc -l); }
6 |
7 | while true; do
8 | get_total_updates
9 |
10 | # notify user of updates
11 | if hash notify-send &>/dev/null; then
12 | if (( UPDATES > 50 )); then
13 | notify-send -u critical -i $NOTIFY_ICON \
14 | "You really need to update!!" "$UPDATES New packages"
15 | elif (( UPDATES > 25 )); then
16 | notify-send -u normal -i $NOTIFY_ICON \
17 | "You should update soon" "$UPDATES New packages"
18 | elif (( UPDATES > 2 )); then
19 | notify-send -u low -i $NOTIFY_ICON \
20 | "$UPDATES New packages"
21 | fi
22 | fi
23 |
24 | # when there are updates available
25 | # every 10 seconds another check for updates is done
26 | while (( UPDATES > 0 )); do
27 | if (( UPDATES == 1 )); then
28 | echo " $UPDATES"
29 | elif (( UPDATES > 1 )); then
30 | echo " $UPDATES"
31 | else
32 | echo " None"
33 | fi
34 | sleep 10
35 | get_total_updates
36 | done
37 |
38 | # when no updates are available, use a longer loop, this saves on CPU
39 | # and network uptime, only checking once every 30 min for new updates
40 | while (( UPDATES == 0 )); do
41 | echo " None"
42 | sleep 1800
43 | get_total_updates
44 | done
45 | done
46 |
--------------------------------------------------------------------------------
/config_files/alacritty/alacritty.yml:
--------------------------------------------------------------------------------
1 | window:
2 | padding:
3 | x: 5
4 | y: 5
5 | class:
6 | instance: Alacritty
7 | general: Alacritty
8 | opacity: 0.95
9 |
10 | scrolling:
11 | history: 10000
12 | multiplier: 3
13 |
14 | font:
15 | normal:
16 | family: Liga SFMono Nerd Font
17 | style: Bold
18 | bold:
19 | family: Liga SFMono Nerd Font
20 | style: Bold
21 | italic:
22 | family: Liga SFMono Nerd Font
23 | style: MediumItalic
24 | bold_italic:
25 | family: Liga SFMono Nerd Font
26 | style: BoldItalic
27 | size: 10
28 | draw_bold_text_with_bright_colors: true
29 |
30 | colors:
31 | name: TokyoNight Night
32 | author: Folke
33 | # Default colors
34 | primary:
35 | background: '0x1a1b26'
36 | foreground: '0xc0caf5'
37 |
38 | # Normal colors
39 | normal:
40 | black: '0x15161E'
41 | red: '0xf7768e'
42 | green: '0x9ece6a'
43 | yellow: '0xe0af68'
44 | blue: '0x7aa2f7'
45 | magenta: '0xbb9af7'
46 | cyan: '0x7dcfff'
47 | white: '0xa9b1d6'
48 |
49 | # Bright colors
50 | bright:
51 | black: '0x414868'
52 | red: '0xf7768e'
53 | green: '0x9ece6a'
54 | yellow: '0xe0af68'
55 | blue: '0x7aa2f7'
56 | magenta: '0xbb9af7'
57 | cyan: '0x7dcfff'
58 | white: '0xc0caf5'
59 |
60 | indexed_colors:
61 | - { index: 16, color: '0xff9e64' }
62 | - { index: 17, color: '0xdb4b4b' }
63 |
64 | selection:
65 | save_to_clipboard: false
66 |
67 | shell:
68 | program: /usr/bin/bash
69 |
70 | key_bindings:
71 | - {
72 | key: Return,
73 | mods: Super|Shift,
74 | action: SpawnNewInstance
75 | }
76 | theme: Tokyonight_Night
77 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/styles.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/blocks/colors.ini"
5 | RFILE="$HOME/.config/polybar/blocks/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE
11 | sed -i -e "s/background-alt = #.*/background-alt = $BGA/g" $PFILE
12 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
13 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
15 |
16 | # rofi
17 | cat > $RFILE <<- EOF
18 | /* colors */
19 |
20 | * {
21 | al: #00000000;
22 | bg: ${BG}FF;
23 | bga: ${BGA}FF;
24 | fga: ${FGA}FF;
25 | fg: ${FG}FF;
26 | ac: ${AC}FF;
27 | se: ${AC}40;
28 | }
29 | EOF
30 |
31 | polybar-msg cmd restart
32 | }
33 |
34 | if [[ $1 = "--default" ]]; then
35 | BG="#2f343f"
36 | BGA="#C4C7C5"
37 | FGA="#C4C7C5"
38 | FG="#1C1E20"
39 | AC="#B4BC67"
40 | change_color
41 | elif [[ $1 = "--nord" ]]; then
42 | BG="#3B4252"
43 | BGA="#4C566A"
44 | FGA="#E5E9F0"
45 | FG="#ECEFF4"
46 | AC="#A3BE8C"
47 | change_color
48 | elif [[ $1 = "--gruvbox" ]]; then
49 | BG="#282828"
50 | BGA="#EBDBB2"
51 | FGA="#EBDBB2"
52 | FG="#282828"
53 | AC="#CC241D"
54 | change_color
55 | elif [[ $1 = "--adapta" ]]; then
56 | BG="#243035"
57 | BGA="#38444A"
58 | FGA="#FDF6E3"
59 | FG="#FFFFFF"
60 | AC="#4DD0E1"
61 | change_color
62 | elif [[ $1 = "--cherry" ]]; then
63 | BG="#1F1626"
64 | BGA="#423949"
65 | FGA="#FFFFFF"
66 | FG="#FFFFFF"
67 | AC="#D94085"
68 | change_color
69 | else
70 | cat <<- _EOF_
71 | No option specified, Available options:
72 | --default --nord --gruvbox --adapta --cherry
73 | _EOF_
74 | fi
75 |
--------------------------------------------------------------------------------
/config_files/polybar/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | dir="$HOME/.config/polybar"
4 | themes=(`ls --hide="launch.sh" $dir`)
5 |
6 | launch_bar() {
7 | # Terminate already running bar instances
8 | killall -q polybar
9 |
10 | # Wait until the processes have been shut down
11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
12 |
13 | # Launch the bar
14 | if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
15 | polybar -q top -c "$dir/$style/config.ini" &
16 | polybar -q bottom -c "$dir/$style/config.ini" &
17 | elif [[ "$style" == "pwidgets" ]]; then
18 | bash "$dir"/pwidgets/launch.sh --main
19 | else
20 | polybar -q main -c "$dir/$style/config.ini" &
21 | fi
22 | }
23 |
24 | if [[ "$1" == "--material" ]]; then
25 | style="material"
26 | launch_bar
27 |
28 | elif [[ "$1" == "--shades" ]]; then
29 | style="shades"
30 | launch_bar
31 |
32 | elif [[ "$1" == "--hack" ]]; then
33 | style="hack"
34 | launch_bar
35 |
36 | elif [[ "$1" == "--docky" ]]; then
37 | style="docky"
38 | launch_bar
39 |
40 | elif [[ "$1" == "--cuts" ]]; then
41 | style="cuts"
42 | launch_bar
43 |
44 | elif [[ "$1" == "--shapes" ]]; then
45 | style="shapes"
46 | launch_bar
47 |
48 | elif [[ "$1" == "--grayblocks" ]]; then
49 | style="grayblocks"
50 | launch_bar
51 |
52 | elif [[ "$1" == "--blocks" ]]; then
53 | style="blocks"
54 | launch_bar
55 |
56 | elif [[ "$1" == "--colorblocks" ]]; then
57 | style="colorblocks"
58 | launch_bar
59 |
60 | elif [[ "$1" == "--forest" ]]; then
61 | style="forest"
62 | launch_bar
63 |
64 | elif [[ "$1" == "--pwidgets" ]]; then
65 | style="pwidgets"
66 | launch_bar
67 |
68 | elif [[ "$1" == "--panels" ]]; then
69 | style="panels"
70 | launch_bar
71 |
72 | else
73 | cat <<- EOF
74 | Usage : launch.sh --theme
75 |
76 | Available Themes :
77 | --blocks --colorblocks --cuts --docky
78 | --forest --grayblocks --hack --material
79 | --panels --pwidgets --shades --shapes
80 | EOF
81 | fi
82 |
--------------------------------------------------------------------------------
/dotconfig/polybar/launch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | dir="$HOME/.config/polybar"
4 | themes=(`ls --hide="launch.sh" $dir`)
5 |
6 | launch_bar() {
7 | # Terminate already running bar instances
8 | killall -q polybar
9 |
10 | # Wait until the processes have been shut down
11 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
12 |
13 | # Launch the bar
14 | if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
15 | polybar -q top -c "$dir/$style/config.ini" &
16 | polybar -q bottom -c "$dir/$style/config.ini" &
17 | elif [[ "$style" == "pwidgets" ]]; then
18 | bash "$dir"/pwidgets/launch.sh --main
19 | else
20 | polybar -q main -c "$dir/$style/config.ini" &
21 | fi
22 | }
23 |
24 | if [[ "$1" == "--material" ]]; then
25 | style="material"
26 | launch_bar
27 |
28 | elif [[ "$1" == "--shades" ]]; then
29 | style="shades"
30 | launch_bar
31 |
32 | elif [[ "$1" == "--hack" ]]; then
33 | style="hack"
34 | launch_bar
35 |
36 | elif [[ "$1" == "--docky" ]]; then
37 | style="docky"
38 | launch_bar
39 |
40 | elif [[ "$1" == "--cuts" ]]; then
41 | style="cuts"
42 | launch_bar
43 |
44 | elif [[ "$1" == "--shapes" ]]; then
45 | style="shapes"
46 | launch_bar
47 |
48 | elif [[ "$1" == "--grayblocks" ]]; then
49 | style="grayblocks"
50 | launch_bar
51 |
52 | elif [[ "$1" == "--blocks" ]]; then
53 | style="blocks"
54 | launch_bar
55 |
56 | elif [[ "$1" == "--colorblocks" ]]; then
57 | style="colorblocks"
58 | launch_bar
59 |
60 | elif [[ "$1" == "--forest" ]]; then
61 | style="forest"
62 | launch_bar
63 |
64 | elif [[ "$1" == "--pwidgets" ]]; then
65 | style="pwidgets"
66 | launch_bar
67 |
68 | elif [[ "$1" == "--panels" ]]; then
69 | style="panels"
70 | launch_bar
71 |
72 | else
73 | cat <<- EOF
74 | Usage : launch.sh --theme
75 |
76 | Available Themes :
77 | --blocks --colorblocks --cuts --docky
78 | --forest --grayblocks --hack --material
79 | --panels --pwidgets --shades --shapes
80 | EOF
81 | fi
82 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/pywal.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
5 | RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
6 | WFILE="$HOME/.cache/wal/colors.sh"
7 |
8 | # Get colors
9 | pywal_get() {
10 | wal -i "$1" -q -t
11 | }
12 |
13 | # Change colors
14 | change_color() {
15 | # polybar
16 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE
17 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
18 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
19 | sed -i -e "s/shade1 = #.*/shade1 = $SH1/g" $PFILE
20 | sed -i -e "s/shade2 = #.*/shade2 = $SH2/g" $PFILE
21 | sed -i -e "s/shade3 = #.*/shade3 = $SH3/g" $PFILE
22 | sed -i -e "s/shade4 = #.*/shade4 = $SH4/g" $PFILE
23 | sed -i -e "s/shade5 = #.*/shade5 = $SH5/g" $PFILE
24 | sed -i -e "s/shade6 = #.*/shade6 = $SH6/g" $PFILE
25 | sed -i -e "s/shade7 = #.*/shade7 = $SH7/g" $PFILE
26 | sed -i -e "s/shade8 = #.*/shade8 = $SH8/g" $PFILE
27 |
28 | # rofi
29 | cat > $RFILE <<- EOF
30 | /* colors */
31 |
32 | * {
33 | al: #00000000;
34 | bg: ${BG}FF;
35 | bg1: ${SH8}FF;
36 | bg2: ${SH7}FF;
37 | bg3: ${SH6}FF;
38 | fg: ${FGA}FF;
39 | }
40 | EOF
41 |
42 | polybar-msg cmd restart
43 | }
44 |
45 | # Main
46 | if [[ -x "`which wal`" ]]; then
47 | if [[ "$1" ]]; then
48 | pywal_get "$1"
49 |
50 | # Source the pywal color file
51 | if [[ -e "$WFILE" ]]; then
52 | . "$WFILE"
53 | else
54 | echo 'Color file does not exist, exiting...'
55 | exit 1
56 | fi
57 |
58 | BG=`printf "%s\n" "$background"`
59 | FG=`printf "%s\n" "$color0"`
60 | FGA=`printf "%s\n" "$color7"`
61 | SH1=`printf "%s\n" "$color1"`
62 | SH2=`printf "%s\n" "$color2"`
63 | SH3=`printf "%s\n" "$color1"`
64 | SH4=`printf "%s\n" "$color2"`
65 | SH5=`printf "%s\n" "$color1"`
66 | SH6=`printf "%s\n" "$color2"`
67 | SH7=`printf "%s\n" "$color1"`
68 | SH8=`printf "%s\n" "$color2"`
69 |
70 | change_color
71 | else
72 | echo -e "[!] Please enter the path to wallpaper. \n"
73 | echo "Usage : ./pywal.sh path/to/image"
74 | fi
75 | else
76 | echo "[!] 'pywal' is not installed."
77 | fi
78 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/pywal.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 | WFILE="$HOME/.cache/wal/colors.sh"
7 |
8 | # Get colors
9 | pywal_get() {
10 | wal -i "$1" -q -t
11 | }
12 |
13 | # Change colors
14 | change_color() {
15 | # polybar
16 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE
17 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
18 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
19 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
20 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
21 | sed -i -e "s/secondary = #.*/secondary = $SC/g" $PFILE
22 | sed -i -e "s/alternate = #.*/alternate = $AL/g" $PFILE
23 |
24 | # rofi
25 | cat > $RFILE <<- EOF
26 | /* colors */
27 |
28 | * {
29 | al: #00000000;
30 | bg: ${BG}FF;
31 | bga: ${AC}33;
32 | bar: ${MF}FF;
33 | fg: ${FG}FF;
34 | ac: ${AC}FF;
35 | }
36 | EOF
37 | }
38 |
39 | hex_to_rgb() {
40 | # Convert a hex value WITHOUT the hashtag (#)
41 | R=$(printf "%d" 0x${1:0:2})
42 | G=$(printf "%d" 0x${1:2:2})
43 | B=$(printf "%d" 0x${1:4:2})
44 | }
45 |
46 | get_fg_color(){
47 | INTENSITY=$(calc "$R*0.299 + $G*0.587 + $B*0.114")
48 |
49 | if [ $(echo "$INTENSITY>186" | bc) -eq 1 ]; then
50 | MF="#202020"
51 | else
52 | MF="#F5F5F5"
53 | fi
54 | }
55 |
56 | # Main
57 | if [[ -x "`which wal`" ]]; then
58 | if [[ "$1" ]]; then
59 | pywal_get "$1"
60 |
61 | # Source the pywal color file
62 | if [[ -e "$WFILE" ]]; then
63 | . "$WFILE"
64 | else
65 | echo 'Color file does not exist, exiting...'
66 | exit 1
67 | fi
68 |
69 | BG=`printf "%s\n" "$background"`
70 | FG=`printf "%s\n" "$foreground"`
71 | FGA=`printf "%s\n" "$color8"`
72 | AC=`printf "%s\n" "$color1"`
73 | SC=`printf "%s\n" "$color2"`
74 | AL=`printf "%s\n" "$color3"`
75 |
76 | HEX=${AC:1}
77 |
78 | hex_to_rgb $HEX
79 | get_fg_color
80 | change_color
81 | else
82 | echo -e "[!] Please enter the path to wallpaper. \n"
83 | echo "Usage : ./pywal.sh path/to/image"
84 | fi
85 | else
86 | echo "[!] 'pywal' is not installed."
87 | fi
88 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/pywal.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 | WFILE="$HOME/.cache/wal/colors.sh"
7 |
8 | # Get colors
9 | pywal_get() {
10 | wal -i "$1" -q -t
11 | }
12 |
13 | # Change colors
14 | change_color() {
15 | # polybar
16 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE
17 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
18 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
19 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
20 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
21 | sed -i -e "s/secondary = #.*/secondary = $SC/g" $PFILE
22 | sed -i -e "s/alternate = #.*/alternate = $AL/g" $PFILE
23 |
24 | # rofi
25 | cat > $RFILE <<- EOF
26 | /* colors */
27 |
28 | * {
29 | al: #00000000;
30 | bg: ${BG}FF;
31 | bga: ${AC}33;
32 | bar: ${MF}FF;
33 | fg: ${FG}FF;
34 | ac: ${AC}FF;
35 | }
36 | EOF
37 | }
38 |
39 | hex_to_rgb() {
40 | # Convert a hex value WITHOUT the hashtag (#)
41 | R=$(printf "%d" 0x${1:0:2})
42 | G=$(printf "%d" 0x${1:2:2})
43 | B=$(printf "%d" 0x${1:4:2})
44 | }
45 |
46 | get_fg_color(){
47 | INTENSITY=$(calc "$R*0.299 + $G*0.587 + $B*0.114")
48 |
49 | if [ $(echo "$INTENSITY>186" | bc) -eq 1 ]; then
50 | MF="#202020"
51 | else
52 | MF="#F5F5F5"
53 | fi
54 | }
55 |
56 | # Main
57 | if [[ -x "`which wal`" ]]; then
58 | if [[ "$1" ]]; then
59 | pywal_get "$1"
60 |
61 | # Source the pywal color file
62 | if [[ -e "$WFILE" ]]; then
63 | . "$WFILE"
64 | else
65 | echo 'Color file does not exist, exiting...'
66 | exit 1
67 | fi
68 |
69 | BG=`printf "%s\n" "$background"`
70 | FG=`printf "%s\n" "$foreground"`
71 | FGA=`printf "%s\n" "$color8"`
72 | AC=`printf "%s\n" "$color1"`
73 | SC=`printf "%s\n" "$color2"`
74 | AL=`printf "%s\n" "$color3"`
75 |
76 | HEX=${AC:1}
77 |
78 | hex_to_rgb $HEX
79 | get_fg_color
80 | change_color
81 | else
82 | echo -e "[!] Please enter the path to wallpaper. \n"
83 | echo "Usage : ./pywal.sh path/to/image"
84 | fi
85 | else
86 | echo "[!] 'pywal' is not installed."
87 | fi
88 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/random.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/colorblocks/colors.ini"
5 | RFILE="$HOME/.config/polybar/colorblocks/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE
11 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
12 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
13 | sed -i -e "s/shade1 = #.*/shade1 = $SH1/g" $PFILE
14 | sed -i -e "s/shade2 = #.*/shade2 = $SH2/g" $PFILE
15 | sed -i -e "s/shade3 = #.*/shade3 = $SH3/g" $PFILE
16 | sed -i -e "s/shade4 = #.*/shade4 = $SH4/g" $PFILE
17 | sed -i -e "s/shade5 = #.*/shade5 = $SH5/g" $PFILE
18 | sed -i -e "s/shade6 = #.*/shade6 = $SH6/g" $PFILE
19 | sed -i -e "s/shade7 = #.*/shade7 = $SH7/g" $PFILE
20 | sed -i -e "s/shade8 = #.*/shade8 = $SH8/g" $PFILE
21 |
22 | # rofi
23 | cat > $RFILE <<- EOF
24 | /* colors */
25 |
26 | * {
27 | al: #00000000;
28 | bg: #141C21FF;
29 | bg1: ${SH8}FF;
30 | bg2: ${SH7}FF;
31 | bg3: ${SH6}FF;
32 | fg: #FFFFFFFF;
33 | }
34 | EOF
35 |
36 | polybar-msg cmd restart
37 | }
38 |
39 | get_random_number() {
40 | RNUM=$(( ($RANDOM % $1) + 1 ))
41 | }
42 |
43 | get_random_color() {
44 | RCOLOR="#"
45 | for i in 1 2 3 4 5 6
46 | do
47 | get_random_number "16"
48 | case $RNUM in
49 | "1") NEXTDIGIT="1";;
50 | "2") NEXTDIGIT="2";;
51 | "3") NEXTDIGIT="3";;
52 | "4") NEXTDIGIT="4";;
53 | "5") NEXTDIGIT="5";;
54 | "6") NEXTDIGIT="6";;
55 | "7") NEXTDIGIT="7";;
56 | "8") NEXTDIGIT="8";;
57 | "9") NEXTDIGIT="9";;
58 | "10") NEXTDIGIT="A";;
59 | "11") NEXTDIGIT="B";;
60 | "12") NEXTDIGIT="C";;
61 | "13") NEXTDIGIT="D";;
62 | "14") NEXTDIGIT="E";;
63 | "15") NEXTDIGIT="F";;
64 | "16") NEXTDIGIT="0";;
65 | esac
66 | RCOLOR="$RCOLOR$NEXTDIGIT"
67 | done
68 | echo $RCOLOR
69 | }
70 |
71 | # Main
72 | BG='#141C21' # change to light bg
73 | FG='#141C21' # change to dark fg
74 | FGA='#FFFFFF' # change to gray fg
75 | SH1=`get_random_color`
76 | SH2=`get_random_color`
77 | SH3=`get_random_color`
78 | SH4=`get_random_color`
79 | SH5=`get_random_color`
80 | SH6=`get_random_color`
81 | SH7=`get_random_color`
82 | SH8=`get_random_color`
83 |
84 | change_color
85 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/random.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE
11 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
12 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
13 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
15 | sed -i -e "s/secondary = #.*/secondary = $SC/g" $PFILE
16 | sed -i -e "s/alternate = #.*/alternate = $AL/g" $PFILE
17 |
18 | # rofi
19 | cat > $RFILE <<- EOF
20 | /* colors */
21 |
22 | * {
23 | al: #00000000;
24 | bg: ${BG}FF;
25 | bga: ${AC}33;
26 | bar: ${MF}FF;
27 | fg: ${FG}FF;
28 | ac: ${AC}FF;
29 | }
30 | EOF
31 |
32 | polybar-msg cmd restart
33 | }
34 |
35 | get_random_number() {
36 | RNUM=$(( ($RANDOM % $1) + 1 ))
37 | }
38 |
39 | get_random_color() {
40 | RCOLOR="#"
41 | for i in 1 2 3 4 5 6
42 | do
43 | get_random_number "16"
44 | case $RNUM in
45 | "1") NEXTDIGIT="1";;
46 | "2") NEXTDIGIT="2";;
47 | "3") NEXTDIGIT="3";;
48 | "4") NEXTDIGIT="4";;
49 | "5") NEXTDIGIT="5";;
50 | "6") NEXTDIGIT="6";;
51 | "7") NEXTDIGIT="7";;
52 | "8") NEXTDIGIT="8";;
53 | "9") NEXTDIGIT="9";;
54 | "10") NEXTDIGIT="A";;
55 | "11") NEXTDIGIT="B";;
56 | "12") NEXTDIGIT="C";;
57 | "13") NEXTDIGIT="D";;
58 | "14") NEXTDIGIT="E";;
59 | "15") NEXTDIGIT="F";;
60 | "16") NEXTDIGIT="0";;
61 | esac
62 | RCOLOR="$RCOLOR$NEXTDIGIT"
63 | done
64 | echo $RCOLOR
65 | }
66 |
67 | hex_to_rgb() {
68 | # Convert a hex value WITHOUT the hashtag (#)
69 | R=$(printf "%d" 0x${1:0:2})
70 | G=$(printf "%d" 0x${1:2:2})
71 | B=$(printf "%d" 0x${1:4:2})
72 | }
73 |
74 | get_fg_color(){
75 | INTENSITY=$(calc "$R*0.299 + $G*0.587 + $B*0.114")
76 |
77 | if [ $(echo "$INTENSITY>186" | bc) -eq 1 ]; then
78 | MF="#0a0a0a"
79 | else
80 | MF="#F5F5F5"
81 | fi
82 | }
83 |
84 | # Main
85 | BG='#1F1F1F' # change to light bg
86 | FG='#FFFFFF' # change to dark fg
87 | FGA=`get_random_color`
88 | AC=`get_random_color`
89 | SC=`get_random_color`
90 | AL=`get_random_color`
91 |
92 | HEX=${AC:1}
93 |
94 | hex_to_rgb $HEX
95 | get_fg_color
96 | change_color
97 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/random.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e "s/background = #.*/background = $BG/g" $PFILE
11 | sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
12 | sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
13 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
15 | sed -i -e "s/secondary = #.*/secondary = $SC/g" $PFILE
16 | sed -i -e "s/alternate = #.*/alternate = $AL/g" $PFILE
17 |
18 | # rofi
19 | cat > $RFILE <<- EOF
20 | /* colors */
21 |
22 | * {
23 | al: #00000000;
24 | bg: ${BG}FF;
25 | bga: ${AC}33;
26 | bar: ${MF}FF;
27 | fg: ${FG}FF;
28 | ac: ${AC}FF;
29 | }
30 | EOF
31 |
32 | polybar-msg cmd restart
33 | }
34 |
35 | get_random_number() {
36 | RNUM=$(( ($RANDOM % $1) + 1 ))
37 | }
38 |
39 | get_random_color() {
40 | RCOLOR="#"
41 | for i in 1 2 3 4 5 6
42 | do
43 | get_random_number "16"
44 | case $RNUM in
45 | "1") NEXTDIGIT="1";;
46 | "2") NEXTDIGIT="2";;
47 | "3") NEXTDIGIT="3";;
48 | "4") NEXTDIGIT="4";;
49 | "5") NEXTDIGIT="5";;
50 | "6") NEXTDIGIT="6";;
51 | "7") NEXTDIGIT="7";;
52 | "8") NEXTDIGIT="8";;
53 | "9") NEXTDIGIT="9";;
54 | "10") NEXTDIGIT="A";;
55 | "11") NEXTDIGIT="B";;
56 | "12") NEXTDIGIT="C";;
57 | "13") NEXTDIGIT="D";;
58 | "14") NEXTDIGIT="E";;
59 | "15") NEXTDIGIT="F";;
60 | "16") NEXTDIGIT="0";;
61 | esac
62 | RCOLOR="$RCOLOR$NEXTDIGIT"
63 | done
64 | echo $RCOLOR
65 | }
66 |
67 | hex_to_rgb() {
68 | # Convert a hex value WITHOUT the hashtag (#)
69 | R=$(printf "%d" 0x${1:0:2})
70 | G=$(printf "%d" 0x${1:2:2})
71 | B=$(printf "%d" 0x${1:4:2})
72 | }
73 |
74 | get_fg_color(){
75 | INTENSITY=$(calc "$R*0.299 + $G*0.587 + $B*0.114")
76 |
77 | if [ $(echo "$INTENSITY>186" | bc) -eq 1 ]; then
78 | MF="#0a0a0a"
79 | else
80 | MF="#F5F5F5"
81 | fi
82 | }
83 |
84 | # Main
85 | BG='#1F1F1F' # change to light bg
86 | FG='#FFFFFF' # change to dark fg
87 | FGA=`get_random_color`
88 | AC=`get_random_color`
89 | SC=`get_random_color`
90 | AL=`get_random_color`
91 |
92 | HEX=${AC:1}
93 |
94 | hex_to_rgb $HEX
95 | get_fg_color
96 | change_color
97 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/powermenu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Mail : adi1090x@gmail.com
5 | ## Github : @adi1090x
6 | ## Twitter : @adi1090x
7 |
8 | dir="~/.config/polybar/blocks/scripts/rofi"
9 | uptime=$(uptime -p | sed -e 's/up //g')
10 |
11 | rofi_command="rofi -no-config -theme $dir/powermenu.rasi"
12 |
13 | # Options
14 | shutdown=" Shutdown"
15 | reboot=" Restart"
16 | lock=" Lock"
17 | suspend=" Sleep"
18 | logout=" Logout"
19 |
20 | # Confirmation
21 | confirm_exit() {
22 | rofi -dmenu\
23 | -no-config\
24 | -i\
25 | -no-fixed-num-lines\
26 | -p "Are You Sure? : "\
27 | -theme $dir/confirm.rasi
28 | }
29 |
30 | # Message
31 | msg() {
32 | rofi -no-config -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
33 | }
34 |
35 | # Variable passed to rofi
36 | options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
37 |
38 | chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)"
39 | case $chosen in
40 | $shutdown)
41 | ans=$(confirm_exit &)
42 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
43 | systemctl poweroff
44 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
45 | exit 0
46 | else
47 | msg
48 | fi
49 | ;;
50 | $reboot)
51 | ans=$(confirm_exit &)
52 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
53 | systemctl reboot
54 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
55 | exit 0
56 | else
57 | msg
58 | fi
59 | ;;
60 | $lock)
61 | if [[ -f /usr/bin/i3lock ]]; then
62 | i3lock
63 | elif [[ -f /usr/bin/betterlockscreen ]]; then
64 | betterlockscreen -l
65 | fi
66 | ;;
67 | $suspend)
68 | ans=$(confirm_exit &)
69 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
70 | mpc -q pause
71 | amixer set Master mute
72 | systemctl suspend
73 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
74 | exit 0
75 | else
76 | msg
77 | fi
78 | ;;
79 | $logout)
80 | ans=$(confirm_exit &)
81 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
82 | if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
83 | openbox --exit
84 | elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
85 | bspc quit
86 | elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
87 | i3-msg exit
88 | fi
89 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
90 | exit 0
91 | else
92 | msg
93 | fi
94 | ;;
95 | esac
96 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/powermenu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Mail : adi1090x@gmail.com
5 | ## Github : @adi1090x
6 | ## Twitter : @adi1090x
7 |
8 | dir="~/.config/polybar/material/scripts/rofi"
9 | uptime=$(uptime -p | sed -e 's/up //g')
10 |
11 | rofi_command="rofi -no-config -theme $dir/powermenu.rasi"
12 |
13 | # Options
14 | shutdown=" Shutdown"
15 | reboot=" Restart"
16 | lock=" Lock"
17 | suspend=" Sleep"
18 | logout=" Logout"
19 |
20 | # Confirmation
21 | confirm_exit() {
22 | rofi -dmenu\
23 | -no-config\
24 | -i\
25 | -no-fixed-num-lines\
26 | -p "Are You Sure? : "\
27 | -theme $dir/confirm.rasi
28 | }
29 |
30 | # Message
31 | msg() {
32 | rofi -no-config -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
33 | }
34 |
35 | # Variable passed to rofi
36 | options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
37 |
38 | chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)"
39 | case $chosen in
40 | $shutdown)
41 | ans=$(confirm_exit &)
42 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
43 | systemctl poweroff
44 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
45 | exit 0
46 | else
47 | msg
48 | fi
49 | ;;
50 | $reboot)
51 | ans=$(confirm_exit &)
52 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
53 | systemctl reboot
54 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
55 | exit 0
56 | else
57 | msg
58 | fi
59 | ;;
60 | $lock)
61 | if [[ -f /usr/bin/i3lock ]]; then
62 | i3lock
63 | elif [[ -f /usr/bin/betterlockscreen ]]; then
64 | betterlockscreen -l
65 | fi
66 | ;;
67 | $suspend)
68 | ans=$(confirm_exit &)
69 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
70 | mpc -q pause
71 | amixer set Master mute
72 | systemctl suspend
73 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
74 | exit 0
75 | else
76 | msg
77 | fi
78 | ;;
79 | $logout)
80 | ans=$(confirm_exit &)
81 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
82 | if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
83 | openbox --exit
84 | elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
85 | bspc quit
86 | elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
87 | i3-msg exit
88 | fi
89 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
90 | exit 0
91 | else
92 | msg
93 | fi
94 | ;;
95 | esac
96 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/powermenu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Mail : adi1090x@gmail.com
5 | ## Github : @adi1090x
6 | ## Twitter : @adi1090x
7 |
8 | dir="~/.config/polybar/material/scripts/rofi"
9 | uptime=$(uptime -p | sed -e 's/up //g')
10 |
11 | rofi_command="rofi -no-config -theme $dir/powermenu.rasi"
12 |
13 | # Options
14 | shutdown=" Shutdown"
15 | reboot=" Restart"
16 | lock=" Lock"
17 | suspend=" Sleep"
18 | logout=" Logout"
19 |
20 | # Confirmation
21 | confirm_exit() {
22 | rofi -dmenu\
23 | -no-config\
24 | -i\
25 | -no-fixed-num-lines\
26 | -p "Are You Sure? : "\
27 | -theme $dir/confirm.rasi
28 | }
29 |
30 | # Message
31 | msg() {
32 | rofi -no-config -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
33 | }
34 |
35 | # Variable passed to rofi
36 | options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
37 |
38 | chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)"
39 | case $chosen in
40 | $shutdown)
41 | ans=$(confirm_exit &)
42 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
43 | systemctl poweroff
44 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
45 | exit 0
46 | else
47 | msg
48 | fi
49 | ;;
50 | $reboot)
51 | ans=$(confirm_exit &)
52 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
53 | systemctl reboot
54 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
55 | exit 0
56 | else
57 | msg
58 | fi
59 | ;;
60 | $lock)
61 | if [[ -f /usr/bin/i3lock ]]; then
62 | i3lock
63 | elif [[ -f /usr/bin/betterlockscreen ]]; then
64 | betterlockscreen -l
65 | fi
66 | ;;
67 | $suspend)
68 | ans=$(confirm_exit &)
69 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
70 | mpc -q pause
71 | amixer set Master mute
72 | systemctl suspend
73 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
74 | exit 0
75 | else
76 | msg
77 | fi
78 | ;;
79 | $logout)
80 | ans=$(confirm_exit &)
81 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
82 | if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
83 | openbox --exit
84 | elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
85 | bspc quit
86 | elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
87 | i3-msg exit
88 | fi
89 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
90 | exit 0
91 | else
92 | msg
93 | fi
94 | ;;
95 | esac
96 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/powermenu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ## Author : Aditya Shakya
4 | ## Mail : adi1090x@gmail.com
5 | ## Github : @adi1090x
6 | ## Twitter : @adi1090x
7 |
8 | dir="~/.config/polybar/colorblocks/scripts/rofi"
9 | uptime=$(uptime -p | sed -e 's/up //g')
10 |
11 | rofi_command="rofi -no-config -theme $dir/powermenu.rasi"
12 |
13 | # Options
14 | shutdown=" Shutdown"
15 | reboot=" Restart"
16 | lock=" Lock"
17 | suspend=" Sleep"
18 | logout=" Logout"
19 |
20 | # Confirmation
21 | confirm_exit() {
22 | rofi -dmenu\
23 | -no-config\
24 | -i\
25 | -no-fixed-num-lines\
26 | -p "Are You Sure? : "\
27 | -theme $dir/confirm.rasi
28 | }
29 |
30 | # Message
31 | msg() {
32 | rofi -no-config -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
33 | }
34 |
35 | # Variable passed to rofi
36 | options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
37 |
38 | chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)"
39 | case $chosen in
40 | $shutdown)
41 | ans=$(confirm_exit &)
42 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
43 | systemctl poweroff
44 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
45 | exit 0
46 | else
47 | msg
48 | fi
49 | ;;
50 | $reboot)
51 | ans=$(confirm_exit &)
52 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
53 | systemctl reboot
54 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
55 | exit 0
56 | else
57 | msg
58 | fi
59 | ;;
60 | $lock)
61 | if [[ -f /usr/bin/i3lock ]]; then
62 | i3lock
63 | elif [[ -f /usr/bin/betterlockscreen ]]; then
64 | betterlockscreen -l
65 | fi
66 | ;;
67 | $suspend)
68 | ans=$(confirm_exit &)
69 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
70 | mpc -q pause
71 | amixer set Master mute
72 | systemctl suspend
73 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
74 | exit 0
75 | else
76 | msg
77 | fi
78 | ;;
79 | $logout)
80 | ans=$(confirm_exit &)
81 | if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
82 | if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
83 | openbox --exit
84 | elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
85 | bspc quit
86 | elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
87 | i3-msg exit
88 | fi
89 | elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
90 | exit 0
91 | else
92 | msg
93 | fi
94 | ;;
95 | esac
96 |
--------------------------------------------------------------------------------
/config_files/polybar/material/config.ini:
--------------------------------------------------------------------------------
1 | ;; ┌────────────────────────────────────────────────────────────┐
2 | ;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀│
3 | ;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░█░█▀▀░░█░░█░█│
4 | ;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀│
5 | ;; │ │
6 | ;; └────────────────────────────────────────────────────────────┘
7 |
8 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
9 |
10 | ;; Global WM Settings
11 |
12 | [global/wm]
13 | margin-bottom = 0
14 | margin-top = 0
15 | include-file = ~/.config/polybar/material/bars.ini
16 | include-file = ~/.config/polybar/material/colors.ini
17 | include-file = ~/.config/polybar/material/modules.ini
18 | include-file = ~/.config/polybar/material/user_modules.ini
19 | [bar/main]
20 | monitor =
21 | monitor-fallback =
22 | monitor-strict = false
23 | override-redirect = false
24 | bottom = false
25 | fixed-center = true
26 | width = 100%
27 | height = 40
28 | offset-x = 0%
29 | offset-y = 0%
30 | background = ${color.background}
31 | foreground = ${color.foreground}
32 | radius-top = 0.0
33 | radius-bottom = 0.0
34 | line-size = 2
35 | line-color = ${color.primary}
36 | border-size = 3
37 | border-color = ${color.background}
38 | padding = 0
39 | module-margin-left = 1
40 | module-margin-right = 1
41 |
42 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
43 | font-0 = "Fantasque Sans Mono:pixelsize=12;3"
44 | font-1 = "Material\-Design\-Iconic\-Font:size=13;4"
45 | font-2 = "FontAwesome5Free:style=Solid:size=10;4"
46 | font-3 = "FontAwesome5Free:style=Regular:size=10;4"
47 | font-4 = "FontAwesome5Brands:style=Regular:size=10;4"
48 |
49 |
50 | modules-left = launcher workspaces term files browser settings wifi
51 | modules-center = xwindow
52 | modules-right = memory brightnessctl pulseaudio battery network date sysmenu
53 |
54 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
55 | separator =
56 | dim-value = 1.0
57 | wm-name =
58 | locale =
59 | tray-position = none
60 | tray-detached = false
61 | tray-maxsize = 16
62 | tray-background = ${color.background}
63 | tray-offset-x = 0
64 | tray-offset-y = 0
65 | tray-padding = 0
66 | tray-scale = 1.0
67 | wm-restack = bspwm
68 | enable-ipc = true
69 | click-left =
70 | click-middle =
71 | click-right =
72 | scroll-up =
73 | scroll-down =
74 | double-click-left =
75 | double-click-middle =
76 | double-click-right =
77 | cursor-click =
78 | cursor-scroll =
79 |
80 | [settings]
81 | throttle-output = 5
82 | throttle-output-for = 10
83 | screenchange-reload = false
84 | compositing-background = source
85 | compositing-foreground = over
86 | compositing-overline = over
87 | compositing-underline = over
88 | compositing-border = over
89 | pseudo-transparency = false
90 |
91 | ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
92 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/color-switch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | SDIR="$HOME/.config/polybar/material/scripts"
4 |
5 | # Launch Rofi
6 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
7 | -theme $SDIR/rofi/styles.rasi \
8 | <<< "♥ amber|♥ blue|♥ blue-gray|♥ brown|♥ cyan|♥ deep-orange|\
9 | ♥ deep-purple|♥ green|♥ gray|♥ indigo|♥ blue-light|♥ green-light|\
10 | ♥ lime|♥ orange|♥ pink|♥ purple|♥ red|♥ teal|♥ yellow|♥ amber-dark|\
11 | ♥ blue-dark|♥ blue-gray-dark|♥ brown-dark|♥ cyan-dark|♥ deep-orange-dark|\
12 | ♥ deep-purple-dark|♥ green-dark|♥ gray-dark|♥ indigo-dark|♥ blue-light-dark|\
13 | ♥ green-light-dark|♥ lime-dark|♥ orange-dark|♥ pink-dark|♥ purple-dark|♥ red-dark|♥ teal-dark|♥ yellow-dark|")"
14 | case "$MENU" in
15 | ## Light Colors
16 | *amber) "$SDIR"/colors-light.sh --amber ;;
17 | *blue) "$SDIR"/colors-light.sh --blue ;;
18 | *blue-gray) "$SDIR"/colors-light.sh --blue-gray ;;
19 | *brown) "$SDIR"/colors-light.sh --brown ;;
20 | *cyan) "$SDIR"/colors-light.sh --cyan ;;
21 | *deep-orange) "$SDIR"/colors-light.sh --deep-orange ;;
22 | *deep-purple) "$SDIR"/colors-light.sh --deep-purple ;;
23 | *green) "$SDIR"/colors-light.sh --green ;;
24 | *gray) "$SDIR"/colors-light.sh --gray ;;
25 | *indigo) "$SDIR"/colors-light.sh --indigo ;;
26 | *blue-light) "$SDIR"/colors-light.sh --light-blue ;;
27 | *green-light) "$SDIR"/colors-light.sh --light-green ;;
28 | *lime) "$SDIR"/colors-light.sh --lime ;;
29 | *orange) "$SDIR"/colors-light.sh --orange ;;
30 | *pink) "$SDIR"/colors-light.sh --pink ;;
31 | *purple) "$SDIR"/colors-light.sh --purple ;;
32 | *red) "$SDIR"/colors-light.sh --red ;;
33 | *teal) "$SDIR"/colors-light.sh --teal ;;
34 | *yellow) "$SDIR"/colors-light.sh --yellow ;;
35 | ## Dark Colors
36 | *amber-dark) "$SDIR"/colors-dark.sh --amber ;;
37 | *blue-dark) "$SDIR"/colors-dark.sh --blue ;;
38 | *blue-gray-dark) "$SDIR"/colors-dark.sh --blue-gray ;;
39 | *brown-dark) "$SDIR"/colors-dark.sh --brown ;;
40 | *cyan-dark) "$SDIR"/colors-dark.sh --cyan ;;
41 | *deep-orange-dark) "$SDIR"/colors-dark.sh --deep-orange ;;
42 | *deep-purple-dark) "$SDIR"/colors-dark.sh --deep-purple ;;
43 | *green-dark) "$SDIR"/colors-dark.sh --green ;;
44 | *gray-dark) "$SDIR"/colors-dark.sh --gray ;;
45 | *indigo-dark) "$SDIR"/colors-dark.sh --indigo ;;
46 | *blue-light-dark) "$SDIR"/colors-dark.sh --light-blue ;;
47 | *green-light-dark) "$SDIR"/colors-dark.sh --light-green ;;
48 | *lime-dark) "$SDIR"/colors-dark.sh --lime ;;
49 | *orange-dark) "$SDIR"/colors-dark.sh --orange ;;
50 | *pink-dark) "$SDIR"/colors-dark.sh --pink ;;
51 | *purple-dark) "$SDIR"/colors-dark.sh --purple ;;
52 | *red-dark) "$SDIR"/colors-dark.sh --red ;;
53 | *teal-dark) "$SDIR"/colors-dark.sh --teal ;;
54 | *yellow-dark) "$SDIR"/colors-dark.sh --yellow
55 | esac
56 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/color-switch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | SDIR="$HOME/.config/polybar/material/scripts"
4 |
5 | # Launch Rofi
6 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
7 | -theme $SDIR/rofi/styles.rasi \
8 | <<< "♥ amber|♥ blue|♥ blue-gray|♥ brown|♥ cyan|♥ deep-orange|\
9 | ♥ deep-purple|♥ green|♥ gray|♥ indigo|♥ blue-light|♥ green-light|\
10 | ♥ lime|♥ orange|♥ pink|♥ purple|♥ red|♥ teal|♥ yellow|♥ amber-dark|\
11 | ♥ blue-dark|♥ blue-gray-dark|♥ brown-dark|♥ cyan-dark|♥ deep-orange-dark|\
12 | ♥ deep-purple-dark|♥ green-dark|♥ gray-dark|♥ indigo-dark|♥ blue-light-dark|\
13 | ♥ green-light-dark|♥ lime-dark|♥ orange-dark|♥ pink-dark|♥ purple-dark|♥ red-dark|♥ teal-dark|♥ yellow-dark|")"
14 | case "$MENU" in
15 | ## Light Colors
16 | *amber) "$SDIR"/colors-light.sh --amber ;;
17 | *blue) "$SDIR"/colors-light.sh --blue ;;
18 | *blue-gray) "$SDIR"/colors-light.sh --blue-gray ;;
19 | *brown) "$SDIR"/colors-light.sh --brown ;;
20 | *cyan) "$SDIR"/colors-light.sh --cyan ;;
21 | *deep-orange) "$SDIR"/colors-light.sh --deep-orange ;;
22 | *deep-purple) "$SDIR"/colors-light.sh --deep-purple ;;
23 | *green) "$SDIR"/colors-light.sh --green ;;
24 | *gray) "$SDIR"/colors-light.sh --gray ;;
25 | *indigo) "$SDIR"/colors-light.sh --indigo ;;
26 | *blue-light) "$SDIR"/colors-light.sh --light-blue ;;
27 | *green-light) "$SDIR"/colors-light.sh --light-green ;;
28 | *lime) "$SDIR"/colors-light.sh --lime ;;
29 | *orange) "$SDIR"/colors-light.sh --orange ;;
30 | *pink) "$SDIR"/colors-light.sh --pink ;;
31 | *purple) "$SDIR"/colors-light.sh --purple ;;
32 | *red) "$SDIR"/colors-light.sh --red ;;
33 | *teal) "$SDIR"/colors-light.sh --teal ;;
34 | *yellow) "$SDIR"/colors-light.sh --yellow ;;
35 | ## Dark Colors
36 | *amber-dark) "$SDIR"/colors-dark.sh --amber ;;
37 | *blue-dark) "$SDIR"/colors-dark.sh --blue ;;
38 | *blue-gray-dark) "$SDIR"/colors-dark.sh --blue-gray ;;
39 | *brown-dark) "$SDIR"/colors-dark.sh --brown ;;
40 | *cyan-dark) "$SDIR"/colors-dark.sh --cyan ;;
41 | *deep-orange-dark) "$SDIR"/colors-dark.sh --deep-orange ;;
42 | *deep-purple-dark) "$SDIR"/colors-dark.sh --deep-purple ;;
43 | *green-dark) "$SDIR"/colors-dark.sh --green ;;
44 | *gray-dark) "$SDIR"/colors-dark.sh --gray ;;
45 | *indigo-dark) "$SDIR"/colors-dark.sh --indigo ;;
46 | *blue-light-dark) "$SDIR"/colors-dark.sh --light-blue ;;
47 | *green-light-dark) "$SDIR"/colors-dark.sh --light-green ;;
48 | *lime-dark) "$SDIR"/colors-dark.sh --lime ;;
49 | *orange-dark) "$SDIR"/colors-dark.sh --orange ;;
50 | *pink-dark) "$SDIR"/colors-dark.sh --pink ;;
51 | *purple-dark) "$SDIR"/colors-dark.sh --purple ;;
52 | *red-dark) "$SDIR"/colors-dark.sh --red ;;
53 | *teal-dark) "$SDIR"/colors-dark.sh --teal ;;
54 | *yellow-dark) "$SDIR"/colors-dark.sh --yellow
55 | esac
56 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/color-switch.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | SDIR="$HOME/.config/polybar/colorblocks/scripts"
4 |
5 | # Launch Rofi
6 | MENU="$(rofi -no-config -no-lazy-grab -sep "|" -dmenu -i -p '' \
7 | -theme $SDIR/rofi/styles.rasi \
8 | <<< "♥ amber|♥ blue|♥ blue-gray|♥ brown|♥ cyan|♥ deep-orange|\
9 | ♥ deep-purple|♥ green|♥ gray|♥ indigo|♥ blue-light|♥ green-light|\
10 | ♥ lime|♥ orange|♥ pink|♥ purple|♥ red|♥ teal|♥ yellow|♥ amber-dark|\
11 | ♥ blue-dark|♥ blue-gray-dark|♥ brown-dark|♥ cyan-dark|♥ deep-orange-dark|\
12 | ♥ deep-purple-dark|♥ green-dark|♥ gray-dark|♥ indigo-dark|♥ blue-light-dark|\
13 | ♥ green-light-dark|♥ lime-dark|♥ orange-dark|♥ pink-dark|♥ purple-dark|♥ red-dark|♥ teal-dark|♥ yellow-dark|")"
14 | case "$MENU" in
15 | ## Light Colors
16 | *amber) "$SDIR"/colors-light.sh --amber ;;
17 | *blue) "$SDIR"/colors-light.sh --blue ;;
18 | *blue-gray) "$SDIR"/colors-light.sh --blue-gray ;;
19 | *brown) "$SDIR"/colors-light.sh --brown ;;
20 | *cyan) "$SDIR"/colors-light.sh --cyan ;;
21 | *deep-orange) "$SDIR"/colors-light.sh --deep-orange ;;
22 | *deep-purple) "$SDIR"/colors-light.sh --deep-purple ;;
23 | *green) "$SDIR"/colors-light.sh --green ;;
24 | *gray) "$SDIR"/colors-light.sh --gray ;;
25 | *indigo) "$SDIR"/colors-light.sh --indigo ;;
26 | *blue-light) "$SDIR"/colors-light.sh --light-blue ;;
27 | *green-light) "$SDIR"/colors-light.sh --light-green ;;
28 | *lime) "$SDIR"/colors-light.sh --lime ;;
29 | *orange) "$SDIR"/colors-light.sh --orange ;;
30 | *pink) "$SDIR"/colors-light.sh --pink ;;
31 | *purple) "$SDIR"/colors-light.sh --purple ;;
32 | *red) "$SDIR"/colors-light.sh --red ;;
33 | *teal) "$SDIR"/colors-light.sh --teal ;;
34 | *yellow) "$SDIR"/colors-light.sh --yellow ;;
35 | ## Dark Colors
36 | *amber-dark) "$SDIR"/colors-dark.sh --amber ;;
37 | *blue-dark) "$SDIR"/colors-dark.sh --blue ;;
38 | *blue-gray-dark) "$SDIR"/colors-dark.sh --blue-gray ;;
39 | *brown-dark) "$SDIR"/colors-dark.sh --brown ;;
40 | *cyan-dark) "$SDIR"/colors-dark.sh --cyan ;;
41 | *deep-orange-dark) "$SDIR"/colors-dark.sh --deep-orange ;;
42 | *deep-purple-dark) "$SDIR"/colors-dark.sh --deep-purple ;;
43 | *green-dark) "$SDIR"/colors-dark.sh --green ;;
44 | *gray-dark) "$SDIR"/colors-dark.sh --gray ;;
45 | *indigo-dark) "$SDIR"/colors-dark.sh --indigo ;;
46 | *blue-light-dark) "$SDIR"/colors-dark.sh --light-blue ;;
47 | *green-light-dark) "$SDIR"/colors-dark.sh --light-green ;;
48 | *lime-dark) "$SDIR"/colors-dark.sh --lime ;;
49 | *orange-dark) "$SDIR"/colors-dark.sh --orange ;;
50 | *pink-dark) "$SDIR"/colors-dark.sh --pink ;;
51 | *purple-dark) "$SDIR"/colors-dark.sh --purple ;;
52 | *red-dark) "$SDIR"/colors-dark.sh --red ;;
53 | *teal-dark) "$SDIR"/colors-dark.sh --teal ;;
54 | *yellow-dark) "$SDIR"/colors-dark.sh --yellow
55 | esac
56 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/colors-dark.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e 's/background = #.*/background = #1F1F1F/g' $PFILE
11 | sed -i -e 's/foreground = #.*/foreground = #FFFFFF/g' $PFILE
12 | sed -i -e 's/foreground-alt = #.*/foreground-alt = #8F8F8F/g' $PFILE
13 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
15 | sed -i -e 's/secondary = #.*/secondary = #E53935/g' $PFILE
16 | sed -i -e 's/alternate = #.*/alternate = #7cb342/g' $PFILE
17 |
18 | # rofi
19 | cat > $RFILE <<- EOF
20 | /* colors */
21 |
22 | * {
23 | al: #00000000;
24 | bg: #1F1F1FFF;
25 | bga: ${AC}33;
26 | bar: ${MF}FF;
27 | fg: #FFFFFFFF;
28 | ac: ${AC}FF;
29 | }
30 | EOF
31 |
32 | polybar-msg cmd restart
33 | }
34 |
35 | if [[ $1 = "--amber" ]]; then
36 | MF="#1F1F1F"
37 | AC="#ffb300"
38 | change_color
39 | elif [[ $1 = "--blue" ]]; then
40 | MF="#FFFFFF"
41 | AC="#1e88e5"
42 | change_color
43 | elif [[ $1 = "--blue-gray" ]]; then
44 | MF="#FFFFFF"
45 | AC="#546e7a"
46 | change_color
47 | elif [[ $1 = "--brown" ]]; then
48 | MF="#FFFFFF"
49 | AC="#6d4c41"
50 | change_color
51 | elif [[ $1 = "--cyan" ]]; then
52 | MF="#1F1F1F"
53 | AC="#00acc1"
54 | change_color
55 | elif [[ $1 = "--deep-orange" ]]; then
56 | MF="#FFFFFF"
57 | AC="#f4511e"
58 | change_color
59 | elif [[ $1 = "--deep-purple" ]]; then
60 | MF="#FFFFFF"
61 | AC="#5e35b1"
62 | change_color
63 | elif [[ $1 = "--green" ]]; then
64 | MF="#FFFFFF"
65 | AC="#43a047"
66 | change_color
67 | elif [[ $1 = "--gray" ]]; then
68 | MF="#FFFFFF"
69 | AC="#757575"
70 | change_color
71 | elif [[ $1 = "--indigo" ]]; then
72 | MF="#FFFFFF"
73 | AC="#3949ab"
74 | change_color
75 | elif [[ $1 = "--light-blue" ]]; then
76 | MF="#1F1F1F"
77 | AC="#039be5"
78 | change_color
79 | elif [[ $1 = "--light-green" ]]; then
80 | MF="#1F1F1F"
81 | AC="#7cb342"
82 | change_color
83 | elif [[ $1 = "--lime" ]]; then
84 | MF="#1F1F1F"
85 | AC="#c0ca33"
86 | change_color
87 | elif [[ $1 = "--orange" ]]; then
88 | MF="#1F1F1F"
89 | AC="#fb8c00"
90 | change_color
91 | elif [[ $1 = "--pink" ]]; then
92 | MF="#FFFFFF"
93 | AC="#d81b60"
94 | change_color
95 | elif [[ $1 = "--purple" ]]; then
96 | MF="#FFFFFF"
97 | AC="#8e24aa"
98 | change_color
99 | elif [[ $1 = "--red" ]]; then
100 | MF="#FFFFFF"
101 | AC="#e53935"
102 | change_color
103 | elif [[ $1 = "--teal" ]]; then
104 | MF="#FFFFFF"
105 | AC="#00897b"
106 | change_color
107 | elif [[ $1 = "--yellow" ]]; then
108 | MF="#1F1F1F"
109 | AC="#fdd835"
110 | change_color
111 | else
112 | cat <<- _EOF_
113 | No option specified, Available options:
114 | --amber --blue --blue-gray --brown
115 | --cyan --deep-orange --deep-purple --green
116 | --gray --indigo --light-blue --light-green
117 | --lime --orange --pink --purple
118 | --red --teal --yellow
119 | _EOF_
120 | fi
121 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/colors-light.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e 's/background = #.*/background = #FFFFFF/g' $PFILE
11 | sed -i -e 's/foreground = #.*/foreground = #2E2E2E/g' $PFILE
12 | sed -i -e 's/foreground-alt = #.*/foreground-alt = #656565/g' $PFILE
13 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
15 | sed -i -e 's/secondary = #.*/secondary = #E53935/g' $PFILE
16 | sed -i -e 's/alternate = #.*/alternate = #7cb342/g' $PFILE
17 |
18 | # rofi
19 | cat > $RFILE <<- EOF
20 | /* colors */
21 |
22 | * {
23 | al: #00000000;
24 | bg: #FFFFFFFF;
25 | bga: ${AC}33;
26 | bar: ${MF}FF;
27 | fg: #2E2E2EFF;
28 | ac: ${AC}FF;
29 | }
30 | EOF
31 |
32 | polybar-msg cmd restart
33 | }
34 |
35 | if [[ $1 = "--amber" ]]; then
36 | MF="#2E2E2E"
37 | AC="#ffb300"
38 | change_color
39 | elif [[ $1 = "--blue" ]]; then
40 | MF="#2E2E2E"
41 | AC="#1e88e5"
42 | change_color
43 | elif [[ $1 = "--blue-gray" ]]; then
44 | MF="#FFFFFF"
45 | AC="#546e7a"
46 | change_color
47 | elif [[ $1 = "--brown" ]]; then
48 | MF="#FFFFFF"
49 | AC="#6d4c41"
50 | change_color
51 | elif [[ $1 = "--cyan" ]]; then
52 | MF="#2E2E2E"
53 | AC="#00acc1"
54 | change_color
55 | elif [[ $1 = "--deep-orange" ]]; then
56 | MF="#FFFFFF"
57 | AC="#f4511e"
58 | change_color
59 | elif [[ $1 = "--deep-purple" ]]; then
60 | MF="#FFFFFF"
61 | AC="#5e35b1"
62 | change_color
63 | elif [[ $1 = "--green" ]]; then
64 | MF="#FFFFFF"
65 | AC="#43a047"
66 | change_color
67 | elif [[ $1 = "--gray" ]]; then
68 | MF="#FFFFFF"
69 | AC="#757575"
70 | change_color
71 | elif [[ $1 = "--indigo" ]]; then
72 | MF="#FFFFFF"
73 | AC="#3949ab"
74 | change_color
75 | elif [[ $1 = "--light-blue" ]]; then
76 | MF="#2E2E2E"
77 | AC="#039be5"
78 | change_color
79 | elif [[ $1 = "--light-green" ]]; then
80 | MF="#2E2E2E"
81 | AC="#7cb342"
82 | change_color
83 | elif [[ $1 = "--lime" ]]; then
84 | MF="#2E2E2E"
85 | AC="#c0ca33"
86 | change_color
87 | elif [[ $1 = "--orange" ]]; then
88 | MF="#2E2E2E"
89 | AC="#fb8c00"
90 | change_color
91 | elif [[ $1 = "--pink" ]]; then
92 | MF="#FFFFFF"
93 | AC="#d81b60"
94 | change_color
95 | elif [[ $1 = "--purple" ]]; then
96 | MF="#FFFFFF"
97 | AC="#8e24aa"
98 | change_color
99 | elif [[ $1 = "--red" ]]; then
100 | MF="#FFFFFF"
101 | AC="#e53935"
102 | change_color
103 | elif [[ $1 = "--teal" ]]; then
104 | MF="#FFFFFF"
105 | AC="#00897b"
106 | change_color
107 | elif [[ $1 = "--yellow" ]]; then
108 | MF="#2E2E2E"
109 | AC="#fdd835"
110 | change_color
111 | else
112 | cat <<- _EOF_
113 | No option specified, Available options:
114 | --amber --blue --blue-gray --brown
115 | --cyan --deep-orange --deep-purple --green
116 | --gray --indigo --light-blue --light-green
117 | --lime --orange --pink --purple
118 | --red --teal --yellow
119 | _EOF_
120 | fi
121 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/colors-dark.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e 's/background = #.*/background = #1F1F1F/g' $PFILE
11 | sed -i -e 's/foreground = #.*/foreground = #FFFFFF/g' $PFILE
12 | sed -i -e 's/foreground-alt = #.*/foreground-alt = #8F8F8F/g' $PFILE
13 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
15 | sed -i -e 's/secondary = #.*/secondary = #E53935/g' $PFILE
16 | sed -i -e 's/alternate = #.*/alternate = #7cb342/g' $PFILE
17 |
18 | # rofi
19 | cat > $RFILE <<- EOF
20 | /* colors */
21 |
22 | * {
23 | al: #00000000;
24 | bg: #1F1F1FFF;
25 | bga: ${AC}33;
26 | bar: ${MF}FF;
27 | fg: #FFFFFFFF;
28 | ac: ${AC}FF;
29 | }
30 | EOF
31 |
32 | polybar-msg cmd restart
33 | }
34 |
35 | if [[ $1 = "--amber" ]]; then
36 | MF="#1F1F1F"
37 | AC="#ffb300"
38 | change_color
39 | elif [[ $1 = "--blue" ]]; then
40 | MF="#FFFFFF"
41 | AC="#1e88e5"
42 | change_color
43 | elif [[ $1 = "--blue-gray" ]]; then
44 | MF="#FFFFFF"
45 | AC="#546e7a"
46 | change_color
47 | elif [[ $1 = "--brown" ]]; then
48 | MF="#FFFFFF"
49 | AC="#6d4c41"
50 | change_color
51 | elif [[ $1 = "--cyan" ]]; then
52 | MF="#1F1F1F"
53 | AC="#00acc1"
54 | change_color
55 | elif [[ $1 = "--deep-orange" ]]; then
56 | MF="#FFFFFF"
57 | AC="#f4511e"
58 | change_color
59 | elif [[ $1 = "--deep-purple" ]]; then
60 | MF="#FFFFFF"
61 | AC="#5e35b1"
62 | change_color
63 | elif [[ $1 = "--green" ]]; then
64 | MF="#FFFFFF"
65 | AC="#43a047"
66 | change_color
67 | elif [[ $1 = "--gray" ]]; then
68 | MF="#FFFFFF"
69 | AC="#757575"
70 | change_color
71 | elif [[ $1 = "--indigo" ]]; then
72 | MF="#FFFFFF"
73 | AC="#3949ab"
74 | change_color
75 | elif [[ $1 = "--light-blue" ]]; then
76 | MF="#1F1F1F"
77 | AC="#039be5"
78 | change_color
79 | elif [[ $1 = "--light-green" ]]; then
80 | MF="#1F1F1F"
81 | AC="#7cb342"
82 | change_color
83 | elif [[ $1 = "--lime" ]]; then
84 | MF="#1F1F1F"
85 | AC="#c0ca33"
86 | change_color
87 | elif [[ $1 = "--orange" ]]; then
88 | MF="#1F1F1F"
89 | AC="#fb8c00"
90 | change_color
91 | elif [[ $1 = "--pink" ]]; then
92 | MF="#FFFFFF"
93 | AC="#d81b60"
94 | change_color
95 | elif [[ $1 = "--purple" ]]; then
96 | MF="#FFFFFF"
97 | AC="#8e24aa"
98 | change_color
99 | elif [[ $1 = "--red" ]]; then
100 | MF="#FFFFFF"
101 | AC="#e53935"
102 | change_color
103 | elif [[ $1 = "--teal" ]]; then
104 | MF="#FFFFFF"
105 | AC="#00897b"
106 | change_color
107 | elif [[ $1 = "--yellow" ]]; then
108 | MF="#1F1F1F"
109 | AC="#fdd835"
110 | change_color
111 | else
112 | cat <<- _EOF_
113 | No option specified, Available options:
114 | --amber --blue --blue-gray --brown
115 | --cyan --deep-orange --deep-purple --green
116 | --gray --indigo --light-blue --light-green
117 | --lime --orange --pink --purple
118 | --red --teal --yellow
119 | _EOF_
120 | fi
121 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/colors-light.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Color files
4 | PFILE="$HOME/.config/polybar/material/colors.ini"
5 | RFILE="$HOME/.config/polybar/material/scripts/rofi/colors.rasi"
6 |
7 | # Change colors
8 | change_color() {
9 | # polybar
10 | sed -i -e 's/background = #.*/background = #FFFFFF/g' $PFILE
11 | sed -i -e 's/foreground = #.*/foreground = #2E2E2E/g' $PFILE
12 | sed -i -e 's/foreground-alt = #.*/foreground-alt = #656565/g' $PFILE
13 | sed -i -e "s/module-fg = #.*/module-fg = $MF/g" $PFILE
14 | sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
15 | sed -i -e 's/secondary = #.*/secondary = #E53935/g' $PFILE
16 | sed -i -e 's/alternate = #.*/alternate = #7cb342/g' $PFILE
17 |
18 | # rofi
19 | cat > $RFILE <<- EOF
20 | /* colors */
21 |
22 | * {
23 | al: #00000000;
24 | bg: #FFFFFFFF;
25 | bga: ${AC}33;
26 | bar: ${MF}FF;
27 | fg: #2E2E2EFF;
28 | ac: ${AC}FF;
29 | }
30 | EOF
31 |
32 | polybar-msg cmd restart
33 | }
34 |
35 | if [[ $1 = "--amber" ]]; then
36 | MF="#2E2E2E"
37 | AC="#ffb300"
38 | change_color
39 | elif [[ $1 = "--blue" ]]; then
40 | MF="#2E2E2E"
41 | AC="#1e88e5"
42 | change_color
43 | elif [[ $1 = "--blue-gray" ]]; then
44 | MF="#FFFFFF"
45 | AC="#546e7a"
46 | change_color
47 | elif [[ $1 = "--brown" ]]; then
48 | MF="#FFFFFF"
49 | AC="#6d4c41"
50 | change_color
51 | elif [[ $1 = "--cyan" ]]; then
52 | MF="#2E2E2E"
53 | AC="#00acc1"
54 | change_color
55 | elif [[ $1 = "--deep-orange" ]]; then
56 | MF="#FFFFFF"
57 | AC="#f4511e"
58 | change_color
59 | elif [[ $1 = "--deep-purple" ]]; then
60 | MF="#FFFFFF"
61 | AC="#5e35b1"
62 | change_color
63 | elif [[ $1 = "--green" ]]; then
64 | MF="#FFFFFF"
65 | AC="#43a047"
66 | change_color
67 | elif [[ $1 = "--gray" ]]; then
68 | MF="#FFFFFF"
69 | AC="#757575"
70 | change_color
71 | elif [[ $1 = "--indigo" ]]; then
72 | MF="#FFFFFF"
73 | AC="#3949ab"
74 | change_color
75 | elif [[ $1 = "--light-blue" ]]; then
76 | MF="#2E2E2E"
77 | AC="#039be5"
78 | change_color
79 | elif [[ $1 = "--light-green" ]]; then
80 | MF="#2E2E2E"
81 | AC="#7cb342"
82 | change_color
83 | elif [[ $1 = "--lime" ]]; then
84 | MF="#2E2E2E"
85 | AC="#c0ca33"
86 | change_color
87 | elif [[ $1 = "--orange" ]]; then
88 | MF="#2E2E2E"
89 | AC="#fb8c00"
90 | change_color
91 | elif [[ $1 = "--pink" ]]; then
92 | MF="#FFFFFF"
93 | AC="#d81b60"
94 | change_color
95 | elif [[ $1 = "--purple" ]]; then
96 | MF="#FFFFFF"
97 | AC="#8e24aa"
98 | change_color
99 | elif [[ $1 = "--red" ]]; then
100 | MF="#FFFFFF"
101 | AC="#e53935"
102 | change_color
103 | elif [[ $1 = "--teal" ]]; then
104 | MF="#FFFFFF"
105 | AC="#00897b"
106 | change_color
107 | elif [[ $1 = "--yellow" ]]; then
108 | MF="#2E2E2E"
109 | AC="#fdd835"
110 | change_color
111 | else
112 | cat <<- _EOF_
113 | No option specified, Available options:
114 | --amber --blue --blue-gray --brown
115 | --cyan --deep-orange --deep-purple --green
116 | --gray --indigo --light-blue --light-green
117 | --lime --orange --pink --purple
118 | --red --teal --yellow
119 | _EOF_
120 | fi
121 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/checkupdates:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 | #
3 | # checkupdates: Safely print a list of pending updates.
4 | #
5 | # Copyright (c) 2013 Kyle Keen
6 | #
7 | # This program is free software; you can redistribute it and/or modify
8 | # it under the terms of the GNU General Public License as published by
9 | # the Free Software Foundation; either version 2 of the License, or
10 | # (at your option) any later version.
11 | #
12 | # This program is distributed in the hope that it will be useful,
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # GNU General Public License for more details.
16 | #
17 | # You should have received a copy of the GNU General Public License
18 | # along with this program. If not, see .
19 | #
20 |
21 | declare -r myname='checkupdates'
22 | declare -r myver='1.0.0'
23 |
24 | plain() {
25 | (( QUIET )) && return
26 | local mesg=$1; shift
27 | printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
28 | }
29 |
30 | msg() {
31 | (( QUIET )) && return
32 | local mesg=$1; shift
33 | printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
34 | }
35 |
36 | msg2() {
37 | (( QUIET )) && return
38 | local mesg=$1; shift
39 | printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
40 | }
41 |
42 | ask() {
43 | local mesg=$1; shift
44 | printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
45 | }
46 |
47 | warning() {
48 | local mesg=$1; shift
49 | printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
50 | }
51 |
52 | error() {
53 | local mesg=$1; shift
54 | printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
55 | }
56 |
57 | # check if messages are to be printed using color
58 | unset ALL_OFF BOLD BLUE GREEN RED YELLOW
59 | if [[ -t 2 && ! $USE_COLOR = "n" ]]; then
60 | # prefer terminal safe colored and bold text when tput is supported
61 | if tput setaf 0 &>/dev/null; then
62 | ALL_OFF="$(tput sgr0)"
63 | BOLD="$(tput bold)"
64 | BLUE="${BOLD}$(tput setaf 4)"
65 | GREEN="${BOLD}$(tput setaf 2)"
66 | RED="${BOLD}$(tput setaf 1)"
67 | YELLOW="${BOLD}$(tput setaf 3)"
68 | else
69 | ALL_OFF="\e[1;0m"
70 | BOLD="\e[1;1m"
71 | BLUE="${BOLD}\e[1;34m"
72 | GREEN="${BOLD}\e[1;32m"
73 | RED="${BOLD}\e[1;31m"
74 | YELLOW="${BOLD}\e[1;33m"
75 | fi
76 | fi
77 | readonly ALL_OFF BOLD BLUE GREEN RED YELLOW
78 |
79 |
80 | if (( $# > 0 )); then
81 | echo "${myname} v${myver}"
82 | echo
83 | echo "Safely print a list of pending updates"
84 | echo
85 | echo "Usage: ${myname}"
86 | echo
87 | echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.'
88 | exit 0
89 | fi
90 |
91 | if ! type -P fakeroot >/dev/null; then
92 | error 'Cannot find the fakeroot binary.'
93 | exit 1
94 | fi
95 |
96 | if [[ -z $CHECKUPDATES_DB ]]; then
97 | CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/"
98 | fi
99 |
100 | trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT
101 |
102 | DBPath="$(pacman-conf DBPath)"
103 | if [[ -z "$DBPath" ]] || [[ ! -d "$DBPath" ]]; then
104 | DBPath="/var/lib/pacman/"
105 | fi
106 |
107 | mkdir -p "$CHECKUPDATES_DB"
108 | ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
109 | if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null; then
110 | error 'Cannot fetch updates'
111 | exit 1
112 | fi
113 | pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'
114 |
115 | exit 0
116 |
117 | # vim: set noet:
118 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/checkupdates:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 | #
3 | # checkupdates: Safely print a list of pending updates.
4 | #
5 | # Copyright (c) 2013 Kyle Keen
6 | #
7 | # This program is free software; you can redistribute it and/or modify
8 | # it under the terms of the GNU General Public License as published by
9 | # the Free Software Foundation; either version 2 of the License, or
10 | # (at your option) any later version.
11 | #
12 | # This program is distributed in the hope that it will be useful,
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # GNU General Public License for more details.
16 | #
17 | # You should have received a copy of the GNU General Public License
18 | # along with this program. If not, see .
19 | #
20 |
21 | declare -r myname='checkupdates'
22 | declare -r myver='1.0.0'
23 |
24 | plain() {
25 | (( QUIET )) && return
26 | local mesg=$1; shift
27 | printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
28 | }
29 |
30 | msg() {
31 | (( QUIET )) && return
32 | local mesg=$1; shift
33 | printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
34 | }
35 |
36 | msg2() {
37 | (( QUIET )) && return
38 | local mesg=$1; shift
39 | printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
40 | }
41 |
42 | ask() {
43 | local mesg=$1; shift
44 | printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
45 | }
46 |
47 | warning() {
48 | local mesg=$1; shift
49 | printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
50 | }
51 |
52 | error() {
53 | local mesg=$1; shift
54 | printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
55 | }
56 |
57 | # check if messages are to be printed using color
58 | unset ALL_OFF BOLD BLUE GREEN RED YELLOW
59 | if [[ -t 2 && ! $USE_COLOR = "n" ]]; then
60 | # prefer terminal safe colored and bold text when tput is supported
61 | if tput setaf 0 &>/dev/null; then
62 | ALL_OFF="$(tput sgr0)"
63 | BOLD="$(tput bold)"
64 | BLUE="${BOLD}$(tput setaf 4)"
65 | GREEN="${BOLD}$(tput setaf 2)"
66 | RED="${BOLD}$(tput setaf 1)"
67 | YELLOW="${BOLD}$(tput setaf 3)"
68 | else
69 | ALL_OFF="\e[1;0m"
70 | BOLD="\e[1;1m"
71 | BLUE="${BOLD}\e[1;34m"
72 | GREEN="${BOLD}\e[1;32m"
73 | RED="${BOLD}\e[1;31m"
74 | YELLOW="${BOLD}\e[1;33m"
75 | fi
76 | fi
77 | readonly ALL_OFF BOLD BLUE GREEN RED YELLOW
78 |
79 |
80 | if (( $# > 0 )); then
81 | echo "${myname} v${myver}"
82 | echo
83 | echo "Safely print a list of pending updates"
84 | echo
85 | echo "Usage: ${myname}"
86 | echo
87 | echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.'
88 | exit 0
89 | fi
90 |
91 | if ! type -P fakeroot >/dev/null; then
92 | error 'Cannot find the fakeroot binary.'
93 | exit 1
94 | fi
95 |
96 | if [[ -z $CHECKUPDATES_DB ]]; then
97 | CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/"
98 | fi
99 |
100 | trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT
101 |
102 | DBPath="$(pacman-conf DBPath)"
103 | if [[ -z "$DBPath" ]] || [[ ! -d "$DBPath" ]]; then
104 | DBPath="/var/lib/pacman/"
105 | fi
106 |
107 | mkdir -p "$CHECKUPDATES_DB"
108 | ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
109 | if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null; then
110 | error 'Cannot fetch updates'
111 | exit 1
112 | fi
113 | pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'
114 |
115 | exit 0
116 |
117 | # vim: set noet:
118 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/checkupdates:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 | #
3 | # checkupdates: Safely print a list of pending updates.
4 | #
5 | # Copyright (c) 2013 Kyle Keen
6 | #
7 | # This program is free software; you can redistribute it and/or modify
8 | # it under the terms of the GNU General Public License as published by
9 | # the Free Software Foundation; either version 2 of the License, or
10 | # (at your option) any later version.
11 | #
12 | # This program is distributed in the hope that it will be useful,
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # GNU General Public License for more details.
16 | #
17 | # You should have received a copy of the GNU General Public License
18 | # along with this program. If not, see .
19 | #
20 |
21 | declare -r myname='checkupdates'
22 | declare -r myver='1.0.0'
23 |
24 | plain() {
25 | (( QUIET )) && return
26 | local mesg=$1; shift
27 | printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
28 | }
29 |
30 | msg() {
31 | (( QUIET )) && return
32 | local mesg=$1; shift
33 | printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
34 | }
35 |
36 | msg2() {
37 | (( QUIET )) && return
38 | local mesg=$1; shift
39 | printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
40 | }
41 |
42 | ask() {
43 | local mesg=$1; shift
44 | printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
45 | }
46 |
47 | warning() {
48 | local mesg=$1; shift
49 | printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
50 | }
51 |
52 | error() {
53 | local mesg=$1; shift
54 | printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
55 | }
56 |
57 | # check if messages are to be printed using color
58 | unset ALL_OFF BOLD BLUE GREEN RED YELLOW
59 | if [[ -t 2 && ! $USE_COLOR = "n" ]]; then
60 | # prefer terminal safe colored and bold text when tput is supported
61 | if tput setaf 0 &>/dev/null; then
62 | ALL_OFF="$(tput sgr0)"
63 | BOLD="$(tput bold)"
64 | BLUE="${BOLD}$(tput setaf 4)"
65 | GREEN="${BOLD}$(tput setaf 2)"
66 | RED="${BOLD}$(tput setaf 1)"
67 | YELLOW="${BOLD}$(tput setaf 3)"
68 | else
69 | ALL_OFF="\e[1;0m"
70 | BOLD="\e[1;1m"
71 | BLUE="${BOLD}\e[1;34m"
72 | GREEN="${BOLD}\e[1;32m"
73 | RED="${BOLD}\e[1;31m"
74 | YELLOW="${BOLD}\e[1;33m"
75 | fi
76 | fi
77 | readonly ALL_OFF BOLD BLUE GREEN RED YELLOW
78 |
79 |
80 | if (( $# > 0 )); then
81 | echo "${myname} v${myver}"
82 | echo
83 | echo "Safely print a list of pending updates"
84 | echo
85 | echo "Usage: ${myname}"
86 | echo
87 | echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.'
88 | exit 0
89 | fi
90 |
91 | if ! type -P fakeroot >/dev/null; then
92 | error 'Cannot find the fakeroot binary.'
93 | exit 1
94 | fi
95 |
96 | if [[ -z $CHECKUPDATES_DB ]]; then
97 | CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/"
98 | fi
99 |
100 | trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT
101 |
102 | DBPath="$(pacman-conf DBPath)"
103 | if [[ -z "$DBPath" ]] || [[ ! -d "$DBPath" ]]; then
104 | DBPath="/var/lib/pacman/"
105 | fi
106 |
107 | mkdir -p "$CHECKUPDATES_DB"
108 | ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
109 | if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null; then
110 | error 'Cannot fetch updates'
111 | exit 1
112 | fi
113 | pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'
114 |
115 | exit 0
116 |
117 | # vim: set noet:
118 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/checkupdates:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 | #
3 | # checkupdates: Safely print a list of pending updates.
4 | #
5 | # Copyright (c) 2013 Kyle Keen
6 | #
7 | # This program is free software; you can redistribute it and/or modify
8 | # it under the terms of the GNU General Public License as published by
9 | # the Free Software Foundation; either version 2 of the License, or
10 | # (at your option) any later version.
11 | #
12 | # This program is distributed in the hope that it will be useful,
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 | # GNU General Public License for more details.
16 | #
17 | # You should have received a copy of the GNU General Public License
18 | # along with this program. If not, see .
19 | #
20 |
21 | declare -r myname='checkupdates'
22 | declare -r myver='1.0.0'
23 |
24 | plain() {
25 | (( QUIET )) && return
26 | local mesg=$1; shift
27 | printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
28 | }
29 |
30 | msg() {
31 | (( QUIET )) && return
32 | local mesg=$1; shift
33 | printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
34 | }
35 |
36 | msg2() {
37 | (( QUIET )) && return
38 | local mesg=$1; shift
39 | printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
40 | }
41 |
42 | ask() {
43 | local mesg=$1; shift
44 | printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
45 | }
46 |
47 | warning() {
48 | local mesg=$1; shift
49 | printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
50 | }
51 |
52 | error() {
53 | local mesg=$1; shift
54 | printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
55 | }
56 |
57 | # check if messages are to be printed using color
58 | unset ALL_OFF BOLD BLUE GREEN RED YELLOW
59 | if [[ -t 2 && ! $USE_COLOR = "n" ]]; then
60 | # prefer terminal safe colored and bold text when tput is supported
61 | if tput setaf 0 &>/dev/null; then
62 | ALL_OFF="$(tput sgr0)"
63 | BOLD="$(tput bold)"
64 | BLUE="${BOLD}$(tput setaf 4)"
65 | GREEN="${BOLD}$(tput setaf 2)"
66 | RED="${BOLD}$(tput setaf 1)"
67 | YELLOW="${BOLD}$(tput setaf 3)"
68 | else
69 | ALL_OFF="\e[1;0m"
70 | BOLD="\e[1;1m"
71 | BLUE="${BOLD}\e[1;34m"
72 | GREEN="${BOLD}\e[1;32m"
73 | RED="${BOLD}\e[1;31m"
74 | YELLOW="${BOLD}\e[1;33m"
75 | fi
76 | fi
77 | readonly ALL_OFF BOLD BLUE GREEN RED YELLOW
78 |
79 |
80 | if (( $# > 0 )); then
81 | echo "${myname} v${myver}"
82 | echo
83 | echo "Safely print a list of pending updates"
84 | echo
85 | echo "Usage: ${myname}"
86 | echo
87 | echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.'
88 | exit 0
89 | fi
90 |
91 | if ! type -P fakeroot >/dev/null; then
92 | error 'Cannot find the fakeroot binary.'
93 | exit 1
94 | fi
95 |
96 | if [[ -z $CHECKUPDATES_DB ]]; then
97 | CHECKUPDATES_DB="${TMPDIR:-/tmp}/checkup-db-${USER}/"
98 | fi
99 |
100 | trap 'rm -f $CHECKUPDATES_DB/db.lck' INT TERM EXIT
101 |
102 | DBPath="$(pacman-conf DBPath)"
103 | if [[ -z "$DBPath" ]] || [[ ! -d "$DBPath" ]]; then
104 | DBPath="/var/lib/pacman/"
105 | fi
106 |
107 | mkdir -p "$CHECKUPDATES_DB"
108 | ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
109 | if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null; then
110 | error 'Cannot fetch updates'
111 | exit 1
112 | fi
113 | pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'
114 |
115 | exit 0
116 |
117 | # vim: set noet:
118 |
--------------------------------------------------------------------------------
/dotconfig/sxhkd/sxhkdrc:
--------------------------------------------------------------------------------
1 | #
2 | # wm independent hotkeys
3 | #
4 |
5 | # terminal emulator
6 | super + Return
7 | alacritty
8 |
9 | # program launcher
10 | super + @space
11 | dmenu_run
12 |
13 | # make sxhkd reload its configuration files:
14 | super + Escape
15 | pkill -USR1 -x sxhkd
16 |
17 | # configuring my custom keys
18 |
19 | # To launch Brave Browser
20 | super + b
21 | brave
22 |
23 | # To launch rofi
24 | super + r
25 | rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/polybar/material/scripts/rofi/launcher.rasi
26 | # To launch flameshot
27 | Print
28 | flameshot gui
29 | # bspwm hotkeys
30 | #
31 |
32 | # quit/restart bspwm
33 | super + alt + {q,r}
34 | bspc {quit,wm -r}
35 |
36 | # close and kill
37 | super + {_,shift + }w
38 | bspc node -{c,k}
39 |
40 | # alternate between the tiled and monocle layout
41 | super + m
42 | bspc desktop -l next
43 |
44 | # send the newest marked node to the newest preselected node
45 | super + y
46 | bspc node newest.marked.local -n newest.!automatic.local
47 |
48 | # swap the current node and the biggest window
49 | super + g
50 | bspc node -s biggest.window
51 |
52 | #
53 | # state/flags
54 | #
55 |
56 | # set the window state
57 | super + {t,shift + t,s,f}
58 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
59 |
60 | # set the node flags
61 | super + ctrl + {m,x,y,z}
62 | bspc node -g {marked,locked,sticky,private}
63 |
64 | #
65 | # focus/swap
66 | #
67 |
68 | # focus the node in the given direction
69 | super + {_,shift + }{h,j,k,l}
70 | bspc node -{f,s} {west,south,north,east}
71 |
72 | # focus the node for the given path jump
73 | super + {p,b,comma,period}
74 | bspc node -f @{parent,brother,first,second}
75 |
76 | # focus the next/previous window in the current desktop
77 | super + {_,shift + }c
78 | bspc node -f {next,prev}.local.!hidden.window
79 |
80 | # focus the next/previous desktop in the current monitor
81 | super + bracket{left,right}
82 | bspc desktop -f {prev,next}.local
83 |
84 | # focus the last node/desktop
85 | super + {grave,Tab}
86 | bspc {node,desktop} -f last
87 |
88 | # focus the older or newer node in the focus history
89 | super + {o,i}
90 | bspc wm -h off; \
91 | bspc node {older,newer} -f; \
92 | bspc wm -h on
93 |
94 | # focus or send to the given desktop
95 | super + {_,shift + }{1-9,0}
96 | bspc {desktop -f,node -d} '^{1-9,10}'
97 |
98 | #
99 | # preselect
100 | #
101 |
102 | # preselect the direction
103 | super + ctrl + {h,j,k,l}
104 | bspc node -p {west,south,north,east}
105 |
106 | # preselect the ratio
107 | super + ctrl + {1-9}
108 | bspc node -o 0.{1-9}
109 |
110 | # cancel the preselection for the focused node
111 | super + ctrl + space
112 | bspc node -p cancel
113 |
114 | # cancel the preselection for the focused desktop
115 | super + ctrl + shift + space
116 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
117 |
118 | #
119 | # move/resize
120 | #
121 |
122 | # expand a window by moving one of its side outward
123 | super + alt + {h,j,k,l}
124 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
125 |
126 | # contract a window by moving one of its side inward
127 | super + alt + shift + {h,j,k,l}
128 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
129 |
130 | # move a floating window
131 | super + {Left,Down,Up,Right}
132 | bspc node -v {-20 0,0 20,0 -20,20 0}
133 | # lockscreen
134 | super + x
135 | betterlockscreen -l dimblur
136 |
137 | # Volume Control
138 | XF86AudioLowerVolume
139 | amixer set Master 5%-
140 | XF86AudioRaiseVolume
141 | amixer set Master 5%+
142 | XF86AudioMute
143 | amixer set Master toggle
144 |
145 | #@Vol+
146 | # amixer set Master 5%+
147 | # Brightness Control
148 | @{Bright+,Bright-}
149 | brightnessctl set 355{+,-}
150 |
--------------------------------------------------------------------------------
/config_files/picom.conf:
--------------------------------------------------------------------------------
1 | #################################
2 | # Corners #
3 | #################################
4 |
5 | corner-radius = 6
6 |
7 | rounded-corners-exclude = [
8 | # "window_type = 'normal'",
9 | "window_type = 'dropdown_menu'",
10 | "window_type = 'popup_menu'",
11 | "window_type = 'popup'",
12 | # "class_g = 'awesome'",
13 | "class_g = 'Polybar'",
14 | # "class_g = 'TelegramDesktop'",
15 | # "class_g = 'firefox'",
16 | "class_g = 'Viewnior'",
17 | "class_g = 'Rofi'",
18 | "class_g = 'mpv'",
19 | "class_g = 'Retroarch'",
20 | "class_g = 'retroarch'"
21 | ];
22 |
23 | #################################
24 | # Shadows #
25 | #################################
26 |
27 | shadow = false;
28 | shadow-radius = 18;
29 | #shadow-opacity = .75
30 | shadow-offset-x = -25;
31 | shadow-offset-y = -22;
32 |
33 | #shadow-color = "#000000"
34 |
35 | shadow-exclude = [
36 | "name = 'Notification'",
37 | "class_g = 'Conky'",
38 | "class_g ?= 'Notify-osd'",
39 | "class_g = 'Cairo-clock'",
40 | "class_g = 'slop'",
41 | "class_g = 'Polybar'",
42 | "class_g = 'Retroarch'",
43 | "class_g = 'Rofi'",
44 | "_GTK_FRAME_EXTENTS@:c"
45 | ];
46 |
47 | #################################
48 | # Fading #
49 | #################################
50 |
51 | fading = false;
52 | # Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
53 | fade-in-step = 0.28;
54 | # Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
55 | fade-out-step = 0.09;
56 | no-fading-openclose = false
57 | no-fading-destroyed-argb = false
58 | # The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
59 | # fade-delta = 10
60 |
61 | fade-exclude = [
62 | "class_g = 'slop'",
63 | "name = 'bar'",
64 | "class_g = 'maim'",
65 | "class_g = 'mpv'",
66 | "class_g = 'bspwm'"
67 | ]
68 |
69 | #################################
70 | # Transparency / Opacity #
71 | #################################
72 |
73 | inactive-opacity = 0.8;
74 | inactive-opacity-override = false;
75 | active-opacity = 1.0;
76 |
77 | # Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
78 | inactive-dim = 0.8
79 |
80 | focus-exclude = [
81 | "class_g = 'Cairo-clock'",
82 | "class_g = 'Bar'", # lemonbar
83 | "class_g = 'slop'", # maim
84 | "class_g = 'ranger'"
85 | ];
86 |
87 | opacity-rule = [
88 | "80:class_g = 'Bar'", # lemonbar
89 | "100:class_g = 'slop'", # maim
90 | "100:class_g = 'Termite'",
91 | "100:class_g = 'alacritty'",
92 | "100:class_g = 'polybar'",
93 | "100:class_g = 'TelegramDesktop'",
94 | "100:class_g = 'ranger'",
95 | "99:class_g *? = 'Org.gnome.Nautilus'"
96 | ];
97 |
98 | #################################
99 | # General Settings #
100 | #################################
101 |
102 | #backend = "glx";
103 | backend = "xrender";
104 | #vsync = false;
105 | dithered-present = false;
106 | mark-wmwin-focused = true;
107 | mark-ovredir-focused = true;
108 |
109 | #use-damage = false;
110 | detect-rounded-corners = true;
111 | detect-client-opacity = true;
112 | #glx-no-stencil = false;
113 | detect-transient = true;
114 | unredir-if-possible = false;
115 | log-level = "warn";
116 |
117 | #################################
118 |
119 | wintypes:
120 | {
121 | normal = { fade = true; shadow = true; }
122 | tooltip = { fade = false; shadow = false; focus = true; full-shadow = false; }
123 | dock = { shadow = false; }
124 | dnd = { shadow = false; }
125 | popup_menu = { opacity = 0.97; fade = false; shadow = false; }
126 | dropdown_menu = { opacity = 0.97; }
127 | menu = { fade = false; }
128 | dialog = { fade = false; }
129 | };
130 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/rofi/launcher.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Iosevka Nerd Font 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px 0px 0px 0px;
29 | border-color: @ac;
30 | border-radius: 0px;
31 | width: 550px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 6px 7px 4px 7px;
40 | background-color: @ac;
41 | text-color: @fg;
42 | font: "feather 12";
43 | }
44 |
45 | entry {
46 | background-color: @al;
47 | text-color: @fg;
48 | placeholder-color: @fg;
49 | expand: true;
50 | horizontal-align: 0;
51 | placeholder: "Search...";
52 | padding: 6px;
53 | blink: true;
54 | }
55 |
56 | inputbar {
57 | children: [ prompt, entry ];
58 | background-color: @bga;
59 | text-color: @fg;
60 | expand: false;
61 | border: 0px;
62 | border-radius: 0px;
63 | border-color: @ac;
64 | margin: 0px;
65 | padding: 0px;
66 | }
67 |
68 | listview {
69 | background-color: @al;
70 | padding: 0px;
71 | columns: 2;
72 | lines: 8;
73 | spacing: 6px;
74 | cycle: true;
75 | dynamic: true;
76 | layout: vertical;
77 | }
78 |
79 | mainbox {
80 | background-color: @al;
81 | border: 0px;
82 | border-radius: 0px;
83 | border-color: @ac;
84 | children: [ inputbar, listview ];
85 | spacing: 6px;
86 | padding: 6px;
87 | }
88 |
89 | element {
90 | background-color: @al;
91 | text-color: @fga;
92 | orientation: horizontal;
93 | border-radius: 0px;
94 | padding: 3px;
95 | }
96 |
97 | element-icon {
98 | background-color: transparent;
99 | text-color: inherit;
100 | size: 24px;
101 | border: 0px;
102 | }
103 |
104 | element-text {
105 | background-color: transparent;
106 | text-color: inherit;
107 | expand: true;
108 | horizontal-align: 0;
109 | vertical-align: 0.5;
110 | margin: 0px 2.5px 0px 2.5px;
111 | }
112 |
113 | element selected {
114 | background-color: @se;
115 | text-color: @fga;
116 | border: 0px 0px 0px 0px;
117 | border-radius: 0px;
118 | border-color: @ac;
119 | }
120 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi-wifi-menu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Starts a scan of available broadcasting SSIDs
4 | # nmcli dev wifi rescan
5 |
6 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7 |
8 | FIELDS=SSID,SECURITY
9 | POSITION=3
10 | YOFF=40
11 | XOFF=0
12 | FONT="Fantasque Sans Mono 14"
13 |
14 | if [ -r "$DIR/config" ]; then
15 | source "$DIR/config"
16 | elif [ -r "$HOME/.config/polybar/material/scripts/rofi" ]; then
17 | source "$HOME/.config/polybar/material/scripts/rofi"
18 | else
19 | echo "WARNING: config file not found! Using default values."
20 | fi
21 |
22 | LIST=$(nmcli --fields "$FIELDS" device wifi list | sed '/^--/d')
23 | # For some reason rofi always approximates character width 2 short... hmmm
24 | RWIDTH=$(($(echo "$LIST" | head -n 1 | awk '{print length($0); }')+2))
25 | # Dynamically change the height of the rofi menu
26 | LINENUM=$(echo "$LIST" | wc -l)
27 | # Gives a list of known connections so we can parse it later
28 | KNOWNCON=$(nmcli connection show)
29 | # Really janky way of telling if there is currently a connection
30 | CONSTATE=$(nmcli -fields WIFI g)
31 |
32 | CURRSSID=$(LANGUAGE=C nmcli -t -f active,ssid dev wifi | awk -F: '$1 ~ /^yes/ {print $2}')
33 |
34 | if [[ ! -z $CURRSSID ]]; then
35 | HIGHLINE=$(echo "$(echo "$LIST" | awk -F "[ ]{2,}" '{print $1}' | grep -Fxn -m 1 "$CURRSSID" | awk -F ":" '{print $1}') + 1" | bc )
36 | fi
37 |
38 | # HOPEFULLY you won't need this as often as I do
39 | # If there are more than 8 SSIDs, the menu will still only have 8 lines
40 | if [ "$LINENUM" -gt 8 ] && [[ "$CONSTATE" =~ "enabled" ]]; then
41 | LINENUM=8
42 | elif [[ "$CONSTATE" =~ "disabled" ]]; then
43 | LINENUM=1
44 | fi
45 |
46 |
47 | if [[ "$CONSTATE" =~ "enabled" ]]; then
48 | TOGGLE="toggle off"
49 | elif [[ "$CONSTATE" =~ "disabled" ]]; then
50 | TOGGLE="toggle on"
51 | fi
52 |
53 |
54 |
55 | CHENTRY=$(echo -e "$TOGGLE\nmanual\n$LIST" | uniq -u | rofi -dmenu -p "Wi-Fi SSID: " -lines "$LINENUM" -a "$HIGHLINE" -location "$POSITION" -yoffset "$YOFF" -xoffset "$XOFF" -font "$FONT" -width -"$RWIDTH")
56 | #echo "$CHENTRY"
57 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $1}')
58 | #echo "$CHSSID"
59 |
60 | # If the user inputs "manual" as their SSID in the start window, it will bring them to this screen
61 | if [ "$CHENTRY" = "manual" ] ; then
62 | # Manual entry of the SSID and password (if appplicable)
63 | MSSID=$(echo "enter the SSID of the network (SSID,password)" | rofi -dmenu -p "Manual Entry: " -font "$FONT" -lines 1)
64 | # Separating the password from the entered string
65 | MPASS=$(echo "$MSSID" | awk -F "," '{print $2}')
66 |
67 | #echo "$MSSID"
68 | #echo "$MPASS"
69 |
70 | # If the user entered a manual password, then use the password nmcli command
71 | if [ "$MPASS" = "" ]; then
72 | nmcli dev wifi con "$MSSID"
73 | else
74 | nmcli dev wifi con "$MSSID" password "$MPASS"
75 | fi
76 |
77 | elif [ "$CHENTRY" = "toggle on" ]; then
78 | nmcli radio wifi on
79 |
80 | elif [ "$CHENTRY" = "toggle off" ]; then
81 | nmcli radio wifi off
82 |
83 | else
84 |
85 | # If the connection is already in use, then this will still be able to get the SSID
86 | if [ "$CHSSID" = "*" ]; then
87 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $3}')
88 | fi
89 |
90 | # Parses the list of preconfigured connections to see if it already contains the chosen SSID. This speeds up the connection process
91 | if [[ $(echo "$KNOWNCON" | grep "$CHSSID") = "$CHSSID" ]]; then
92 | nmcli con up "$CHSSID"
93 | else
94 | if [[ "$CHENTRY" =~ "WPA2" ]] || [[ "$CHENTRY" =~ "WEP" ]]; then
95 | WIFIPASS=$(echo "if connection is stored, hit enter" | rofi -dmenu -p "password: " -lines 1 -font "$FONT" )
96 | fi
97 | nmcli dev wifi con "$CHSSID" password "$WIFIPASS"
98 | fi
99 |
100 | fi
101 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi-wifi-menu.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Starts a scan of available broadcasting SSIDs
4 | # nmcli dev wifi rescan
5 |
6 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7 |
8 | FIELDS=SSID,SECURITY
9 | POSITION=3
10 | YOFF=40
11 | XOFF=0
12 | FONT="Fantasque Sans Mono 14"
13 |
14 | if [ -r "$DIR/config" ]; then
15 | source "$DIR/config"
16 | elif [ -r "$HOME/.config/polybar/material/scripts/rofi" ]; then
17 | source "$HOME/.config/polybar/material/scripts/rofi"
18 | else
19 | echo "WARNING: config file not found! Using default values."
20 | fi
21 |
22 | LIST=$(nmcli --fields "$FIELDS" device wifi list | sed '/^--/d')
23 | # For some reason rofi always approximates character width 2 short... hmmm
24 | RWIDTH=$(($(echo "$LIST" | head -n 1 | awk '{print length($0); }')+2))
25 | # Dynamically change the height of the rofi menu
26 | LINENUM=$(echo "$LIST" | wc -l)
27 | # Gives a list of known connections so we can parse it later
28 | KNOWNCON=$(nmcli connection show)
29 | # Really janky way of telling if there is currently a connection
30 | CONSTATE=$(nmcli -fields WIFI g)
31 |
32 | CURRSSID=$(LANGUAGE=C nmcli -t -f active,ssid dev wifi | awk -F: '$1 ~ /^yes/ {print $2}')
33 |
34 | if [[ ! -z $CURRSSID ]]; then
35 | HIGHLINE=$(echo "$(echo "$LIST" | awk -F "[ ]{2,}" '{print $1}' | grep -Fxn -m 1 "$CURRSSID" | awk -F ":" '{print $1}') + 1" | bc )
36 | fi
37 |
38 | # HOPEFULLY you won't need this as often as I do
39 | # If there are more than 8 SSIDs, the menu will still only have 8 lines
40 | if [ "$LINENUM" -gt 8 ] && [[ "$CONSTATE" =~ "enabled" ]]; then
41 | LINENUM=8
42 | elif [[ "$CONSTATE" =~ "disabled" ]]; then
43 | LINENUM=1
44 | fi
45 |
46 |
47 | if [[ "$CONSTATE" =~ "enabled" ]]; then
48 | TOGGLE="toggle off"
49 | elif [[ "$CONSTATE" =~ "disabled" ]]; then
50 | TOGGLE="toggle on"
51 | fi
52 |
53 |
54 |
55 | CHENTRY=$(echo -e "$TOGGLE\nmanual\n$LIST" | uniq -u | rofi -dmenu -p "Wi-Fi SSID: " -lines "$LINENUM" -a "$HIGHLINE" -location "$POSITION" -yoffset "$YOFF" -xoffset "$XOFF" -font "$FONT" -width -"$RWIDTH")
56 | #echo "$CHENTRY"
57 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $1}')
58 | #echo "$CHSSID"
59 |
60 | # If the user inputs "manual" as their SSID in the start window, it will bring them to this screen
61 | if [ "$CHENTRY" = "manual" ] ; then
62 | # Manual entry of the SSID and password (if appplicable)
63 | MSSID=$(echo "enter the SSID of the network (SSID,password)" | rofi -dmenu -p "Manual Entry: " -font "$FONT" -lines 1)
64 | # Separating the password from the entered string
65 | MPASS=$(echo "$MSSID" | awk -F "," '{print $2}')
66 |
67 | #echo "$MSSID"
68 | #echo "$MPASS"
69 |
70 | # If the user entered a manual password, then use the password nmcli command
71 | if [ "$MPASS" = "" ]; then
72 | nmcli dev wifi con "$MSSID"
73 | else
74 | nmcli dev wifi con "$MSSID" password "$MPASS"
75 | fi
76 |
77 | elif [ "$CHENTRY" = "toggle on" ]; then
78 | nmcli radio wifi on
79 |
80 | elif [ "$CHENTRY" = "toggle off" ]; then
81 | nmcli radio wifi off
82 |
83 | else
84 |
85 | # If the connection is already in use, then this will still be able to get the SSID
86 | if [ "$CHSSID" = "*" ]; then
87 | CHSSID=$(echo "$CHENTRY" | sed 's/\s\{2,\}/\|/g' | awk -F "|" '{print $3}')
88 | fi
89 |
90 | # Parses the list of preconfigured connections to see if it already contains the chosen SSID. This speeds up the connection process
91 | if [[ $(echo "$KNOWNCON" | grep "$CHSSID") = "$CHSSID" ]]; then
92 | nmcli con up "$CHSSID"
93 | else
94 | if [[ "$CHENTRY" =~ "WPA2" ]] || [[ "$CHENTRY" =~ "WEP" ]]; then
95 | WIFIPASS=$(echo "if connection is stored, hit enter" | rofi -dmenu -p "password: " -lines 1 -font "$FONT" )
96 | fi
97 | nmcli dev wifi con "$CHSSID" password "$WIFIPASS"
98 | fi
99 |
100 | fi
101 |
--------------------------------------------------------------------------------
/dotconfig/bspwm/assets/nord-xresources-banner.svg:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/dotconfig/rofi/launcher.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px;
29 | border-color: @ac;
30 | border-radius: 0px;
31 | width: 550px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 0px 5px 0px -10px;
40 | background-color: @al;
41 | text-color: @bar;
42 | font: "Material\-Design\-Iconic\-Font 12";
43 | }
44 |
45 | entry {
46 | background-color: @al;
47 | text-color: @bar;
48 | placeholder-color: @bar;
49 | expand: true;
50 | horizontal-align: 0;
51 | placeholder: "Search...";
52 | padding: 1px;
53 | blink: true;
54 | }
55 |
56 | inputbar {
57 | children: [ prompt, entry ];
58 | background-color: @ac;
59 | text-color: @bar;
60 | expand: false;
61 | border: 0px;
62 | border-radius: 0px;
63 | border-color: @ac;
64 | margin: 0px;
65 | padding: 15px 0px 12px 25px;
66 | }
67 |
68 | listview {
69 | background-color: @al;
70 | padding: 10px 10px 10px 10px;
71 | columns: 2;
72 | lines: 7;
73 | spacing: 5px;
74 | cycle: true;
75 | dynamic: true;
76 | layout: vertical;
77 | }
78 |
79 | mainbox {
80 | background-color: @al;
81 | border: 0px;
82 | border-radius: 0px;
83 | border-color: @ac;
84 | children: [ inputbar, listview ];
85 | spacing: 0px;
86 | padding: 0px;
87 | }
88 |
89 | element {
90 | background-color: @al;
91 | text-color: @fg;
92 | orientation: horizontal;
93 | border-radius: 0px;
94 | padding: 10px;
95 | }
96 |
97 | element-icon {
98 | background-color: transparent;
99 | text-color: inherit;
100 | size: 24px;
101 | border: 0px;
102 | }
103 |
104 | element-text {
105 | background-color: transparent;
106 | text-color: inherit;
107 | expand: true;
108 | horizontal-align: 0;
109 | vertical-align: 0.5;
110 | margin: 0px 2.5px 0px 2.5px;
111 | }
112 |
113 | element selected {
114 | background-color: @bga;
115 | text-color: @fg;
116 | border: 0px;
117 | border-radius: 0px;
118 | border-color: @bg;
119 | }
120 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/launcher.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px;
29 | border-color: @ac;
30 | border-radius: 0px;
31 | width: 550px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 0px 5px 0px -10px;
40 | background-color: @al;
41 | text-color: @bar;
42 | font: "Material\-Design\-Iconic\-Font 12";
43 | }
44 |
45 | entry {
46 | background-color: @al;
47 | text-color: @bar;
48 | placeholder-color: @bar;
49 | expand: true;
50 | horizontal-align: 0;
51 | placeholder: "Search...";
52 | padding: 1px;
53 | blink: true;
54 | }
55 |
56 | inputbar {
57 | children: [ prompt, entry ];
58 | background-color: @ac;
59 | text-color: @bar;
60 | expand: false;
61 | border: 0px;
62 | border-radius: 0px;
63 | border-color: @ac;
64 | margin: 0px;
65 | padding: 15px 0px 12px 25px;
66 | }
67 |
68 | listview {
69 | background-color: @al;
70 | padding: 10px 10px 10px 10px;
71 | columns: 2;
72 | lines: 7;
73 | spacing: 5px;
74 | cycle: true;
75 | dynamic: true;
76 | layout: vertical;
77 | }
78 |
79 | mainbox {
80 | background-color: @al;
81 | border: 0px;
82 | border-radius: 0px;
83 | border-color: @ac;
84 | children: [ inputbar, listview ];
85 | spacing: 0px;
86 | padding: 0px;
87 | }
88 |
89 | element {
90 | background-color: @al;
91 | text-color: @fg;
92 | orientation: horizontal;
93 | border-radius: 0px;
94 | padding: 10px;
95 | }
96 |
97 | element-icon {
98 | background-color: transparent;
99 | text-color: inherit;
100 | size: 24px;
101 | border: 0px;
102 | }
103 |
104 | element-text {
105 | background-color: transparent;
106 | text-color: inherit;
107 | expand: true;
108 | horizontal-align: 0;
109 | vertical-align: 0.5;
110 | margin: 0px 2.5px 0px 2.5px;
111 | }
112 |
113 | element selected {
114 | background-color: @bga;
115 | text-color: @fg;
116 | border: 0px;
117 | border-radius: 0px;
118 | border-color: @bg;
119 | }
120 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/launcher.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px;
29 | border-color: @ac;
30 | border-radius: 0px;
31 | width: 550px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 0px 5px 0px -10px;
40 | background-color: @al;
41 | text-color: @bar;
42 | font: "Material\-Design\-Iconic\-Font 12";
43 | }
44 |
45 | entry {
46 | background-color: @al;
47 | text-color: @bar;
48 | placeholder-color: @bar;
49 | expand: true;
50 | horizontal-align: 0;
51 | placeholder: "Search...";
52 | padding: 1px;
53 | blink: true;
54 | }
55 |
56 | inputbar {
57 | children: [ prompt, entry ];
58 | background-color: @ac;
59 | text-color: @bar;
60 | expand: false;
61 | border: 0px;
62 | border-radius: 0px;
63 | border-color: @ac;
64 | margin: 0px;
65 | padding: 15px 0px 12px 25px;
66 | }
67 |
68 | listview {
69 | background-color: @al;
70 | padding: 10px 10px 10px 10px;
71 | columns: 2;
72 | lines: 7;
73 | spacing: 5px;
74 | cycle: true;
75 | dynamic: true;
76 | layout: vertical;
77 | }
78 |
79 | mainbox {
80 | background-color: @al;
81 | border: 0px;
82 | border-radius: 0px;
83 | border-color: @ac;
84 | children: [ inputbar, listview ];
85 | spacing: 0px;
86 | padding: 0px;
87 | }
88 |
89 | element {
90 | background-color: @al;
91 | text-color: @fg;
92 | orientation: horizontal;
93 | border-radius: 0px;
94 | padding: 10px;
95 | }
96 |
97 | element-icon {
98 | background-color: transparent;
99 | text-color: inherit;
100 | size: 24px;
101 | border: 0px;
102 | }
103 |
104 | element-text {
105 | background-color: transparent;
106 | text-color: inherit;
107 | expand: true;
108 | horizontal-align: 0;
109 | vertical-align: 0.5;
110 | margin: 0px 2.5px 0px 2.5px;
111 | }
112 |
113 | element selected {
114 | background-color: @bga;
115 | text-color: @fg;
116 | border: 0px;
117 | border-radius: 0px;
118 | border-color: @bg;
119 | }
120 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/rofi/launcher.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Iosevka Nerd Font 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px;
29 | border-color: @bg1;
30 | border-radius: 0px;
31 | width: 700px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 12px 15px 12px 15px;
40 | background-color: @bg1;
41 | text-color: @fga;
42 | font: "Iosevka Nerd Font 12";
43 | }
44 |
45 | entry {
46 | background-color: @bg2;
47 | text-color: @fga;
48 | placeholder-color: @fga;
49 | expand: true;
50 | horizontal-align: 0;
51 | placeholder: "Search...";
52 | padding: 15px 0px 0px 15px;
53 | margin: 0px 250px 0px 0px;
54 | border-radius: 0px 50px 50px 0px;
55 | blink: true;
56 | }
57 |
58 | inputbar {
59 | children: [ prompt, entry ];
60 | background-color: @bg3;
61 | text-color: @fg;
62 | expand: false;
63 | border: 0px;
64 | border-radius: 0px;
65 | border-color: @ac;
66 | spacing: 0px;
67 | }
68 |
69 | listview {
70 | background-color: @al;
71 | padding: 10px 10px 10px 10px;
72 | columns: 3;
73 | lines: 8;
74 | spacing: 5px;
75 | cycle: true;
76 | dynamic: true;
77 | layout: vertical;
78 | }
79 |
80 | mainbox {
81 | background-color: @al;
82 | border: 0px;
83 | border-radius: 0px;
84 | border-color: @bg4;
85 | children: [ inputbar, listview ];
86 | spacing: 0px;
87 | padding: 0px;
88 | }
89 |
90 | element {
91 | background-color: @al;
92 | text-color: @fg;
93 | orientation: horizontal;
94 | border-radius: 0px;
95 | padding: 8px;
96 | }
97 |
98 | element-icon {
99 | background-color: transparent;
100 | text-color: inherit;
101 | size: 24px;
102 | border: 0px;
103 | }
104 |
105 | element-text {
106 | background-color: transparent;
107 | text-color: inherit;
108 | expand: true;
109 | horizontal-align: 0;
110 | vertical-align: 0.5;
111 | margin: 0px 2.5px 0px 2.5px;
112 | }
113 |
114 | element selected {
115 | background-color: @bg;
116 | text-color: @bg3;
117 | border: 0px;
118 | border-radius: 0px;
119 | border-color: @bg;
120 | }
121 |
--------------------------------------------------------------------------------
/dotconfig/rofi/styles.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 300px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: 0.5px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search";
59 | padding: 2px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, entry ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 5;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -5px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/dotconfig/rofi/networkmenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 400px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: -2px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search...";
59 | padding: 1px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, prompt ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 8;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -3px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/dotconfig/rofi/powermenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 300px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: -2px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search...";
59 | padding: 1px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, prompt ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 5;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -5px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/rofi/styles.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Iosevka Nerd Font 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px 0px 0px 0px;
29 | border-color: @ac;
30 | border-radius: 0px;
31 | width: 300px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 6px 7px 4px 7px;
40 | background-color: @bga;
41 | text-color: @fg;
42 | }
43 |
44 | textbox-prompt-colon {
45 | padding: 6px 7px 4px 7px;
46 | background-color: @ac;
47 | text-color: @fg;
48 | expand: false;
49 | str: "";
50 | font: "feather 12";
51 | }
52 |
53 | entry {
54 | background-color: @al;
55 | text-color: @fg;
56 | placeholder-color: @fg;
57 | expand: true;
58 | horizontal-align: 0;
59 | placeholder: "Search...";
60 | padding: 6px;
61 | blink: true;
62 | }
63 |
64 | inputbar {
65 | children: [ textbox-prompt-colon, entry ];
66 | background-color: @bga;
67 | text-color: @fg;
68 | expand: false;
69 | border: 0px;
70 | border-radius: 0px;
71 | border-color: @ac;
72 | margin: 0px;
73 | padding: 0px;
74 | }
75 |
76 | listview {
77 | background-color: @al;
78 | padding: 0px;
79 | columns: 1;
80 | lines: 5;
81 | spacing: 6px;
82 | cycle: true;
83 | dynamic: true;
84 | layout: vertical;
85 | }
86 |
87 | mainbox {
88 | background-color: @al;
89 | border: 0px;
90 | border-radius: 0px;
91 | border-color: @ac;
92 | children: [ inputbar, listview ];
93 | spacing: 6px;
94 | padding: 6px;
95 | }
96 |
97 | element {
98 | background-color: @al;
99 | text-color: @fga;
100 | orientation: horizontal;
101 | border-radius: 0px;
102 | padding: 3px 3px 3px -23px;
103 | }
104 |
105 | element-icon {
106 | background-color: transparent;
107 | text-color: inherit;
108 | size: 24px;
109 | border: 0px;
110 | }
111 |
112 | element-text {
113 | background-color: transparent;
114 | text-color: inherit;
115 | expand: true;
116 | horizontal-align: 0;
117 | vertical-align: 0.5;
118 | margin: 0px 2.5px 0px 2.5px;
119 | }
120 |
121 | element selected {
122 | background-color: @se;
123 | text-color: @fga;
124 | border: 0px 0px 0px 0px;
125 | border-radius: 0px;
126 | border-color: @ac;
127 | }
128 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/rofi/networkmenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Iosevka Nerd Font 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px 0px 0px 0px;
29 | border-color: @ac;
30 | border-radius: 0px;
31 | width: 400px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 6px 7px 4px 7px;
40 | background-color: @bga;
41 | text-color: @fg;
42 | }
43 |
44 | textbox-prompt-colon {
45 | padding: 6px 7px 4px 7px;
46 | background-color: @ac;
47 | text-color: @fg;
48 | expand: false;
49 | str: "";
50 | font: "feather 12";
51 | }
52 |
53 | entry {
54 | background-color: @al;
55 | text-color: @fg;
56 | placeholder-color: @fg;
57 | expand: true;
58 | horizontal-align: 0;
59 | placeholder: "Search...";
60 | padding: 6px;
61 | blink: true;
62 | }
63 |
64 | inputbar {
65 | children: [ textbox-prompt-colon, prompt ];
66 | background-color: @bga;
67 | text-color: @fg;
68 | expand: false;
69 | border: 0px;
70 | border-radius: 0px;
71 | border-color: @ac;
72 | margin: 0px;
73 | padding: 0px;
74 | }
75 |
76 | listview {
77 | background-color: @al;
78 | padding: 0px;
79 | columns: 1;
80 | lines: 8;
81 | spacing: 6px;
82 | cycle: true;
83 | dynamic: true;
84 | layout: vertical;
85 | }
86 |
87 | mainbox {
88 | background-color: @al;
89 | border: 0px;
90 | border-radius: 0px;
91 | border-color: @ac;
92 | children: [ inputbar, listview ];
93 | spacing: 6px;
94 | padding: 6px;
95 | }
96 |
97 | element {
98 | background-color: @al;
99 | text-color: @fga;
100 | orientation: horizontal;
101 | border-radius: 0px;
102 | padding: 3px 3px 3px -12px;
103 | }
104 |
105 | element-icon {
106 | background-color: transparent;
107 | text-color: inherit;
108 | size: 24px;
109 | border: 0px;
110 | }
111 |
112 | element-text {
113 | background-color: transparent;
114 | text-color: inherit;
115 | expand: true;
116 | horizontal-align: 0;
117 | vertical-align: 0.5;
118 | margin: 0px 2.5px 0px 2.5px;
119 | }
120 |
121 | element selected {
122 | background-color: @se;
123 | text-color: @fga;
124 | border: 0px 0px 0px 0px;
125 | border-radius: 0px;
126 | border-color: @ac;
127 | }
128 |
--------------------------------------------------------------------------------
/dotconfig/polybar/blocks/scripts/rofi/powermenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Iosevka Nerd Font 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px 0px 0px 0px;
29 | border-color: @ac;
30 | border-radius: 0px;
31 | width: 300px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 6px 7px 4px 7px;
40 | background-color: @bga;
41 | text-color: @fg;
42 | }
43 |
44 | textbox-prompt-colon {
45 | padding: 6px 7px 4px 7px;
46 | background-color: @ac;
47 | text-color: @fg;
48 | expand: false;
49 | str: "";
50 | font: "feather 12";
51 | }
52 |
53 | entry {
54 | background-color: @al;
55 | text-color: @fg;
56 | placeholder-color: @fg;
57 | expand: true;
58 | horizontal-align: 0;
59 | placeholder: "Search...";
60 | padding: 6px;
61 | blink: true;
62 | }
63 |
64 | inputbar {
65 | children: [ textbox-prompt-colon, prompt ];
66 | background-color: @bga;
67 | text-color: @fg;
68 | expand: false;
69 | border: 0px;
70 | border-radius: 0px;
71 | border-color: @ac;
72 | margin: 0px;
73 | padding: 0px;
74 | }
75 |
76 | listview {
77 | background-color: @al;
78 | padding: 0px;
79 | columns: 1;
80 | lines: 5;
81 | spacing: 6px;
82 | cycle: true;
83 | dynamic: true;
84 | layout: vertical;
85 | }
86 |
87 | mainbox {
88 | background-color: @al;
89 | border: 0px;
90 | border-radius: 0px;
91 | border-color: @ac;
92 | children: [ inputbar, listview ];
93 | spacing: 6px;
94 | padding: 6px;
95 | }
96 |
97 | element {
98 | background-color: @al;
99 | text-color: @fga;
100 | orientation: horizontal;
101 | border-radius: 0px;
102 | padding: 3px 3px 3px -23px;
103 | }
104 |
105 | element-icon {
106 | background-color: transparent;
107 | text-color: inherit;
108 | size: 24px;
109 | border: 0px;
110 | }
111 |
112 | element-text {
113 | background-color: transparent;
114 | text-color: inherit;
115 | expand: true;
116 | horizontal-align: 0;
117 | vertical-align: 0.5;
118 | margin: 0px 2.5px 0px 2.5px;
119 | }
120 |
121 | element selected {
122 | background-color: @se;
123 | text-color: @fga;
124 | border: 0px 0px 0px 0px;
125 | border-radius: 0px;
126 | border-color: @ac;
127 | }
128 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/styles.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 300px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: 0.5px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search";
59 | padding: 2px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, entry ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 5;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -5px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/styles.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 300px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: 0.5px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search";
59 | padding: 2px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, entry ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 5;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -5px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/networkmenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 400px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: -2px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search...";
59 | padding: 1px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, prompt ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 8;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -3px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/dotconfig/polybar/material/scripts/rofi/powermenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 300px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: -2px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search...";
59 | padding: 1px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, prompt ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 5;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -5px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/networkmenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 400px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: -2px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search...";
59 | padding: 1px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, prompt ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 8;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -3px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/config_files/polybar/material/scripts/rofi/powermenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Fantasque Sans Mono 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | drun-display-format: "{name}";
15 | disable-history: false;
16 | fullscreen: false;
17 | hide-scrollbar: true;
18 | sidebar-mode: false;
19 | }
20 |
21 | @import "colors.rasi"
22 |
23 | window {
24 | transparency: "real";
25 | background-color: @bg;
26 | text-color: @fg;
27 | border: 0px;
28 | border-color: @ac;
29 | border-radius: 0px;
30 | width: 300px;
31 | location: center;
32 | x-offset: 0;
33 | y-offset: 0;
34 | }
35 |
36 | prompt {
37 | enabled: true;
38 | padding: 0px 5px 5px 0px;
39 | background-color: @al;
40 | text-color: @bar;
41 | }
42 |
43 | textbox-prompt-colon {
44 | padding: -2px 5px 5px -10px;
45 | font: "Material\-Design\-Iconic\-Font 12";
46 | background-color: @al;
47 | text-color: @bar;
48 | expand: false;
49 | str: "";
50 | }
51 |
52 | entry {
53 | background-color: @al;
54 | text-color: @bar;
55 | placeholder-color: @bar;
56 | expand: true;
57 | horizontal-align: 0;
58 | placeholder: "Search...";
59 | padding: 1px;
60 | blink: true;
61 | }
62 |
63 | inputbar {
64 | children: [ textbox-prompt-colon, prompt ];
65 | background-color: @ac;
66 | text-color: @bar;
67 | expand: false;
68 | border: 0px;
69 | border-radius: 0px;
70 | border-color: @ac;
71 | margin: 0px;
72 | padding: 15px 0px 8px 25px;
73 | }
74 |
75 | listview {
76 | background-color: @al;
77 | padding: 0px;
78 | columns: 1;
79 | lines: 5;
80 | spacing: 5px;
81 | cycle: true;
82 | dynamic: true;
83 | layout: vertical;
84 | }
85 |
86 | mainbox {
87 | background-color: @al;
88 | border: 0px;
89 | border-radius: 0px;
90 | border-color: @ac;
91 | children: [ inputbar, listview ];
92 | spacing: 0px;
93 | padding: 0px;
94 | }
95 |
96 | element {
97 | background-color: @al;
98 | text-color: @fg;
99 | orientation: horizontal;
100 | border-radius: 0px;
101 | padding: 15px;
102 | }
103 |
104 | element-icon {
105 | background-color: transparent;
106 | text-color: inherit;
107 | size: 0px;
108 | border: 0px;
109 | }
110 |
111 | element-text {
112 | background-color: transparent;
113 | text-color: inherit;
114 | expand: true;
115 | horizontal-align: 0;
116 | vertical-align: 0.5;
117 | margin: 0px 0px 0px -5px;
118 | }
119 |
120 | element selected {
121 | background-color: @bga;
122 | text-color: @fg;
123 | border: 0px;
124 | border-radius: 0px;
125 | border-color: @bg;
126 | }
127 |
--------------------------------------------------------------------------------
/dotconfig/polybar/colorblocks/scripts/rofi/networkmenu.rasi:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Author : Aditya Shakya
4 | * Mail : adi1090x@gmail.com
5 | * Github : @adi1090x
6 | * Twitter : @adi1090x
7 | *
8 | */
9 |
10 | configuration {
11 | font: "Iosevka Nerd Font 10";
12 | show-icons: true;
13 | icon-theme: "Papirus";
14 | display-drun: "";
15 | drun-display-format: "{name}";
16 | disable-history: false;
17 | fullscreen: false;
18 | hide-scrollbar: true;
19 | sidebar-mode: false;
20 | }
21 |
22 | @import "colors.rasi"
23 |
24 | window {
25 | transparency: "real";
26 | background-color: @bg;
27 | text-color: @fg;
28 | border: 0px;
29 | border-color: @bg1;
30 | border-radius: 0px;
31 | width: 400px;
32 | location: center;
33 | x-offset: 0;
34 | y-offset: 0;
35 | }
36 |
37 | prompt {
38 | enabled: true;
39 | padding: 12px 15px 12px 15px;
40 | background-color: @bg2;
41 | text-color: @fga;
42 | }
43 |
44 | textbox-prompt-colon {
45 | padding: 10px 15px 10px 15px;
46 | font: "Iosevka Nerd Font 12";
47 | background-color: @bg1;
48 | text-color: @fga;
49 | expand: false;
50 | str: "直";
51 | }
52 |
53 | entry {
54 | background-color: @bg2;
55 | text-color: @fga;
56 | placeholder-color: @fga;
57 | expand: true;
58 | horizontal-align: 0;
59 | placeholder: "Search...";
60 | padding: 15px 0px 0px 15px;
61 | margin: 0px 250px 0px 0px;
62 | border-radius: 0px 50px 50px 0px;
63 | blink: true;
64 | }
65 |
66 | inputbar {
67 | children: [ textbox-prompt-colon, prompt ];
68 | background-color: @bg2;
69 | text-color: @fg;
70 | expand: false;
71 | border: 0px;
72 | border-radius: 0px;
73 | border-color: @ac;
74 | spacing: 0px;
75 | }
76 |
77 | listview {
78 | background-color: @al;
79 | padding: 10px 10px 10px 10px;
80 | columns: 1;
81 | lines: 8;
82 | spacing: 5px;
83 | cycle: true;
84 | dynamic: true;
85 | layout: vertical;
86 | }
87 |
88 | mainbox {
89 | background-color: @al;
90 | border: 0px;
91 | border-radius: 0px;
92 | border-color: @bg4;
93 | children: [ inputbar, listview ];
94 | spacing: 0px;
95 | padding: 0px;
96 | }
97 |
98 | element {
99 | background-color: @al;
100 | text-color: @fg;
101 | orientation: horizontal;
102 | border-radius: 0px;
103 | padding: 8px 8px 8px -4px;
104 | }
105 |
106 | element-icon {
107 | background-color: transparent;
108 | text-color: inherit;
109 | size: 24px;
110 | border: 0px;
111 | }
112 |
113 | element-text {
114 | background-color: transparent;
115 | text-color: inherit;
116 | expand: true;
117 | horizontal-align: 0;
118 | vertical-align: 0.5;
119 | margin: 0px 2.5px 0px 2.5px;
120 | }
121 |
122 | element selected {
123 | background-color: @bg;
124 | text-color: @bg3;
125 | border: 0px;
126 | border-radius: 0px;
127 | border-color: @bg;
128 | }
129 |
--------------------------------------------------------------------------------