all repos

dotfiles @ 102aa36798f17adf2eaac48c399ea8643d503ac4

i use rach linux btw
15 files changed, 152 insertions(+), 140 deletions(-)
Update i3, polybar, emacs, qtile, zsh & sctipts
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2021-01-02 21:48:35 +0200
Parent: 8822c65
M bin/catfetch
···
        11
        11
         # Shell

      
        12
        12
         shell=$(basename $SHELL)

      
        13
        13
         

      
        14
        
        -# Pakages

      
        
        14
        +# Packages

      
        15
        15
         manager=$(which apt pacman yay apk xbps-query 2>/dev/null)

      
        16
        16
         manager=${manager##*/}

      
        17
        17
         case "$manager" in

      ···
        42
        42
         echo -e "   /\_/\    ${blue}${bold} SHELL ${reset}${shell}"

      
        43
        43
         echo -e "  (=^.^=)   ${blue}${bold}KERNEL ${reset}${kernel}"

      
        44
        44
         echo -e "  (\") (\")_/ ${blue}${bold}   PKG ${reset}${packages}"

      
        45
        
        -echo -e "  ${black}卑${red}卑${green}卑${yellow}卑${blue}卑${magenta}卑${cyan}卑${reset} "

      
        
        45
        +echo -e "  ${black} ${red} ${green} ${yellow} ${blue} ${magenta} ${cyan} ${reset} "

      
        46
        46
         exit 0

      
M config/i3/config
···
        25
        25
         exec --no-startup-id exec nitrogen --restore

      
        26
        26
         exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"

      
        27
        27
         exec --no-startup-id exec org.telegram.desktop

      
        28
        
        -exec --no-startup-id exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

      
        29
        
        -exec_always --no-startup-id exec xautolock -time 3 -locker "betterlockscreen --off 180 -t \"Computer is lockerd\" -l"

      
        
        28
        +exec --no-startup-id exec lxsession

      
        
        29
        +exec --no-startup-id exec xautolock -time 3 -locker "betterlockscreen --off 180 -t \"Computer is lockerd\" -l"

      
        30
        30
         exec_always --no-startup-id exec $HOME/.config/i3/bar.sh

      
        
        31
        +exec --no-startup-id exec discord

      
        31
        32
         #exec --no-startup-id exec conky

      
        32
        33
         #exec --no-startup-id exec redshift-gtk

      
        33
        
        -#exec --no-startup-id exec discord

      
        34
        34
         

      
        35
        35
         ############## WM keys ############

      
        36
        36
         

      ···
        60
        60
         ############## User key ###########

      
        61
        61
         

      
        62
        62
         # Menus

      
        63
        
        -bindsym $mod+Shift+apostrophe exec "rofi -show run"

      
        64
        
        -bindsym $mod+Shift+Return exec "rofi -show drun"

      
        65
        
        -bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -h 24

      
        66
        
        -bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -h 24

      
        67
        
        -bindsym $mod+Control+i exec passmenu -h 24 -p Passwords

      
        
        63
        +bindsym $mod+Shift+apostrophe exec "rofi -location 6 -show run"

      
        
        64
        +bindsym $mod+Shift+Return exec "rofi -location 6 -show drun"

      
        
        65
        +bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -b -h 24

      
        
        66
        +bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -b -h 24

      
        
        67
        +bindsym $mod+Control+i exec passmenu -b -h 24 -p Passwords

      
        68
        68
         

      
        69
        69
         # Apps

      
        70
        70
         bindsym $mod+Return exec $terminal

      ···
        84
        84
         bindsym $mod+Shift+minus exec "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"

      
        85
        85
         

      
        86
        86
         ######### Window preferens ########

      
        87
        
        -assign [class="(?i)firefox|qutebrowser"] $ws2

      
        88
        
        -assign [class="(?i)telegram|discord|viber"] $ws6

      
        
        87
        +assign [class="(?i)telegram|discord"] $ws6

      
        
        88
        +for_window [class="(?i)telegram|discord"] layout tabbed

      
        89
        89
         #focus_on_window_activation focus

      
        90
        90
         

      
        91
        
        -########## Change  focus ##########

      
        
        91
        +########## Change focus ###########

      
        92
        92
         bindsym $mod+h focus left

      
        93
        93
         bindsym $mod+Left focus left

      
        94
        94
         bindsym $mod+j focus down

      ···
        109
        109
         bindsym $mod+Shift+Right move right

      
        110
        110
         

      
        111
        111
         ########## Resize window ##########

      
        112
        
        -bindsym $mod+Control+h resize shrink width 20 px or 20 ppt

      
        113
        
        -bindsym $mod+Control+Left resize shrink width 20 px or 20 ppt

      
        114
        
        -bindsym $mod+Control+j resize grow height 20 px or 20 ppt

      
        115
        
        -bindsym $mod+Control+Down resize grow height 20 px or 20 ppt

      
        116
        
        -bindsym $mod+Control+k resize shrink height 20 px or 20 ppt

      
        117
        
        -bindsym $mod+Control+Up resize shrink height 20 px or 20 ppt

      
        118
        
        -bindsym $mod+Control+l resize grow width 20 px or 20 ppt

      
        119
        
        -bindsym $mod+Control+Right resize grow width 20 px or 20 ppt

      
        
        112
        +bindsym $mod+Control+h resize shrink width 5 px or 5 ppt

      
        
        113
        +bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt

      
        
        114
        +bindsym $mod+Control+j resize grow height 5 px or 5 ppt

      
        
        115
        +bindsym $mod+Control+Down resize grow height 5 px or 5 ppt

      
        
        116
        +bindsym $mod+Control+k resize shrink height 5 px or 5 ppt

      
        
        117
        +bindsym $mod+Control+Up resize shrink height 5 px or 5 ppt

      
        
        118
        +bindsym $mod+Control+l resize grow width 5 px or 5 ppt

      
        
        119
        +bindsym $mod+Control+Right resize grow width 5 px or 5 ppt

      
        120
        120
         

      
        121
        121
         ############ Workspaces ###########

      
        122
        122
         set $ws1 "1"

      
M config/nvim/init.vim
···
        37
        37
         " Colors

      
        38
        38
         set termguicolors

      
        39
        39
         set background=dark

      
        40
        
        -colorscheme nten16

      
        
        40
        +colo nten16

      
        41
        41
         set t_Co=256

      
        42
        42
         

      
        43
        43
         " Syntax & line numbars

      
M config/picom.conf
···
        9
        9
         shadow-exclude = [

      
        10
        10
           "override_redirect",

      
        11
        11
           "class_g = 'Firefox' && argb",

      
        12
        
        -  "class_g = 'Polybar'"

      
        
        12
        +  #"class_g = 'Polybar'"

      
        13
        13
         ];

      
        14
        14
         

      
        15
        15
         ############ Fading ###########

      ···
        27
        27
         no-fading-openclose = true

      
        28
        28
         

      
        29
        29
         ##### Background-Blurring #####

      
        30
        
        -blur-method = "dual_kawase";

      
        31
        
        -blur-strength = 5;

      
        32
        
        -blur-kern = "3x3box";

      
        33
        
        -blur-background-exclude = [];

      
        
        30
        +#blur-method = "dual_kawase";

      
        
        31
        +#blur-strength = 5;

      
        
        32
        +#blur-kern = "3x3box";

      
        
        33
        +#blur-background-exclude = [];

      
        34
        34
         

      
        35
        35
         

      
        36
        36
         ####### General Settings ######

      
M config/polybar/config
···
        11
        11
         [bar/i3bar]

      
        12
        12
         width = 100%

      
        13
        13
         height = 24

      
        
        14
        +bottom = true

      
        14
        15
         fixed-center = true

      
        15
        16
         wm-restack = i3

      
        16
        17
         background = ${colors.background}

      ···
        20
        21
         font-0 = Iosevka Nerd Font:style=Medium:size=8;3

      
        21
        22
         font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5

      
        22
        23
         font-2 = Weather Icons:size=7;2

      
        23
        
        -modules-left =  i3 pacman-up

      
        
        24
        +modules-left =  i3 menu pacman-up window-name

      
        24
        25
         modules-right = keyboard pulseaudio backlight wifi-signal time date

      
        25
        26
         tray-position = right

      
        26
        27
         

      ···
        104
        105
         exec = ~/.config/polybar/scripts/updates-pacman-aur.sh

      
        105
        106
         interval = 60

      
        106
        107
         

      
        
        108
        +[module/window-name]

      
        
        109
        +type = internal/xwindow

      
        
        110
        +label-maxlen = 100

      
        
        111
        +

      
        107
        112
         [module/keyboard]

      
        108
        113
         type = internal/xkeyboard

      
        109
        114
         format-prefix = ""

      ···
        111
        116
         blacklist-0 = num lock

      
        112
        117
         blacklist-1 = scroll lock

      
        113
        118
         blacklist-2= caps lock

      
        
        119
        +

      
        
        120
        +[module/menu]

      
        
        121
        +type = custom/menu

      
        
        122
        +format = <label-toggle> <menu>

      
        
        123
        +format-padding = 1

      
        
        124
        +format-spacing = 2

      
        
        125
        +label-open = 

      
        
        126
        +label-close = 

      
        
        127
        +menu-0-0 =  

      
        
        128
        +menu-0-0-exec = thunar

      
        
        129
        +menu-0-1 = 

      
        
        130
        +menu-0-1-exec = firefox

      
        
        131
        +menu-0-2 = 

      
        
        132
        +menu-0-2-exec = alacritty

      
        
        133
        +menu-0-3 = 

      
        
        134
        +menu-0-3-exec = emacs

      
        114
        135
         

      
        115
        136
         [module/date]

      
        116
        137
         type = internal/date

      
M config/qtile/config.py
···
        44
        44
                 lazy.spawn(filemanager),

      
        45
        45
                 desc="Launch filemanager"

      
        46
        46
             ),

      
        47
        
        -    Key([mod, "shift"], "f",

      
        48
        
        -        lazy.spawn("dmenufm"),

      
        49
        
        -        desc="Launch dmenu filemanager"

      
        50
        
        -    ),

      
        51
        
        -    Key([mod, alt], "t",

      
        52
        
        -        lazy.spawn(f"{terminal} -e nvim /home/{user}/.todo"),

      
        53
        
        -        desc="Open ~/.todo file in nvim"

      
        54
        
        -    ),

      
        55
        47
         

      
        56
        48
             # Window control 

      
        57
        49
             Key([mod], "q", 

      ···
        137
        129
         

      
        138
        130
             # Menus(dmenu or/and rofi) 

      
        139
        131
             Key([mod, "shift"], "Return",

      
        140
        
        -        lazy.spawn("rofi -show drun"),

      
        
        132
        +        lazy.spawn("rofi -location 2 -show drun"),

      
        141
        133
                 desc="(Rofi) Program launcher"

      
        142
        134
             ),

      
        143
        135
             Key([mod, "shift"], "apostrophe",

      
        144
        
        -        lazy.spawn("rofi -show run"),

      
        
        136
        +        lazy.spawn("rofi -location 2 -show run"),

      
        145
        137
                 desc="(Rofi) Program launcher"

      
        146
        138
             ),

      
        147
        139
             Key([mod],"Escape",

      
M config/rofi/themes/nten-dmenu.rasi
···
        7
        7
             selected-foreground:        #ffffff;

      
        8
        8
         }

      
        9
        9
         #window {

      
        10
        
        -    location: north;

      
        
        10
        +    /* location: north; */

      
        11
        11
             width: 100%;

      
        12
        12
             height: 24px;

      
        13
        13
             padding: 0px;

      
M doom.d/config.el
···
        4
        4
         (setq doom-theme 'doom-one)

      
        5
        5
         (setq org-directory "~/org/")

      
        6
        6
         (setq display-line-numbers-type t)

      
        
        7
        +

      
        
        8
        +

      
        
        9
        +(defun gk-markdown-preview-buffer ()

      
        
        10
        +  (interactive)

      
        
        11
        +  (let* ((buf-this (buffer-name (current-buffer)))

      
        
        12
        +         (buf-html (get-buffer-create

      
        
        13
        +                    (format "*gk-md-html (%s)*" buf-this))))

      
        
        14
        +    (markdown-other-window (buffer-name buf-html))

      
        
        15
        +    (shr-render-buffer buf-html)

      
        
        16
        +    (eww-mode)

      
        
        17
        +    (kill-buffer buf-html)))

      
M doom.d/custom.el
···
        1
        1
         (custom-set-variables

      
        2
        
        - '(package-selected-packages '(zoutline)))

      
        3
        
        -(custom-set-faces)

      
        
        2
        + ;; custom-set-variables was added by Custom.

      
        
        3
        + ;; If you edit it by hand, you could mess it up, so be careful.

      
        
        4
        + ;; Your init file should contain only one such instance.

      
        
        5
        + ;; If there is more than one, they won't work right.

      
        
        6
        + '(package-selected-packages '(markdown-mode zoutline)))

      
        
        7
        +(custom-set-faces

      
        
        8
        + ;; custom-set-faces was added by Custom.

      
        
        9
        + ;; If you edit it by hand, you could mess it up, so be careful.

      
        
        10
        + ;; Your init file should contain only one such instance.

      
        
        11
        + ;; If there is more than one, they won't work right.

      
        
        12
        + )

      
