mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-25 04:11:49 +08:00
Compare commits
12 Commits
7c6c1943b4
...
4a6f6a0ad0
Author | SHA1 | Date | |
---|---|---|---|
|
4a6f6a0ad0 | ||
|
7ede139619 | ||
|
f0a0d3cd18 | ||
|
72fe3f2492 | ||
|
b7863e2f61 | ||
|
df203dc51c | ||
|
2e9e35e806 | ||
|
e08fe061df | ||
|
8447ed667d | ||
|
15ee8a7070 | ||
|
4906475570 | ||
|
c7b0e12a7a |
@ -1,17 +1,16 @@
|
|||||||
# env setting for nvidia
|
# env setting for nvidia
|
||||||
env = LIBVA_DRIVER_NAME,nvidia
|
env = LIBVA_DRIVER_NAME,nvidia
|
||||||
env = XDG_SESSION_TYPE,wayland
|
env = XDG_SESSION_TYPE,wayland
|
||||||
# env = GBM_BACKEND,nvidia-drm
|
env = GBM_BACKEND,nvidia-drm
|
||||||
env = WLR_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1
|
env = WLR_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1
|
||||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||||
env = WLR_NO_HARDWARE_CURSORS,1
|
env = WLR_NO_HARDWARE_CURSORS,1
|
||||||
|
|
||||||
# Execute your favorite apps at launch
|
# Execute your favorite apps at launch
|
||||||
exec=pidof hyprpaper || hyprpaper
|
exec=pidof -q hyprpaper || hyprpaper
|
||||||
exec=pidof wlsunset || wlsunset -S 08:00 -s 19:00
|
exec=pidof -q wlsunset || wlsunset -S 08:00 -s 19:00 -d 1800
|
||||||
exec=pidof waybar || waybar
|
exec=pidof -q waybar || waybar
|
||||||
exec=~/.config/hypr/scripts/clamshell.sh
|
exec=~/.config/hypr/scripts/clamshell.sh
|
||||||
exec-once=fcitx5 -d
|
exec-once=fcitx5 -d
|
||||||
|
|
||||||
# ssh agent
|
env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/ssh-agent.socket
|
||||||
env = SSH_AUTH_SOCK,"${XDG_RUNTIME_DIR}/ssh-agent.socket"
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
||||||
bind = $mainMod, N, exec, kitty
|
bind = $mainMod, N, exec, kitty
|
||||||
bind = $mainMod, W, killactive,
|
bind = $mainMod, W, killactive,
|
||||||
bind = $mainMod + CTRL, Q, exit,
|
bind = $mainMod + CTRL, Q, exit,
|
||||||
@ -9,6 +8,14 @@ bind = $mainMod + SHIFT, SPACE, togglefloating,
|
|||||||
bind = $mainMod + SHIFT, RETURN, exec, wofi --show drun
|
bind = $mainMod + SHIFT, RETURN, exec, wofi --show drun
|
||||||
bind = $mainMod + SHIFT, P, pseudo, # dwindle
|
bind = $mainMod + SHIFT, P, pseudo, # dwindle
|
||||||
|
|
||||||
|
# Software binds
|
||||||
|
bind = $mainMod CTRL, r, exec, hyprctl reload
|
||||||
|
bind = $mainMod CTRL, 65, exec, fcitx5-remote -t
|
||||||
|
bind = $mainMod, M, exec, swaync-client -t
|
||||||
|
bind = $mainMod CTRL, l, exec, ~/.config/hypr/scripts/logout.sh
|
||||||
|
# TODO: use a script instead
|
||||||
|
bind = $mainMod SHIFT, s, exec, hyprshot --clipboard-only -m region
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, left, movefocus, l
|
bind = $mainMod, left, movefocus, l
|
||||||
bind = $mainMod, right, movefocus, r
|
bind = $mainMod, right, movefocus, r
|
||||||
@ -22,10 +29,10 @@ bind = $mainMod, k, movefocus, u
|
|||||||
bind = $mainMod, j, movefocus, d
|
bind = $mainMod, j, movefocus, d
|
||||||
|
|
||||||
# Move windows with hjkl
|
# Move windows with hjkl
|
||||||
bind = $mainMod + SHIFT, h, movewindow, l
|
bind = $mainMod + SHIFT, h, swapwindow, l
|
||||||
bind = $mainMod + SHIFT, l, movewindow, r
|
bind = $mainMod + SHIFT, l, swapwindow, r
|
||||||
bind = $mainMod + SHIFT, k, movewindow, u
|
bind = $mainMod + SHIFT, k, swapwindow, u
|
||||||
bind = $mainMod + SHIFT, j, movewindow, d
|
bind = $mainMod + SHIFT, j, swapwindow, d
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
# Switch workspaces with mainMod + [0-9]
|
||||||
bind = $mainMod, 1, workspace, 1
|
bind = $mainMod, 1, workspace, 1
|
||||||
@ -68,15 +75,6 @@ bind = $mainMod, mouse_up, workspace, e+1
|
|||||||
bindm = $mainMod, mouse:272, movewindow
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
# reload hyprland
|
|
||||||
bind = $mainMod CTRL, r, exec, hyprctl reload
|
|
||||||
|
|
||||||
# change IME
|
|
||||||
bind = $mainMod CTRL, 65, exec, fcitx5-remote -t
|
|
||||||
|
|
||||||
# open swayNC
|
|
||||||
bind = $mainMod, M, exec, swaync-client -t
|
|
||||||
|
|
||||||
# fn keys
|
# fn keys
|
||||||
bind=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+
|
bind=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+
|
||||||
bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-
|
bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-
|
||||||
|
@ -22,8 +22,13 @@ decoration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
enabled = yes
|
# enabled = false
|
||||||
animation=specialWorkspace,1,4,default,slidefadevert
|
bezier = easeInQuart, 0.5, 0, 0.75, 0
|
||||||
|
bezier = easeInQuint, 0.64, 0, 0.78, 0
|
||||||
|
animation = windows,1,2,easeInQuart, popin 80%
|
||||||
|
animation = workspaces,1,2,easeInQuint, slidefade 30%
|
||||||
|
animation = specialWorkspace,1,2,easeInQuint,slidefadevert 30%
|
||||||
|
animation = fade,1,1.2,easeInQuart
|
||||||
}
|
}
|
||||||
|
|
||||||
dwindle {
|
dwindle {
|
||||||
@ -53,3 +58,5 @@ misc {
|
|||||||
xwayland {
|
xwayland {
|
||||||
force_zero_scaling = true
|
force_zero_scaling = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vim: set filetype=conf:
|
||||||
|
43
.config/hypr/scripts/logout.sh
Executable file
43
.config/hypr/scripts/logout.sh
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Modified from sway's locking script
|
||||||
|
|
||||||
|
|
||||||
|
if [[ ! $(which swayidle 2> /dev/null) ]]; then
|
||||||
|
notify-send "ERROR" "Swayidle not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
choice=$(echo -e "suspend\nshutdown\npoweroff\nreboot\nlock" | wofi -d --prompt " Choose power option" -Oalphabetical)
|
||||||
|
|
||||||
|
|
||||||
|
if test "$choice" = lock ; then
|
||||||
|
# sleep less when power on
|
||||||
|
if acpi -a | grep -q on; then
|
||||||
|
sleep_time=3600
|
||||||
|
else
|
||||||
|
sleep_time=10
|
||||||
|
fi
|
||||||
|
sleep 0.3
|
||||||
|
|
||||||
|
bright=`light`
|
||||||
|
|
||||||
|
swayidle -w \
|
||||||
|
timeout 5 "light -S 1" resume "light -S $bright" \
|
||||||
|
timeout $sleep_time 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' \
|
||||||
|
&
|
||||||
|
idlepid=$!
|
||||||
|
|
||||||
|
# swaylock -e -c 282828 --inside-color 00000003
|
||||||
|
swaylock -S --effect-blur "12x12" --effect-greyscale --effect-vignette 0.5:0.5 --inside-color 28282860 \
|
||||||
|
-e --ring-color 00000000 --line-color 00000000 --indicator --clock --text-color ebdbb2
|
||||||
|
|
||||||
|
kill $idlepid
|
||||||
|
|
||||||
|
pkill waybar
|
||||||
|
hyprctl dispatch dpms on
|
||||||
|
hyprctl dispatch exec waybar
|
||||||
|
light -S $bright
|
||||||
|
elif test -n "$choice"; then
|
||||||
|
systemctl $choice
|
||||||
|
fi
|
@ -32,6 +32,16 @@ allow_remote_control yes
|
|||||||
|
|
||||||
listen_on unix:/tmp/fifo
|
listen_on unix:/tmp/fifo
|
||||||
|
|
||||||
|
include themes/dark.conf
|
||||||
|
|
||||||
map kitty_mod+n new_os_window_with_cwd
|
map kitty_mod+n new_os_window_with_cwd
|
||||||
|
|
||||||
include themes/dark.conf
|
# tabs and windows
|
||||||
|
|
||||||
|
map kitty_mod+t new_tab_with_cwd
|
||||||
|
|
||||||
|
map kitty_mod+enter new_window_with_cwd
|
||||||
|
|
||||||
|
tab_bar_style fade
|
||||||
|
|
||||||
|
tab_fade 0.00390625 0.0625 0.31640625 1
|
||||||
|
4
.config/kitty/ssh.conf
Normal file
4
.config/kitty/ssh.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# env ZDOTDIR=$HOME/.cache/kitty-zsh
|
||||||
|
# copy --dest .cache/kitty-zsh/.zshrc .zshrc
|
||||||
|
|
||||||
|
copy .zshrc
|
1
.config/sway/Wallpaper
Symbolic link
1
.config/sway/Wallpaper
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/ryan/Pictures/wall/sway/dark
|
@ -3,3 +3,5 @@ include ~/.config/sway/config.d/theme
|
|||||||
include ~/.config/sway/config.d/keybinds
|
include ~/.config/sway/config.d/keybinds
|
||||||
include ~/.config/sway/config.d/custom
|
include ~/.config/sway/config.d/custom
|
||||||
include ~/.config/sway/config.d/exec
|
include ~/.config/sway/config.d/exec
|
||||||
|
|
||||||
|
exec kitty
|
||||||
|
4
.config/sway/config.d/custom.d/fedora
Normal file
4
.config/sway/config.d/custom.d/fedora
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# vim: filetype=swayconfig
|
||||||
|
|
||||||
|
include /etc/sway/config.d/*
|
||||||
|
exec /usr/libexec/polkit-gnome-authentication-agent-1
|
14
.config/sway/config.d/custom.d/input-settings
Normal file
14
.config/sway/config.d/custom.d/input-settings
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# vim: filetype=swayconfig
|
||||||
|
|
||||||
|
input type:mouse {
|
||||||
|
accel_profile flat
|
||||||
|
pointer_accel -0.3
|
||||||
|
}
|
||||||
|
|
||||||
|
input type:touchpad {
|
||||||
|
accel_profile adaptive
|
||||||
|
natural_scroll enabled
|
||||||
|
tap enabled
|
||||||
|
dwt enabled
|
||||||
|
# events disabled_on_external_mouse
|
||||||
|
}
|
24
.config/sway/config.d/custom.d/outputs
Normal file
24
.config/sway/config.d/custom.d/outputs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# 75hz monitor
|
||||||
|
output 'Lectron Company Ltd LECOO M2412HL GG30A137' mode 2560x1440@74.968Hz
|
||||||
|
output 'Lectron Company Ltd LECOO M2412HL GG30A137' subpixel rgb
|
||||||
|
# output 'Lectron Company Ltd LECOO M2412HL GG30A137' max_render_time 5
|
||||||
|
# output 'Lectron Company Ltd LECOO M2412HL GG30A137' render_bit_depth 10
|
||||||
|
|
||||||
|
output * adaptive_sync on
|
||||||
|
|
||||||
|
# laptop screen
|
||||||
|
output 'Thermotrex Corporation TL160ADMP03-0 Unknown' subpixel rgb
|
||||||
|
# output 'Thermotrex Corporation TL160ADMP03-0 Unknown' mode 2560x1600@60.000Hz
|
||||||
|
# output 'Thermotrex Corporation TL160ADMP03-0 Unknown' max_render_time 5
|
||||||
|
output 'Thermotrex Corporation TL160ADMP03-0 Unknown' mode 2560x1600@240.000Hz
|
||||||
|
output 'Thermotrex Corporation TL160ADMP03-0 Unknown' max_render_time 8
|
||||||
|
# output 'Thermotrex Corporation TL160ADMP03-0 Unknown' render_bit_depth 10
|
||||||
|
|
||||||
|
# TV at home
|
||||||
|
output 'Unknown HUAWEI INC 0x00000000' mode 3840x2160@60.000Hz
|
||||||
|
output 'Unknown HUAWEI INC 0x00000000' scale 2
|
||||||
|
|
||||||
|
# lab screen
|
||||||
|
output "XMI Redmi 27 NU 3948622WH08F4" transform 90
|
||||||
|
# output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 5
|
||||||
|
# output "XMI Redmi 27 NU 3948622WH08F4" subpixel rgb
|
53
.config/tmux/tmux.conf
Normal file
53
.config/tmux/tmux.conf
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set-option -ga terminal-overrides ",screen-256color:Tc"
|
||||||
|
|
||||||
|
## COLORSCHEME: gruvbox dark (medium)
|
||||||
|
set-option -g status "on"
|
||||||
|
|
||||||
|
# default statusbar color
|
||||||
|
set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1
|
||||||
|
|
||||||
|
# default window title colors
|
||||||
|
set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1
|
||||||
|
|
||||||
|
# default window with an activity alert
|
||||||
|
set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3
|
||||||
|
|
||||||
|
# active window title colors
|
||||||
|
set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1
|
||||||
|
|
||||||
|
# pane border
|
||||||
|
set-option -g pane-active-border-style fg=colour250 #fg2
|
||||||
|
set-option -g pane-border-style fg=colour237 #bg1
|
||||||
|
|
||||||
|
# message infos
|
||||||
|
set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1
|
||||||
|
|
||||||
|
# writing commands inactive
|
||||||
|
set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1
|
||||||
|
|
||||||
|
# pane number display
|
||||||
|
set-option -g display-panes-active-colour colour250 #fg2
|
||||||
|
set-option -g display-panes-colour colour237 #bg1
|
||||||
|
|
||||||
|
# clock
|
||||||
|
set-window-option -g clock-mode-colour colour109 #blue
|
||||||
|
|
||||||
|
# bell
|
||||||
|
set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg
|
||||||
|
|
||||||
|
## Theme settings mixed with colors (unfortunately, but there is no cleaner way)
|
||||||
|
set-option -g status-justify "left"
|
||||||
|
set-option -g status-left-style none
|
||||||
|
set-option -g status-left-length "80"
|
||||||
|
set-option -g status-right-style none
|
||||||
|
set-option -g status-right-length "80"
|
||||||
|
set-window-option -g window-status-separator ""
|
||||||
|
|
||||||
|
set-option -g status-left "#[bg=colour241,fg=colour248] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]"
|
||||||
|
set-option -g status-right "#[bg=colour237,fg=colour239 nobold, nounderscore, noitalics]#[bg=colour239,fg=colour246] %Y-%m-%d %H:%M #[bg=colour239,fg=colour248,nobold,noitalics,nounderscore]#[bg=colour248,fg=colour237] #h "
|
||||||
|
|
||||||
|
set-window-option -g window-status-current-format "#[bg=colour214,fg=colour237,nobold,noitalics,nounderscore]#[bg=colour214,fg=colour239] #I #[bg=colour214,fg=colour239,bold] #W#{?window_zoomed_flag,*Z,} #[bg=colour237,fg=colour214,nobold,noitalics,nounderscore]"
|
||||||
|
set-window-option -g window-status-format "#[bg=colour239,fg=colour237,noitalics]#[bg=colour239,fg=colour223] #I #[bg=colour239,fg=colour223] #W #[bg=colour237,fg=colour239,noitalics]"
|
||||||
|
|
||||||
|
# vim: set ft=tmux tw=0:
|
@ -91,7 +91,7 @@
|
|||||||
"format": " {}",
|
"format": " {}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
|
||||||
"max-length": 35,
|
"max-length": 50,
|
||||||
"on-click-middle": "playerctl play-pause",
|
"on-click-middle": "playerctl play-pause",
|
||||||
"on-click-right": "plaerctl next",
|
"on-click-right": "plaerctl next",
|
||||||
"on-click-left": "playerctl previous"
|
"on-click-left": "playerctl previous"
|
||||||
|
99
.config/waybar/config.hypr
Normal file
99
.config/waybar/config.hypr
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
{
|
||||||
|
"layer": "top",
|
||||||
|
"modules-left": [
|
||||||
|
"hyprland/workspaces"
|
||||||
|
],
|
||||||
|
"fixed-center": false,
|
||||||
|
"modules-center": [
|
||||||
|
"hyprland/window"
|
||||||
|
],
|
||||||
|
"modules-right": [
|
||||||
|
"tray",
|
||||||
|
"custom/notification",
|
||||||
|
"custom/player",
|
||||||
|
"cpu",
|
||||||
|
"memory",
|
||||||
|
"network",
|
||||||
|
"battery",
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"hyprland/workspaces": {
|
||||||
|
"on-scroll-up": "hyprctl dispatch workspace e-1",
|
||||||
|
"on-scroll-down": "hyprctl dispatch workspace e+1",
|
||||||
|
"show_special": true,
|
||||||
|
"on-click": "activate",
|
||||||
|
"persistent_workspaces": {
|
||||||
|
"9": ["HDMI-A-1"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprland/window": {
|
||||||
|
"max-length": 50,
|
||||||
|
"separate-outputs": true
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"spacing": 10
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": " {load}",
|
||||||
|
"format-alt": " {usage}% @ {avg_frequency}GHz"
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": " {used:0.1f}G / {total:0.1f}G",
|
||||||
|
"format-alt": " Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-ethernet": " {ifname}",
|
||||||
|
"format-linked": " {ifname}",
|
||||||
|
"format-disconnected": " Disconnected",
|
||||||
|
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
||||||
|
"tooltip-format": "{ifname} via {gwaddr}"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
"good": 75,
|
||||||
|
"warning": 15,
|
||||||
|
"critical": 5
|
||||||
|
},
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-charging": "🗲 {capacity}%",
|
||||||
|
"format-plugged": " {capacity}%",
|
||||||
|
"format-alt": "{icon} ETA: {time}",
|
||||||
|
"format-icons": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format": "{: %H:%M\t %m-%d}",
|
||||||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||||
|
},
|
||||||
|
"custom/notification": {
|
||||||
|
"tooltip": true,
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"notification": " <span foreground='red'><sup></sup></span> New notifications",
|
||||||
|
"none": " No notifications",
|
||||||
|
"dnd-notification": " DND on",
|
||||||
|
"dnd-none": " DND on"
|
||||||
|
},
|
||||||
|
"return-type": "json",
|
||||||
|
"exec-if": "which swaync-client",
|
||||||
|
"exec": "swaync-client -swb",
|
||||||
|
"on-click": "swaync-client -t -sw",
|
||||||
|
"on-click-right": "swaync-client -d -sw",
|
||||||
|
"escape": true
|
||||||
|
},
|
||||||
|
"custom/player": {
|
||||||
|
"format": " {}",
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
|
||||||
|
"max-length": 35,
|
||||||
|
"on-click-middle": "playerctl play-pause",
|
||||||
|
"on-click-right": "plaerctl next",
|
||||||
|
"on-click-left": "playerctl previous"
|
||||||
|
}
|
||||||
|
}
|
97
.config/waybar/config.sway
Normal file
97
.config/waybar/config.sway
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
{
|
||||||
|
"layer": "top",
|
||||||
|
"modules-left": [
|
||||||
|
"sway/workspaces"
|
||||||
|
],
|
||||||
|
"fixed-center": false,
|
||||||
|
"modules-center": [
|
||||||
|
"sway/window"
|
||||||
|
],
|
||||||
|
"modules-right": [
|
||||||
|
"tray",
|
||||||
|
"custom/notification",
|
||||||
|
"custom/player",
|
||||||
|
"cpu",
|
||||||
|
"memory",
|
||||||
|
"network",
|
||||||
|
"battery",
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"sway/workspaces": {
|
||||||
|
"show_special": true,
|
||||||
|
"on-click": "activate",
|
||||||
|
"persistent_workspaces": {
|
||||||
|
"9": ["HDMI-A-1"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sway/window": {
|
||||||
|
"max-length": 50,
|
||||||
|
"separate-outputs": true
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"spacing": 10
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": " {load}",
|
||||||
|
"format-alt": " {usage}% @ {avg_frequency}GHz"
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": " {used:0.1f}G / {total:0.1f}G",
|
||||||
|
"format-alt": " Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-ethernet": " {ifname}",
|
||||||
|
"format-linked": " {ifname}",
|
||||||
|
"format-disconnected": " Disconnected",
|
||||||
|
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
||||||
|
"tooltip-format": "{ifname} via {gwaddr}"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
"good": 75,
|
||||||
|
"warning": 15,
|
||||||
|
"critical": 5
|
||||||
|
},
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-charging": "🗲 {capacity}%",
|
||||||
|
"format-plugged": " {capacity}%",
|
||||||
|
"format-alt": "{icon} ETA: {time}",
|
||||||
|
"format-icons": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format": "{: %H:%M\t %m-%d}",
|
||||||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||||
|
},
|
||||||
|
"custom/notification": {
|
||||||
|
"tooltip": true,
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"notification": " <span foreground='red'><sup></sup></span> New notifications",
|
||||||
|
"none": " No notifications",
|
||||||
|
"dnd-notification": " DND on",
|
||||||
|
"dnd-none": " DND on"
|
||||||
|
},
|
||||||
|
"return-type": "json",
|
||||||
|
"exec-if": "which swaync-client",
|
||||||
|
"exec": "swaync-client -swb",
|
||||||
|
"on-click": "swaync-client -t -sw",
|
||||||
|
"on-click-right": "swaync-client -d -sw",
|
||||||
|
"escape": true
|
||||||
|
},
|
||||||
|
"custom/player": {
|
||||||
|
"format": " {}",
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
|
||||||
|
"max-length": 35,
|
||||||
|
"on-click-middle": "playerctl play-pause",
|
||||||
|
"on-click-right": "plaerctl next",
|
||||||
|
"on-click-left": "playerctl previous"
|
||||||
|
}
|
||||||
|
}
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
|||||||
[submodule ".config/mpv/default-shader-pack"]
|
[submodule ".config/mpv/default-shader-pack"]
|
||||||
path = .config/mpv/default-shader-pack
|
path = .config/mpv/default-shader-pack
|
||||||
url = https://github.com/iwalton3/default-shader-pack.git
|
url = https://github.com/iwalton3/default-shader-pack.git
|
||||||
|
[submodule ".config/hypr/plugins/hy3"]
|
||||||
|
path = .config/hypr/plugins/hy3
|
||||||
|
url = https://github.com/outfoxxed/hy3.git
|
||||||
|
65
.zshrc
65
.zshrc
@ -3,7 +3,7 @@ echo
|
|||||||
echo '\033[0;35m /w '$(awk -F "=" '/^NAME/ {print $2}' 2> /dev/null < /etc/os-release || uname -o)
|
echo '\033[0;35m /w '$(awk -F "=" '/^NAME/ {print $2}' 2> /dev/null < /etc/os-release || uname -o)
|
||||||
echo '\033[0;34m @ '$HOST
|
echo '\033[0;34m @ '$HOST
|
||||||
|
|
||||||
#Install zinit if no zinit is present
|
# Install zinit if no zinit is present
|
||||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||||
if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
|
if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
|
||||||
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
|
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
|
||||||
@ -14,31 +14,39 @@ if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
|
|||||||
fi
|
fi
|
||||||
source "$ZINIT_HOME/zinit.zsh"
|
source "$ZINIT_HOME/zinit.zsh"
|
||||||
|
|
||||||
zinit ice lucid wait
|
# Zinit packages
|
||||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
|
||||||
zinit ice lucid wait
|
|
||||||
zinit light agkozak/zsh-z
|
|
||||||
zinit ice lucid wait
|
|
||||||
zinit light juancldcmt/colorize
|
|
||||||
zinit ice lucid wait
|
|
||||||
zinit light juancldcmt/shortify.zsh
|
|
||||||
# zinit ice lucid wait
|
|
||||||
# zinit light juancldcmt/direnv.zsh
|
|
||||||
|
|
||||||
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
|
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
|
||||||
zinit light sindresorhus/pure
|
zinit light sindresorhus/pure
|
||||||
|
|
||||||
|
zinit wait lucid for \
|
||||||
|
zdharma-continuum/fast-syntax-highlighting \
|
||||||
|
agkozak/zsh-z \
|
||||||
|
zpm-zsh/colors \
|
||||||
|
zpm-zsh/colorize \
|
||||||
|
juancldcmt/shortify.zsh \
|
||||||
|
juancldcmt/kitty-zsh
|
||||||
|
|
||||||
|
zinit ice wait lucid atinit"bindkey '' autosuggest-execute" atload'_zsh_autosuggest_start'
|
||||||
zinit light zsh-users/zsh-autosuggestions
|
zinit light zsh-users/zsh-autosuggestions
|
||||||
zinit light hlissner/zsh-autopair
|
|
||||||
zinit light zsh-users/zsh-history-substring-search
|
zinit light zsh-users/zsh-history-substring-search
|
||||||
|
zinit light hlissner/zsh-autopair
|
||||||
zinit light zsh-users/zsh-completions
|
zinit light zsh-users/zsh-completions
|
||||||
|
|
||||||
|
# Software
|
||||||
|
zinit ice as"command" from"gh-r" mv"bat* -> bat" pick"bat/bat"
|
||||||
|
zinit light sharkdp/bat
|
||||||
|
|
||||||
|
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
||||||
|
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
|
||||||
|
pick"direnv" src="zhook.zsh" for \
|
||||||
|
direnv/direnv
|
||||||
|
|
||||||
autoload -Uz _zinit
|
autoload -Uz _zinit
|
||||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||||
|
|
||||||
# Load LS_COLORS if not present
|
|
||||||
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
|
||||||
|
|
||||||
|
|
||||||
# The following lines were added by compinstall
|
# The following lines were added by compinstall
|
||||||
|
|
||||||
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
||||||
@ -73,17 +81,17 @@ HISTSIZE=8192
|
|||||||
SAVEHIST=8192
|
SAVEHIST=8192
|
||||||
setopt autocd extendedglob nomatch notify auto_pushd
|
setopt autocd extendedglob nomatch notify auto_pushd
|
||||||
unsetopt beep
|
unsetopt beep
|
||||||
bindkey -v
|
bindkey -e
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
|
|
||||||
# pure config
|
# Pure prompt
|
||||||
zstyle :prompt:pure:prompt:success color green
|
zstyle ':prompt:pure:git:stash' show yes
|
||||||
|
zstyle ':prompt:pure:prompt:success' color default
|
||||||
|
|
||||||
#edit in vim
|
#edit in vim
|
||||||
export KEYTIMEOUT=1
|
|
||||||
autoload edit-command-line
|
autoload edit-command-line
|
||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey '' edit-command-line
|
bindkey '' edit-command-line
|
||||||
|
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
bindkey -M menuselect 'h' vi-backward-char
|
bindkey -M menuselect 'h' vi-backward-char
|
||||||
@ -98,10 +106,9 @@ bindkey '' history-substring-search-down
|
|||||||
|
|
||||||
bindkey ' ' magic-space
|
bindkey ' ' magic-space
|
||||||
|
|
||||||
bindkey '' autosuggest-execute
|
|
||||||
|
|
||||||
#config location
|
#config location
|
||||||
export GOPATH=$HOME/.cache/go
|
export GOPATH=$HOME/.cache/go
|
||||||
|
export CARGO_HOME=$HOME/.cache/cargo
|
||||||
export LESSHISTFILE=/dev/null
|
export LESSHISTFILE=/dev/null
|
||||||
export LYNX_CFG=$HOME/.config/lynx/lynxrc
|
export LYNX_CFG=$HOME/.config/lynx/lynxrc
|
||||||
export XDG_CACHE_HOME=$HOME/.cache
|
export XDG_CACHE_HOME=$HOME/.cache
|
||||||
@ -110,16 +117,16 @@ export XDG_CONFIG_HOME=$HOME/.config
|
|||||||
#settings for software
|
#settings for software
|
||||||
export FZF_DEFAULT_OPTS="--reverse --cycle --height=40% --border sharp --prompt=🔎"
|
export FZF_DEFAULT_OPTS="--reverse --cycle --height=40% --border sharp --prompt=🔎"
|
||||||
export GPG_TTY=$(tty) # fixes gpg
|
export GPG_TTY=$(tty) # fixes gpg
|
||||||
export JDK_HOME=/usr/lib/jvm/openjdk-17
|
export HISTORY_SUBSTRING_SEARCH_FUZZY=1
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
||||||
|
|
||||||
#colored output
|
|
||||||
export MANWIDTH=${MANWIDTH:-78}
|
export MANWIDTH=${MANWIDTH:-78}
|
||||||
export MANLESS="Manual\ \$MAN_PN\ ?ltline\ %lt?L/%L.:byte\ %bB?s/%s..?\:?pB\ %pB\\%.."
|
export MANROFFOPT="-c"
|
||||||
export LESS="-RSM~"
|
export BAT_THEME="ansi"
|
||||||
|
|
||||||
|
# bat pager
|
||||||
|
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
|
||||||
|
|
||||||
#local path
|
#local path
|
||||||
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin"
|
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
|
||||||
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
||||||
|
|
||||||
#ccache support
|
#ccache support
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
Linux desktop with gruvbox colorscheme, following the KISS philosophy.
|
Linux desktop with gruvbox colorscheme, following the KISS philosophy.
|
||||||
|
|
||||||
|
## TODO
|
||||||
|
|
||||||
|
- [ ] Use [zim](https://github.com/zimfw/zimfw)
|
||||||
|
- [ ] Update screenshots (It's using serenade instead of gruvbox)
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
|
|
||||||
![terminal](https://user-images.githubusercontent.com/72336775/176679848-a66143cb-0df8-4fd0-a567-66693c33741e.png)
|
![terminal](https://user-images.githubusercontent.com/72336775/176679848-a66143cb-0df8-4fd0-a567-66693c33741e.png)
|
||||||
|
Loading…
Reference in New Issue
Block a user