mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 00:06:12 +01:00
Compare commits
7 Commits
d235d500f7
...
8f0c663217
| Author | SHA1 | Date | |
|---|---|---|---|
|
8f0c663217
|
|||
|
268940d75a
|
|||
|
9b438f1c3d
|
|||
|
30eafce614
|
|||
|
ccf7560a5f
|
|||
|
c7df2d7e71
|
|||
|
28a9c36323
|
@@ -26,7 +26,7 @@ font:
|
||||
# - (Linux/BSD) monospace
|
||||
# - (Windows) Consolas
|
||||
family: Noto Color Emoji
|
||||
family: SauceCodePro Nerd Font Mono
|
||||
family: SauceCodePro NFM
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Regular
|
||||
@@ -108,9 +108,6 @@ bell:
|
||||
# Visual bell animation color.
|
||||
color: '#FF0000' #'#4C566A'
|
||||
|
||||
command:
|
||||
program: aplay
|
||||
args: ["/home/vectorkappa/Music/beeps/wav/erro.wav"]
|
||||
hints:
|
||||
# URL launcher
|
||||
#
|
||||
@@ -134,7 +131,7 @@ hints:
|
||||
key: U
|
||||
mods: Control|Shift
|
||||
# launcher:
|
||||
# program: xdg-open
|
||||
# program: xdg-open
|
||||
#args: []
|
||||
#key_bindings:
|
||||
#- { key: Paste, action: Paste }
|
||||
|
||||
12
bin/touch-mode
Executable file
12
bin/touch-mode
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/zsh
|
||||
if [ -e /tmp/.touchmode.lock ]; then
|
||||
# disable touchmode
|
||||
hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1"
|
||||
pkill nwg-dock-hyprl
|
||||
rm /tmp/.touchmode.lock
|
||||
else
|
||||
# enable touchmode
|
||||
hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1.5"
|
||||
nwg-dock-hyprland & disown;
|
||||
touch /tmp/.touchmode.lock
|
||||
fi
|
||||
@@ -1,2 +0,0 @@
|
||||
[Desktop]
|
||||
Session=bspwm
|
||||
@@ -1,50 +1,40 @@
|
||||
! Copyright (c) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
|
||||
! Copyright (c) 2016-present Sven Greb <code@svengreb.de>
|
||||
URxvt.font: xft:SauceCodePro NFM:size=10:antialias=true:minspace=true
|
||||
URxvt.boldFont: xft:SauceCodePro NFM:bold:size=10:antialias=true:minspace=true
|
||||
|
||||
! Project: Nord XResources
|
||||
! Version: 0.1.0
|
||||
! Repository: https://github.com/arcticicestudio/nord-xresources
|
||||
! License: MIT
|
||||
|
||||
#define nord0 #2E3440
|
||||
#define nord1 #3B4252
|
||||
#define nord2 #434C5E
|
||||
#define nord3 #4C566A
|
||||
#define nord4 #D8DEE9
|
||||
#define nord5 #E5E9F0
|
||||
#define nord6 #ECEFF4
|
||||
#define nord7 #8FBCBB
|
||||
#define nord8 #88C0D0
|
||||
#define nord9 #81A1C1
|
||||
#define nord10 #5E81AC
|
||||
#define nord11 #BF616A
|
||||
#define nord12 #D08770
|
||||
#define nord13 #EBCB8B
|
||||
#define nord14 #A3BE8C
|
||||
#define nord15 #B48EAD
|
||||
|
||||
URxvt.font: xft:SauceCodePro Nerd Font:size=10:antialias=true:minspace=true
|
||||
URxvt.boldFont: xft:SauceCodePro Nerd Font:bold:size=10:antialias=true:minspace=true
|
||||
|
||||
*.foreground: nord6
|
||||
*.background: nord0
|
||||
*.cursorColor: nord4
|
||||
*.cursorColor: #939AB7
|
||||
*fading: 35
|
||||
*fadeColor: nord3
|
||||
*fadeColor: #6E738D
|
||||
*background: #24273A
|
||||
*foreground: #CAD3F5
|
||||
|
||||
*.color0: nord1
|
||||
*.color1: nord11
|
||||
*.color2: nord14
|
||||
*.color3: nord13
|
||||
*.color4: nord9
|
||||
*.color5: nord15
|
||||
*.color6: nord8
|
||||
*.color7: nord5
|
||||
*.color8: nord3
|
||||
*.color9: nord11
|
||||
*.color10: nord14
|
||||
*.color11: nord13
|
||||
*.color12: nord9
|
||||
*.color13: nord15
|
||||
*.color14: nord7
|
||||
*.color15: nord6
|
||||
! black
|
||||
*color0: #494D64
|
||||
*color8: #5B6078
|
||||
|
||||
! red
|
||||
*color1: #ED8796
|
||||
*color9: #ED8796
|
||||
|
||||
! green
|
||||
*color2: #A6DA95
|
||||
*color10: #A6DA95
|
||||
|
||||
! yellow
|
||||
*color3: #EED49F
|
||||
*color11: #EED49F
|
||||
|
||||
! blue
|
||||
*color4: #8AADF4
|
||||
*color12: #8AADF4
|
||||
|
||||
! magenta
|
||||
*color5: #F5BDE6
|
||||
*color13: #F5BDE6
|
||||
|
||||
! cyan
|
||||
*color6: #8BD5CA
|
||||
*color14: #8BD5CA
|
||||
|
||||
! white
|
||||
*color7: #B8C0E0
|
||||
*color15: #A5ADCB
|
||||
|
||||
7
hyprland/.config/hypr/autostart.sh
Executable file
7
hyprland/.config/hypr/autostart.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/dash
|
||||
xhost + local: ;
|
||||
swww init;
|
||||
flameshot & disown;
|
||||
/usr/lib/mate-polkit/polkit-mate-authentication-agent-1 &
|
||||
wayvnc & disown;
|
||||
$HOME/.config/waybar/launcher.sh
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
monitor=DP-1,1920x1080@60,0x0,1
|
||||
monitor=DP-3,1920x1080@60,1920x0,1
|
||||
monitor=eDP-1,1920x1080@60,0x0,1
|
||||
#workspace=DP-1,1
|
||||
workspace=1, m:DP-1
|
||||
workspace=2, m:DP-1
|
||||
@@ -26,6 +27,9 @@ input {
|
||||
kb_rules=
|
||||
numlock_by_default=true
|
||||
follow_mouse=1
|
||||
touchpad {
|
||||
natural_scroll=true
|
||||
}
|
||||
}
|
||||
|
||||
general {
|
||||
@@ -67,12 +71,17 @@ dwindle {
|
||||
#windowrule=pseudo,abc
|
||||
#windowrule=monitor 0,xyz
|
||||
|
||||
exec-once=$HOME/.local/share/hyprload/hyprload.sh
|
||||
# example binds
|
||||
bind=SUPER,Z,exec,alacritty
|
||||
bind=SUPERSHIFT,Z,exec,kitty
|
||||
bind=SUPER,X,killactive,
|
||||
bind=SUPER_SHIFT,Q,exit,
|
||||
bind=SUPER,E,exec,nemo
|
||||
bind=SUPER,F,togglefloating,
|
||||
bind=SUPER,F,fullscreen,1
|
||||
bind=SUPERSHIFT,F,fullscreen,0
|
||||
bind=SUPERSHIFT,L,exec,gtklock
|
||||
bind=SUPER,T,togglefloating,
|
||||
bind=SUPER,R,exec,wofi --show drun -o DP-3
|
||||
bind=SUPER,P,pseudo,
|
||||
bind=SUPER,SPACE,exec,rofi -modi drun,run,window,calc -show drun
|
||||
@@ -86,6 +95,9 @@ bind=SUPER,right,movefocus,r
|
||||
bind=SUPER,up,movefocus,u
|
||||
bind=SUPER,down,movefocus,d
|
||||
|
||||
bindm = SUPER, mouse:272, movewindow
|
||||
bindm = SUPER, mouse:273, resizewindow
|
||||
|
||||
bind=SUPER,1,workspace,1
|
||||
bind=SUPER,2,workspace,2
|
||||
bind=SUPER,3,workspace,3
|
||||
@@ -108,13 +120,33 @@ bind=SUPER_SHIFT,8,movetoworkspace,8
|
||||
bind=SUPER_SHIFT,9,movetoworkspace,9
|
||||
bind=SUPER_SHIFT,0,movetoworkspace,10
|
||||
|
||||
exec-once=/usr/lib/mate-polkit/polkit-mate-authentication-agent-1
|
||||
exec-once=/bin/eww open bar
|
||||
bind=SUPERSHIFT,S,exec,flameshot gui
|
||||
|
||||
# T14gen2 FN KEYS
|
||||
|
||||
bind=,XF86AudioMicMute,exec,amixer set Capture toggle
|
||||
bind=,XF86AudioMute,exec,amixer set Master toggle
|
||||
bind=,XF86AudioRaiseVolume,exec,amixer set Master playback 5%+
|
||||
bind=,XF86AudioLowerVolume,exec,amixer set Master playback 5%-
|
||||
bind=,XF86MonBrightnessUp,exec,xbacklight -inc 5
|
||||
bind=,XF86MonBrightnessDown,exec,xbacklight -dec 5
|
||||
bind=,XF86Launch2,exec,touch-mode
|
||||
bind=CTRL,XF86Launch2,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1"
|
||||
bind=SHIFT,XF86Launch2,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1.5"
|
||||
bind=SHIFT,XF86MonBrightnessDown,exec,xbacklight -set 0.01
|
||||
bind=SHIFT,XF86MonBrightnessUp,exec,xbacklight -set 100
|
||||
|
||||
exec-once=dash $HOME/.config/hypr/autostart.sh
|
||||
exec-once=hyprctl setcursor Vimix-white-cursors 24
|
||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
|
||||
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
|
||||
|
||||
windowrulev2 = pin,class:^(scrcpy)$
|
||||
windowrulev2 = move onscreen 100%-30,class:^(scrcpy)$
|
||||
|
||||
plugin:hyprfocus {
|
||||
enabled = yes
|
||||
|
||||
@@ -135,7 +167,7 @@ plugin:hyprfocus {
|
||||
}
|
||||
|
||||
shrink {
|
||||
shrink_percentage = 0.9
|
||||
shrink_percentage = 0.98
|
||||
|
||||
in_bezier = bezIn
|
||||
in_speed = 0.5
|
||||
@@ -145,4 +177,3 @@ plugin:hyprfocus {
|
||||
}
|
||||
}
|
||||
|
||||
exec-once=$HOME/.local/share/hyprload/hyprload.sh
|
||||
|
||||
@@ -21,7 +21,7 @@ item_padding_x = 8
|
||||
item_radius = 0
|
||||
item_border = 0
|
||||
sep_height = 5
|
||||
font = SauceCodePro Nerd Font Mono 12px
|
||||
font = SauceCodePro NFM 12px
|
||||
icon_size = 26
|
||||
icon_text_spacing = 10
|
||||
icon_norm_alpha = 100
|
||||
@@ -41,7 +41,7 @@ verbosity = 4
|
||||
# csv_cmd = apps
|
||||
# edge_snap_x = 30
|
||||
# monitor = 0
|
||||
# hover_delay = 100
|
||||
hover_delay = 100
|
||||
# hide_back_items = 1
|
||||
# columns = 1
|
||||
# tabs = 120
|
||||
@@ -57,7 +57,7 @@ verbosity = 4
|
||||
# item_margin_x = 3
|
||||
# item_halign = left
|
||||
# sep_halign = left
|
||||
# sep_markup =
|
||||
# sep_markup =
|
||||
# font_fallback = xtg
|
||||
# arrow_string = ▸
|
||||
# arrow_width = 15
|
||||
@@ -70,5 +70,5 @@ verbosity = 4
|
||||
# csv_name_format = %n (%g)
|
||||
# csv_single_window = 0
|
||||
# csv_no_dirs = 0
|
||||
# csv_i18n =
|
||||
# csv_i18n =
|
||||
# csv_no_duplicates = 0
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
" -----------------
|
||||
" GUI - Settings
|
||||
" -----------------
|
||||
set guifont=SauceCodePro\ Nerd\ Font\ Mono:12
|
||||
set guifont=SauceCodePro\ NFM:12
|
||||
set linespace=4
|
||||
set title
|
||||
|
||||
set mouse=a
|
||||
let g:neovide_input_use_logo=v:false
|
||||
|
||||
@@ -23,7 +23,7 @@ Plug 'elkowar/yuck.vim'
|
||||
Plug 'junegunn/vim-github-dashboard'
|
||||
Plug 'honza/vim-snippets'
|
||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||
Plug 'ActivityWatch/aw-watcher-vim'
|
||||
"Plug 'ActivityWatch/aw-watcher-vim'
|
||||
Plug 'vim-scripts/indentLine.vim'
|
||||
Plug 'rhysd/git-messenger.vim'
|
||||
"Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
|
||||
@@ -49,11 +49,11 @@ padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
|
||||
font-0 = "SauceCodePro Nerd Font Mono:size=10;1"
|
||||
font-0 = "SauceCodePro NFM:size=10;1"
|
||||
font-1 = "Unifont:size=10:antialias=false;0"
|
||||
font-2 = "Siji:pixelsize=10;1"
|
||||
font-3 = "SauceCodePro Nerd Font Mono:size=16;4"
|
||||
font-4 = "SauceCodePro Nerd Font Mono:size=13;3"
|
||||
font-3 = "SauceCodePro NFM:size=16;4"
|
||||
font-4 = "SauceCodePro NFM:size=13;3"
|
||||
font-5 = "Noto Color Emoji:scale=10;1"
|
||||
|
||||
modules-left = rofi bspwm
|
||||
@@ -95,11 +95,11 @@ padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
|
||||
font-0 = "SauceCodePro Nerd Font Mono:size=10"
|
||||
font-0 = "SauceCodePro NFM:size=10"
|
||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||
font-2 = siji:pixelsize=10;1
|
||||
font-3 = "SauceCodePro Nerd Font Mono:size=16;4"
|
||||
font-4 = "SauceCodePro Nerd Font Mono:size=13;2"
|
||||
font-3 = "SauceCodePro NFM:size=16;4"
|
||||
font-4 = "SauceCodePro NFM:size=13;2"
|
||||
|
||||
modules-center = mpd
|
||||
modules-right = pulseaudio
|
||||
@@ -133,11 +133,11 @@ padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
|
||||
font-0 = "SauceCodePro Nerd Font Mono:size=10"
|
||||
font-0 = "SauceCodePro NFM:size=10"
|
||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||
font-2 = siji:pixelsize=10;1
|
||||
font-3 = "SauceCodePro Nerd Font Mono:size=16;4"
|
||||
font-4 = "SauceCodePro Nerd Font Mono:size=13;2"
|
||||
font-3 = "SauceCodePro NFM:size=16;4"
|
||||
font-4 = "SauceCodePro NFM:size=13;2"
|
||||
|
||||
modules-left = restart_polybar
|
||||
modules-center = temperature
|
||||
@@ -265,7 +265,7 @@ format-padding = 0
|
||||
label = %title%
|
||||
label-maxlen = 40
|
||||
|
||||
label-empty =
|
||||
label-empty =
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
|
||||
177
waybar/.config/waybar/config
Normal file
177
waybar/.config/waybar/config
Normal file
@@ -0,0 +1,177 @@
|
||||
{
|
||||
"layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["custom/archicon","hyprland/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
|
||||
"modules-center": ["hyprland/window"],
|
||||
"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "clock", "tray"],
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "warp-on-scroll": false,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"hyprland/workspaces":{
|
||||
"active-only":false,
|
||||
"format":"{name}",
|
||||
"persistent-workspaces": {
|
||||
"*":10,
|
||||
},
|
||||
},
|
||||
"keyboard-state": {
|
||||
"numlock": false,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/scratchpad": {
|
||||
"format": "{icon} {count}",
|
||||
"show-empty": false,
|
||||
"format-icons": ["", ""],
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{app}: {title}"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", " "]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
"on-click-right": "kitty nmtui"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
},
|
||||
"custom/archicon": {
|
||||
"format":"",
|
||||
"on-click":"nwg-menu -d -fm nemo -cmd-lock gtklock -va top",
|
||||
"tooltip":false,
|
||||
}
|
||||
|
||||
}
|
||||
10
waybar/.config/waybar/launcher.sh
Executable file
10
waybar/.config/waybar/launcher.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/dash
|
||||
CONFIG_FILES="$HOME/.config/waybar/config $HOME/.config/waybar/style.css"
|
||||
|
||||
trap "killall waybar" EXIT
|
||||
|
||||
while true; do
|
||||
waybar &
|
||||
inotifywait -e create,modify $CONFIG_FILES
|
||||
killall waybar
|
||||
done
|
||||
305
waybar/.config/waybar/style.css
Normal file
305
waybar/.config/waybar/style.css
Normal file
@@ -0,0 +1,305 @@
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: "NotoSans NFP", FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.5);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: #964B00;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: #fff0f5;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #51a37a;
|
||||
}
|
||||
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#privacy {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#privacy-item {
|
||||
padding: 0 5px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#privacy-item.screenshare {
|
||||
background-color: #cf5700;
|
||||
}
|
||||
|
||||
#privacy-item.audio-in {
|
||||
background-color: #1ca000;
|
||||
}
|
||||
|
||||
#privacy-item.audio-out {
|
||||
background-color: #0069d4;
|
||||
}
|
||||
#custom-archicon {
|
||||
background-color: #ff0000;
|
||||
min-width: 40px;
|
||||
}
|
||||
141
zsh/.p10k.zsh
141
zsh/.p10k.zsh
@@ -1,7 +1,7 @@
|
||||
# Generated by Powerlevel10k configuration wizard on 2022-10-18 at 23:43 CEST.
|
||||
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 30611.
|
||||
# Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 2 lines,
|
||||
# solid, right frame, darkest-ornaments, sparse, many icons, concise, transient_prompt,
|
||||
# Generated by Powerlevel10k configuration wizard on 2023-11-22 at 09:26 CET.
|
||||
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 61526.
|
||||
# Wizard options: nerdfont-v3 + powerline, small icons, unicode, lean, 2 lines, solid,
|
||||
# right frame, darkest-ornaments, sparse, many icons, concise, transient_prompt,
|
||||
# instant_prompt=quiet.
|
||||
# Type `p10k configure` to generate another config.
|
||||
#
|
||||
@@ -54,33 +54,33 @@
|
||||
anaconda # conda environment (https://conda.io/)
|
||||
pyenv # python environment (https://github.com/pyenv/pyenv)
|
||||
goenv # go environment (https://github.com/syndbg/goenv)
|
||||
# nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
|
||||
nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
|
||||
nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
|
||||
# nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
|
||||
node_version # node.js version
|
||||
go_version # go version (https://golang.org)
|
||||
rust_version # rustc version (https://www.rust-lang.org)
|
||||
nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
|
||||
# node_version # node.js version
|
||||
# go_version # go version (https://golang.org)
|
||||
rust_version # rustc version (https://www.rust-lang.org)
|
||||
# dotnet_version # .NET version (https://dotnet.microsoft.com)
|
||||
# php_version # php version (https://www.php.net/)
|
||||
# laravel_version # laravel php framework version (https://laravel.com/)
|
||||
# java_version # java version (https://www.java.com/)
|
||||
package # name@version from package.json (https://docs.npmjs.com/files/package.json)
|
||||
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
||||
# rvm # ruby version from rvm (https://rvm.io)
|
||||
package # name@version from package.json (https://docs.npmjs.com/files/package.json)
|
||||
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
||||
rvm # ruby version from rvm (https://rvm.io)
|
||||
fvm # flutter version management (https://github.com/leoafarias/fvm)
|
||||
luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv)
|
||||
jenv # java version from jenv (https://github.com/jenv/jenv)
|
||||
# plenv # perl version from plenv (https://github.com/tokuhirom/plenv)
|
||||
# perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew)
|
||||
plenv # perl version from plenv (https://github.com/tokuhirom/plenv)
|
||||
perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew)
|
||||
phpenv # php version from phpenv (https://github.com/phpenv/phpenv)
|
||||
# scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv)
|
||||
scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv)
|
||||
haskell_stack # haskell version from stack (https://haskellstack.org/)
|
||||
kubecontext # current kubernetes context (https://kubernetes.io/)
|
||||
terraform # terraform workspace (https://www.terraform.io)
|
||||
# terraform_version # terraform version (https://www.terraform.io)
|
||||
# aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
||||
# aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
|
||||
# azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
|
||||
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
|
||||
aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
|
||||
azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
|
||||
gcloud # google cloud cli account and project (https://cloud.google.com/)
|
||||
google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production)
|
||||
toolbox # toolbox name (https://github.com/containers/toolbox)
|
||||
@@ -88,33 +88,36 @@
|
||||
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
|
||||
ranger # ranger shell (https://github.com/ranger/ranger)
|
||||
nnn # nnn shell (https://github.com/jarun/nnn)
|
||||
lf # lf shell (https://github.com/gokcehan/lf)
|
||||
xplr # xplr shell (https://github.com/sayanarijit/xplr)
|
||||
vim_shell # vim shell indicator (:sh)
|
||||
midnight_commander # midnight commander shell (https://midnight-commander.org/)
|
||||
nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)
|
||||
chezmoi_shell # chezmoi shell (https://www.chezmoi.io/)
|
||||
# vpn_ip # virtual private network indicator
|
||||
# load # CPU load
|
||||
# disk_usage # disk usage
|
||||
# ram # free RAM
|
||||
# swap # used swap
|
||||
# todo # todo items (https://github.com/todotxt/todo.txt-cli)
|
||||
todo # todo items (https://github.com/todotxt/todo.txt-cli)
|
||||
timewarrior # timewarrior tracking status (https://timewarrior.net/)
|
||||
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
||||
per_directory_history # Oh My Zsh per-directory-history local/global indicator
|
||||
# cpu_arch # CPU architecture
|
||||
time # current time
|
||||
time # current time
|
||||
# =========================[ Line #2 ]=========================
|
||||
newline
|
||||
command_execution_time # duration of the last command
|
||||
# ip # ip address and bandwidth usage for a specified network interface
|
||||
# public_ip # public IP address
|
||||
# proxy # system-wide http/https/ftp proxy
|
||||
battery # internal battery
|
||||
battery # internal battery
|
||||
# wifi # wifi speed
|
||||
# example # example user-defined segment (see prompt_example function below)
|
||||
)
|
||||
|
||||
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
|
||||
typeset -g POWERLEVEL9K_MODE=nerdfont-complete
|
||||
typeset -g POWERLEVEL9K_MODE=nerdfont-v3
|
||||
# When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
|
||||
# icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.
|
||||
typeset -g POWERLEVEL9K_ICON_PADDING=none
|
||||
@@ -237,7 +240,7 @@
|
||||
.java-version
|
||||
.perl-version
|
||||
.php-version
|
||||
.tool-version
|
||||
.tool-versions
|
||||
.shorten_folder_marker
|
||||
.svn
|
||||
.terraform
|
||||
@@ -344,7 +347,7 @@
|
||||
|
||||
#####################################[ vcs: git status ]######################################
|
||||
# Branch icon. Set this parameter to '\UE0A0 ' for the popular Powerline branch icon.
|
||||
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\UE0A0 '
|
||||
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 '
|
||||
|
||||
# Untracked files icon. It's really a question mark, your font isn't broken.
|
||||
# Change the value of this parameter to show a different icon.
|
||||
@@ -423,11 +426,17 @@
|
||||
res+=" ${modified}wip"
|
||||
fi
|
||||
|
||||
# ⇣42 if behind the remote.
|
||||
(( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
|
||||
# ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
|
||||
(( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
|
||||
(( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
|
||||
if (( VCS_STATUS_COMMITS_AHEAD || VCS_STATUS_COMMITS_BEHIND )); then
|
||||
# ⇣42 if behind the remote.
|
||||
(( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
|
||||
# ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
|
||||
(( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
|
||||
(( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
|
||||
elif [[ -n $VCS_STATUS_REMOTE_BRANCH ]]; then
|
||||
# Tip: Uncomment the next line to display '=' if up to date with the remote.
|
||||
# res+=" ${clean}="
|
||||
fi
|
||||
|
||||
# ⇠42 if behind the push remote.
|
||||
(( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}"
|
||||
(( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
|
||||
@@ -555,7 +564,7 @@
|
||||
# Background jobs color.
|
||||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=70
|
||||
# Custom icon.
|
||||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION=''
|
||||
# typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
#######################[ direnv: direnv status (https://direnv.net/) ]########################
|
||||
# Direnv color.
|
||||
@@ -724,6 +733,12 @@
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
######################[ lf: lf shell (https://github.com/gokcehan/lf) ]#######################
|
||||
# lf shell color.
|
||||
typeset -g POWERLEVEL9K_LF_FOREGROUND=72
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################
|
||||
# xplr shell color.
|
||||
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=72
|
||||
@@ -746,12 +761,21 @@
|
||||
# Nix shell color.
|
||||
typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=74
|
||||
|
||||
# Display the icon of nix_shell if PATH contains a subdirectory of /nix/store.
|
||||
# typeset -g POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH=false
|
||||
|
||||
# Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line.
|
||||
# typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION=
|
||||
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
##################[ chezmoi_shell: chezmoi shell (https://www.chezmoi.io/) ]##################
|
||||
# chezmoi shell color.
|
||||
typeset -g POWERLEVEL9K_CHEZMOI_SHELL_FOREGROUND=33
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_CHEZMOI_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
##################################[ disk_usage: disk usage ]##################################
|
||||
# Colors for different levels of disk usage.
|
||||
typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=35
|
||||
@@ -845,6 +869,19 @@
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
######[ per_directory_history: Oh My Zsh per-directory-history local/global indicator ]#######
|
||||
# Color when using local/global history.
|
||||
typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_FOREGROUND=135
|
||||
typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_FOREGROUND=130
|
||||
|
||||
# Tip: Uncomment the next two lines to hide "local"/"global" text and leave just the icon.
|
||||
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_CONTENT_EXPANSION=''
|
||||
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_CONTENT_EXPANSION=''
|
||||
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_LOCAL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
# typeset -g POWERLEVEL9K_PER_DIRECTORY_HISTORY_GLOBAL_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
################################[ cpu_arch: CPU architecture ]################################
|
||||
# CPU architecture color.
|
||||
typeset -g POWERLEVEL9K_CPU_ARCH_FOREGROUND=172
|
||||
@@ -981,6 +1018,11 @@
|
||||
##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############
|
||||
# Nvm color.
|
||||
typeset -g POWERLEVEL9K_NVM_FOREGROUND=70
|
||||
# If set to false, hide node version if it's the same as default:
|
||||
# $(nvm version current) == $(nvm version default).
|
||||
typeset -g POWERLEVEL9K_NVM_PROMPT_ALWAYS_SHOW=false
|
||||
# If set to false, hide node version if it's equal to "system".
|
||||
typeset -g POWERLEVEL9K_NVM_SHOW_SYSTEM=true
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
@@ -1183,7 +1225,7 @@
|
||||
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
|
||||
# Show kubecontext only when the command you are typing invokes one of these tools.
|
||||
# Tip: Remove the next line to always show kubecontext.
|
||||
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold'
|
||||
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold|kubent|kubecolor|cmctl|sparkctl'
|
||||
|
||||
# Kubernetes context classes for the purpose of using different colors, icons and expansions with
|
||||
# different contexts.
|
||||
@@ -1357,10 +1399,39 @@
|
||||
# Show azure only when the command you are typing invokes one of these tools.
|
||||
# Tip: Remove the next line to always show azure.
|
||||
typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt'
|
||||
|
||||
# POWERLEVEL9K_AZURE_CLASSES is an array with even number of elements. The first element
|
||||
# in each pair defines a pattern against which the current azure account name gets matched.
|
||||
# More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
|
||||
# that gets matched. If you unset all POWERLEVEL9K_AZURE_*CONTENT_EXPANSION parameters,
|
||||
# you'll see this value in your prompt. The second element of each pair in
|
||||
# POWERLEVEL9K_AZURE_CLASSES defines the account class. Patterns are tried in order. The
|
||||
# first match wins.
|
||||
#
|
||||
# For example, given these settings:
|
||||
#
|
||||
# typeset -g POWERLEVEL9K_AZURE_CLASSES=(
|
||||
# '*prod*' PROD
|
||||
# '*test*' TEST
|
||||
# '*' OTHER)
|
||||
#
|
||||
# If your current azure account is "company_test", its class is TEST because "company_test"
|
||||
# doesn't match the pattern '*prod*' but does match '*test*'.
|
||||
#
|
||||
# You can define different colors, icons and content expansions for different classes:
|
||||
#
|
||||
# typeset -g POWERLEVEL9K_AZURE_TEST_FOREGROUND=28
|
||||
# typeset -g POWERLEVEL9K_AZURE_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
# typeset -g POWERLEVEL9K_AZURE_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
|
||||
typeset -g POWERLEVEL9K_AZURE_CLASSES=(
|
||||
# '*prod*' PROD # These values are examples that are unlikely
|
||||
# '*test*' TEST # to match your needs. Customize them as needed.
|
||||
'*' OTHER)
|
||||
|
||||
# Azure account name color.
|
||||
typeset -g POWERLEVEL9K_AZURE_FOREGROUND=32
|
||||
typeset -g POWERLEVEL9K_AZURE_OTHER_FOREGROUND=32
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
# typeset -g POWERLEVEL9K_AZURE_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########
|
||||
# Show gcloud only when the command you are typing invokes one of these tools.
|
||||
@@ -1481,7 +1552,7 @@
|
||||
typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=
|
||||
# Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN
|
||||
# to see the name of the interface.
|
||||
typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*'
|
||||
typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*|(zt.*)'
|
||||
# If set to true, show one segment per matching network interface. If set to false, show only
|
||||
# one segment corresponding to the first matching network interface.
|
||||
# Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION.
|
||||
@@ -1526,7 +1597,7 @@
|
||||
# Show battery in yellow when it's discharging.
|
||||
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=178
|
||||
# Battery pictograms going from low to high level of charge.
|
||||
typeset -g POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578'
|
||||
typeset -g POWERLEVEL9K_BATTERY_STAGES='\UF008E\UF007A\UF007B\UF007C\UF007D\UF007E\UF007F\UF0080\UF0081\UF0082\UF0079'
|
||||
# Don't show the remaining time to charge/discharge.
|
||||
typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
|
||||
|
||||
|
||||
52
zsh/.zshrc
52
zsh/.zshrc
@@ -106,51 +106,6 @@ fi
|
||||
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
|
||||
|
||||
|
||||
case "${TERM}" in
|
||||
cons25*|linux) # plain BSD/Linux console
|
||||
bindkey '\e[H' beginning-of-line # home
|
||||
bindkey '\e[F' end-of-line # end
|
||||
bindkey '\e[5~' delete-char # delete
|
||||
bindkey '[D' emacs-backward-word # esc left
|
||||
bindkey '[C' emacs-forward-word # esc right
|
||||
;;
|
||||
*rxvt*) # rxvt derivatives
|
||||
bindkey '\eOc' forward-word # ctrl right
|
||||
bindkey '\eOd' backward-word # ctrl left
|
||||
bindkey '\e\e[D' backward-word ### Alt left
|
||||
bindkey '\e\e[C' forward-word ### Alt right
|
||||
# workaround for screen + urxvt
|
||||
bindkey '\e[7~' beginning-of-line # home
|
||||
bindkey '\e[8~' end-of-line # end
|
||||
bindkey '^[[1~' beginning-of-line # home
|
||||
bindkey '^[[4~' end-of-line # end
|
||||
;;
|
||||
*xterm*) # xterm derivatives
|
||||
bindkey '\e[H' beginning-of-line # home
|
||||
bindkey '\e[F' end-of-line # end
|
||||
bindkey '\e[3~' delete-char # delete
|
||||
bindkey '^[[C' forward-word # ctrl right
|
||||
bindkey '^[[D' backward-word # ctrl left
|
||||
bindkey '\eOC' forward-word # ctrl right
|
||||
bindkey '\eOD' backward-word # ctrl left
|
||||
bindkey '^[[1;3C' forward-word # alt right
|
||||
bindkey '^[[1;3D' backward-word # alt left
|
||||
# workaround for screen + xterm
|
||||
bindkey '\e[1~' beginning-of-line # home
|
||||
bindkey '\e[4~' end-of-line # end
|
||||
;;
|
||||
screen)
|
||||
bindkey '^[[1~' beginning-of-line # home
|
||||
bindkey '^[[4~' end-of-line # end
|
||||
bindkey '\e[3~' delete-char # delete
|
||||
bindkey '\eOc' forward-word # ctrl right
|
||||
bindkey '\eOd' backward-word # ctrl left
|
||||
bindkey '^[[1;5C' forward-word # ctrl right
|
||||
bindkey '^[[1;5D' backward-word # ctrl left
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
setopt completealiases
|
||||
setopt interactivecomments
|
||||
|
||||
@@ -246,6 +201,13 @@ export GPG_TTY=$(tty)
|
||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||
|
||||
|
||||
[ "$TERM" = "xterm-kitty" ] && (alias ssh="kitten ssh"; eval "kitten run-shell";)
|
||||
[ "$TERMUX_APK_RELEASE" = "F_DROID" ] && eval `okc-ssh-agent`
|
||||
|
||||
|
||||
|
||||
preexec() { print -Pn "\e]0;$1\a" }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user