M doom.d/init.el
···
        23
        23
                ;;minimap           ; show a map of the code on the side

      
        24
        24
                modeline            ; snazzy, Atom-inspired modeline, plus API

      
        25
        25
                ;;nav-flash         ; blink cursor line after big motions

      
        26
        
        -       ;;neotree           ; a project drawer, like NERDTree for vim

      
        
        26
        +       neotree           ; a project drawer, like NERDTree for vim

      
        27
        27
                ophints             ; highlight the region an operation acts on

      
        28
        28
                (popup +defaults)   ; tame sudden yet inevitable temporary windows

      
        29
        29
                tabs                ; a tab bar for Emacs

      
        30
        
        -       treemacs            ; a project drawer, like neotree but cooler

      
        
        30
        +       ;;treemacs          ; a project drawer, like neotree but cooler

      
        31
        31
                unicode             ; extended unicode support for various languages

      
        32
        
        -       vc-gutter           ; vcs diff in the fringe

      
        33
        
        -       vi-tilde-fringe     ; fringe tildes to mark beyond EOB

      
        
        32
        +       ;;vc-gutter         ; vcs diff in the fringe

      
        
        33
        +       ;;vi-tilde-fringe   ; fringe tildes to mark beyond EOB

      
        34
        34
                ;;window-select     ; visually switch windows

      
        35
        
        -       workspaces          ; tab emulation, persistence & separate workspaces

      
        
        35
        +       ;;workspaces        ; tab emulation, persistence & separate workspaces

      
        36
        36
                ;;zen               ; distraction-free coding or writing

      
        37
        37
         

      
        38
        38
                :editor

      ···
        51
        51
         

      
        52
        52
                :emacs

      
        53
        53
                dired             ; making dired pretty [functional]

      
        54
        
        -       electric          ; smarter, keyword-based electric-indent

      
        
        54
        +       ;;electric        ; smarter, keyword-based electric-indent

      
        55
        55
                ;;ibuffer         ; interactive buffer management

      
        56
        56
                undo              ; persistent, smarter undo for your inevitable mistakes

      
        57
        57
                vc                ; version-control and Emacs, sitting in a tree

      ···
        64
        64
         

      
        65
        65
                :checkers

      
        66
        66
                syntax              ; tasing you for every semicolon you forget

      
        67
        
        -       ;;spell             ; tasing you for misspelling mispelling

      
        
        67
        +       spell               ; tasing you for misspelling mispelling

      
        68
        68
                ;;grammar           ; tasing grammar mistake every you make

      
        69
        69
         

      
        70
        70
                :tools

      ···
        91
        91
         

      
        92
        92
                :os

      
        93
        93
                (:if IS-MAC macos)  ; improve compatibility with macOS

      
        94
        
        -       tty                 ; improve the terminal Emacs experience

      
        
        94
        +       ;;tty               ; improve the terminal Emacs experience

      
        95
        95
         

      
        96
        96
                :lang

      
        97
        97
                ;;agda              ; types of types of types of types...

      ···
        150
        150
                ;;swift             ; who asked for emoji variables?

      
        151
        151
                ;;terra             ; Earth and Moon in alignment for performance.

      
        152
        152
                ;;web               ; the tubes

      
        153
        
        -       yaml                ; JSON, but readable

      
        
        153
        +       ;;yaml              ; JSON, but readable

      
        154
        154
         

      
        155
        155
                :email

      
        156
        156
                ;;(mu4e +gmail)

      
M doom.d/packages.el
···
        1
        1
         (package! rainbow-mode)

      
        2
        2
         (package! async)

      
        3
        3
         (package! go-autocomplete)

      
        
        4
        +(package! markdown-mode)

      
        
        5
        +(package! hy-mode)

      
M script/dmenu/dmenu-config-edit.sh
···
        3
        3
         qtile

      
        4
        4
         berry

      
        5
        5
         openbox

      
        6
        
        -polybar

      
        
        6
        +alacritty

      
        
        7
        +kitty

      
        7
        8
         picom

      
        8
        
        -dunst

      
        
        9
        +ranger

      
        9
        10
         qutebrowser

      
        10
        
        -taskwarrior

      
        
        11
        +emacs

      
        
        12
        +nvim

      
        11
        13
         tmux

      
        12
        
        -alacritty

      
        13
        
        -kitty

      
        14
        
        -neovim

      
        15
        
        -ranger

      
        16
        
        -sh")

      
        
        14
        +dunst

      
        
        15
        +castero

      
        
        16
        +redshift

      
        
        17
        +rofi")

      
        17
        18
         

      
        18
        
        -choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file' $@)

      
        
        19
        +choice=$(echo -e "${options[@]}"|dmenu -p "Config edit" $@)

      
        19
        20
         case "$choice" in

      
        20
        
        -	dunst) choice="$HOME/.config/dunst/dunstrc" ;;

      
        21
        
        -    neovim) choice="$HOME/.config/nvim/init.vim" ;;

      
        22
        
        -    taskwarior) choice="$HOME/.taskrc" ;;

      
        23
        
        -	picom) choice="$HOME/.config/picom.conf" ;;

      
        24
        
        -    kitty) choice="$HOME/.config/kitty/kitty.conf" ;;

      
        25
        
        -    alacritty) choice="$hoME/.config/alacritty.yml" ;;

      
        26
        
        -	polybar) choice="$HOME/.config/polybar/config" ;;

      
        27
        
        -    tmux) choice="$HOME/.tmux.conf" ;;

      
        28
        
        -	i3) choice="$HOME/.config/i3/config" ;;

      
        29
        
        -    qtile) 

      
        30
        
        -        opt=$(echo -e "config.py\nautostart.sh"|dmenu -p 'Qtile' $@)

      
        31
        
        -        case "$opt" in

      
        32
        
        -            "config.py") choice="$HOME/.config/qtile/config.py" ;;

      
        33
        
        -            "autostart.sh") choice="$HOME/.config/qtile/autostart.sh" ;;

      
        
        21
        +    i3)

      
        
        22
        +        case "$(echo -e "config\npolybar"|dmenu -p "I3wm" $@)" in

      
        
        23
        +	        config)  choice="$HOME/.config/i3/config"      ;;

      
        
        24
        +            polybar) choice="$HOME/.config/polybar/config" ;;

      
        
        25
        +        esac

      
        
        26
        +    ;;

      
        
        27
        +    qtile)

      
        
        28
        +        case "$(echo -e "config\nautostart"|dmenu -p "Qtile" $@)" in

      
        
        29
        +            config)    choice="$HOME/.config/qtile/config.py"    ;;

      
        
        30
        +            autostart) choice="$HOME/.config/qtile/autostart.sh" ;;

      
        34
        31
                 esac

      
        35
        32
             ;;

      
        36
        33
             berry)

      
        37
        
        -        declare opt=$(echo -e "berry\npolybar\nsxhkd"|dmenu -p 'Berry' $@)

      
        38
        
        -        case "$opt" in

      
        39
        
        -            "berry") choice="$HOME/.config/berry/autostart" ;;

      
        40
        
        -            "polybar") choice="$HOME/.config/berry/polybar/polybar" ;;

      
        41
        
        -            "sxhkd") choice="$HOME/.config/berry/sxhkdrc" ;;

      
        
        34
        +        case "$(echo -e "config\npolybar\nsxhkd"|dmenu -p "Berry" $@)" in

      
        
        35
        +            config)  choice="$HOME/.config/berry/autostart"       ;;

      
        
        36
        +            polybar) choice="$HOME/.config/berry/polybar/polybar" ;;

      
        
        37
        +            sxhkd)   choice="$HOME/.config/berry/sxhkdrc"         ;;

      
        42
        38
                 esac

      
        43
        39
             ;;

      
        44
        40
             openbox)

      
        45
        
        -        opt=$(echo -e "openbox\nautostart\nmenu\nreload"|dmenu -p 'OpenBox' $@)

      
        46
        
        -        case "$opt" in

      
        47
        
        -            "openbox") choice="$HOME/.config/openbox/rc.xml" ;;

      
        48
        
        -            "autostart") choice="$HOME/.config/openbox/autostart" ;;

      
        49
        
        -            "menu") choice="$HOME/.config/openbox/menu.xml" ;;

      
        50
        
        -            "reload") openbox --reconfigure && pkill kitty ;;

      
        
        41
        +        case "$(echo -p "config\nautostart\nmenu\ntint2|dmenu -p "OpenBox" $@")" in

      
        
        42
        +            config)    choice="$HOME/.config/openbox/rc.xml"    ;;

      
        
        43
        +            autostart) choice="$HOME/.config/openbox/autostart" ;;

      
        
        44
        +            menu)      choice="$HOME/.config/openbox/menu.xml"  ;;

      
        
        45
        +            tint2)     choice="$HOME/.config/tint2/tint2rc"     ;;

      
        51
        46
                 esac

      
        52
        47
             ;;

      
        
        48
        +    alacritty) choice="$hoME/.config/alacritty.yml"    ;;

      
        
        49
        +    kitty)     choice="$HOME/.config/kitty/kitty.conf" ;;

      
        
        50
        +	picom)     choice="$HOME/.config/picom.conf"       ;;

      
        
        51
        +    ranger)    choice="$HOME/.config/ranger/rc.conf"   ;;

      
        53
        52
             qutebrowser)

      
        54
        
        -        why=$(echo -e "config.py\nquickmarks"|dmenu -p 'Qutebrowser' $@)

      
        55
        
        -        case "$why" in

      
        56
        
        -            "config.py") choice="$HOME/.config/qutebrowser/config.py" ;;

      
        57
        
        -            "quickmarks") choice="$HOME/.config/qutebrowser/quickmarks" ;;

      
        
        53
        +        case "$(echo -e "config\nquickmarks"|dmenu -p "Qutebrowser" $@)" in

      
        
        54
        +            config)     choice="$HOME/.config/qutebrowser/config.py"  ;;

      
        
        55
        +            quickmarks) choice="$HOME/.config/qutebrowser/quickmarks" ;;

      
        58
        56
                 esac

      
        59
        57
             ;;

      
        60
        
        -    ranger)

      
        61
        
        -        why=$(echo -e "rc.conf\nrifle.conf"|dmenu -p 'Ranger' $@)

      
        62
        
        -        case "$why" in

      
        63
        
        -            "rc.conf") choice="$HOME/.config/ranger/rc.conf" ;;

      
        64
        
        -            "rifle.conf") choice="$HOME/.config/ranger/rifle.conf" ;;

      
        
        58
        +    emacs)

      
        
        59
        +        case "$(echo -e "config.el\ncustom.el\ninit.el\npackages.el"|dmenu -p "Doom emacs" $@)" in

      
        
        60
        +            config.el)   choice="$HOME/.doom.d/config.el"   ;;

      
        
        61
        +            init.el)     choice="$HOME/.doom.d/init.el"     ;;

      
        
        62
        +            custom.el)   choice="$HOME/.doom.d/custom.el"   ;;

      
        
        63
        +            packages.el) choice="$HOME/.doom.d/packages.el" ;;

      
        65
        64
                 esac

      
        66
        65
             ;;

      
        67
        
        -    sh)

      
        68
        
        -        why=$(echo -e "zsh\nfish\nbash"|dmenu -p "Shell" $@)

      
        69
        
        -        case "$why" in

      
        70
        
        -            zsh) choice="$HOME/.zshrc" ;;

      
        71
        
        -            fish) choice="$HOME/.config/fish/config.fish" ;;

      
        72
        
        -            bash) choice="$hoME/.bashrc"

      
        
        66
        +    nvim)     choice="$HOME/.config/nvim/init.vim"         ;;

      
        
        67
        +    tmux)     choice="$HOME/.tmux.conf"                    ;;

      
        
        68
        +    dunst)    choice="$HOME/.config/dunst/dunstrc"         ;;

      
        
        69
        +    zsh)      choice="$HOME/.zshrc"                        ;;

      
        
        70
        +    castero)  choice="$HOME/.config/castero/castero.conf"  ;;

      
        
        71
        +    redshift) choice="$HOME/.config/redshift.conf"         ;;

      
        
        72
        +    rofi)

      
        
        73
        +        case "$(echo -e "config\nnten-dmenu"|dmenu -p "Rofi" $@)" in

      
        
        74
        +            config)     choice="$HOME/.config/rofi/config"                 ;;

      
        
        75
        +            nten-dmenu) choice="$HOME/.config/rofi/themes/nten-dmenu.rasi" ;;

      
        73
        76
                 esac

      
        74
        77
             ;;

      
        75
        
        -	*) exit 1 ;;

      
        76
        78
         esac

      
        77
        79
         alacritty -e nvim "$choice"

      
        
        80
        +# emacsclient -c -a emacs "$choice"

      
M script/dmenu/dmenu-power.sh
···
        1
        1
         #!/bin/sh

      
        2
        
        -declare options=("Poweroff

      
        
        2
        +declare options=("ShutDown

      
        3
        3
         Lock

      
        4
        4
         Logout

      
        5
        5
         Reboot")

      
        6
        6
         

      
        7
        
        -choice=$(echo -e "${options[@]}" | dmenu -p 'Power' $@)

      
        
        7
        +choice=$(echo -e "${options[@]}" | dmenu -p "Power" $@)

      
        8
        8
         case "$choice" in

      
        9
        
        -    "Poweroff")

      
        10
        
        -        declare opt=("Yes\nNo")

      
        11
        
        -        yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)

      
        12
        
        -        case "$yesno" in

      
        
        9
        +    "ShutDown")

      
        
        10
        +        case "$(echo -e "Yes\nNo"|dmenu -p "ShutDown" $@)" in

      
        13
        11
                     "Yes") exec systemctl poweroff ;;

      
        14
        
        -            "No") exec exit 0 ;;

      
        
        12
        +            "No")  exec exit 0             ;;

      
        15
        13
                 esac

      
        16
        14
             ;;

      
        17
        
        -    "Lock") 

      
        18
        
        -        exec betterlockscreen --off 300 -t "Computer is lockerd" -l ;;

      
        
        15
        +    "Lock") exec betterlockscreen --off 300 -t "Computer is lockerd" -l ;;

      
        19
        16
             "Logout")

      
        20
        
        -        declare opt=("Yes\nNo")

      
        21
        
        -        yesno=$(echo -e "${opt[@]}" | dmenu -p 'Logout' $@)

      
        22
        
        -        case "$yesno" in

      
        23
        
        -            "Yes") 

      
        24
        
        -                if [[ "$(pgrep spectrwm)" ]]; then

      
        25
        
        -                    exec pkill spectrwm

      
        26
        
        -                else

      
        27
        
        -                    exec loginctl terminate-session $XDG_SESSION_ID

      
        28
        
        -                fi

      
        29
        
        -            ;;

      
        30
        
        -            "No") exec exit 0 ;;

      
        
        17
        +        case "$(echo -e "Yes\nNo"|dmenu -p "ShutDown" $@)" in

      
        
        18
        +            "Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;

      
        
        19
        +            "No")  exec exit 0                                     ;;

      
        31
        20
                 esac

      
        32
        21
             ;;

      
        33
        22
             "Reboot")

      
        34
        
        -        declare opt=("Yes\nNo")

      
        35
        
        -        yesno=$(echo -e "${opt[@]}" | dmenu -p 'Power' $@)

      
        36
        
        -        case "$yesno" in

      
        
        23
        +        case "$(echo -e "Yes\nNo"|dmenu -p "Reboot" $@)" in

      
        37
        24
                     "Yes") exec systemctl reboot ;;

      
        38
        
        -            "No") exec exit 0 ;;

      
        
        25
        +            "No")  exec exit 0           ;;

      
        39
        26
                 esac

      
        40
        27
             ;;

      
        41
        
        -    *) exit 1 ;;

      
        42
        28
         esac

      
D script/dmenu/dmenu-sysmon.sh
···
        1
        
        -#!/bin/sh

      
        2
        
        -

      
        3
        
        -declare options=("htop

      
        4
        
        -bashtop

      
        5
        
        -gtop")

      
        6
        
        -

      
        7
        
        -choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'System monitor ')

      
        8
        
        -

      
        9
        
        -case "$choice" in

      
        10
        
        -    htop) choice="htop" ;;

      
        11
        
        -    bashtop) choice="bashtop" ;;

      
        12
        
        -    gtop) choice="gtop" ;;

      
        13
        
        -    *) exit 1 ;;

      
        14
        
        -esac

      
        15
        
        -kitty -e "$choice"

      
M zshrc
···
        42
        42
         alias df="df -h"

      
        43
        43
         alias lns="ln -s"

      
        44
        44
         alias uln="unlink"

      
        
        45
        +alias rf="rm -rf"

      
        45
        46
         

      
        46
        47
         # Program

      
        47
        48
         alias vim="nvim"

      ···
        69
        70
         alias doomupgrade="$HOME/.emacs.d/bin/doom upgrade"

      
        70
        71
         alias doomdoctor="$HOME/.emacs.d/bin/doom doctor"

      
        71
        72
         alias doom="$HOME/.emacs.d/bin/doom"

      
        
        73
        +

      
        
        74
        +eval $(thefuck --alias)