commit
e137160652
|
@ -137,7 +137,7 @@
|
||||||
# background must also be defined in hex or remain commented out. 1 = on, 0 = off.
|
# background must also be defined in hex or remain commented out. 1 = on, 0 = off.
|
||||||
# You can define as many as 8 different colors. They range from bottom to top of screen
|
# You can define as many as 8 different colors. They range from bottom to top of screen
|
||||||
gradient = 1
|
gradient = 1
|
||||||
; gradient_count = 8
|
gradient_count = 8
|
||||||
; gradient_color_1 = '#59cc33'
|
; gradient_color_1 = '#59cc33'
|
||||||
; gradient_color_2 = '#80cc33'
|
; gradient_color_2 = '#80cc33'
|
||||||
; gradient_color_3 = '#a6cc33'
|
; gradient_color_3 = '#a6cc33'
|
||||||
|
|
|
@ -52,8 +52,8 @@ bindsym $mod+Shift+q kill
|
||||||
bindsym $mod+q kill
|
bindsym $mod+q kill
|
||||||
|
|
||||||
# start dmenu (a program launcher)
|
# start dmenu (a program launcher)
|
||||||
# bindsym $mod+d exec --no-startup-id dmenu_run
|
bindsym $mod+d exec --no-startup-id dmenu_run
|
||||||
bindsym $mod+d exec "rofi -show run"
|
# bindsym $mod+d exec "rofi -show run"
|
||||||
|
|
||||||
# A more modern dmenu replacement is rofi:
|
# A more modern dmenu replacement is rofi:
|
||||||
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
|
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
|
||||||
|
@ -95,9 +95,9 @@ bindsym $mod+v split v
|
||||||
bindsym $mod+f fullscreen toggle
|
bindsym $mod+f fullscreen toggle
|
||||||
|
|
||||||
# change container layout (stacked, tabbed, toggle split)
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
bindsym $mod+s layout stacking
|
# bindsym $mod+s layout stacking
|
||||||
bindsym $mod+w layout tabbed
|
# bindsym $mod+w layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
# bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
# toggle tiling / floating
|
# toggle tiling / floating
|
||||||
bindsym $mod+Shift+space floating toggle
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
@ -113,16 +113,28 @@ bindsym $mod+a focus parent
|
||||||
|
|
||||||
# Define names for default workspaces for which we configure key bindings later on.
|
# Define names for default workspaces for which we configure key bindings later on.
|
||||||
# We use variables to avoid repeating the names in multiple places.
|
# We use variables to avoid repeating the names in multiple places.
|
||||||
set $ws1 "いち"
|
|
||||||
set $ws2 "に"
|
#set $ws1 "1:一"
|
||||||
set $ws3 "さん"
|
#set $ws2 "2:二"
|
||||||
|
#set $ws3 "3:三"
|
||||||
|
#set $ws4 "4:四"
|
||||||
|
#set $ws5 "5:五"
|
||||||
|
#set $ws6 "6:六"
|
||||||
|
#set $ws7 "7:七"
|
||||||
|
#set $ws8 "8:八"
|
||||||
|
#set $ws9 "9:九"
|
||||||
|
#set $ws10 "10:十"
|
||||||
|
|
||||||
|
set $ws1 "1"
|
||||||
|
set $ws2 "2"
|
||||||
|
set $ws3 "3"
|
||||||
set $ws4 "4"
|
set $ws4 "4"
|
||||||
set $ws5 "5"
|
set $ws5 "5"
|
||||||
set $ws6 "6"
|
set $ws6 "6"
|
||||||
set $ws7 "7"
|
set $ws7 "7"
|
||||||
set $ws8 "8"
|
set $ws8 "8"
|
||||||
set $ws9 "9"
|
set $ws9 "9"
|
||||||
set $ws10 "10"
|
set $ws10 "0"
|
||||||
|
|
||||||
# switch to workspace
|
# switch to workspace
|
||||||
bindsym $mod+1 workspace number $ws1
|
bindsym $mod+1 workspace number $ws1
|
||||||
|
@ -149,9 +161,19 @@ bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||||
|
|
||||||
# tryin some stuff, not sure if this is what i want
|
# tryin some stuff, not sure if this is what i want
|
||||||
#workspace $ws1 output HDMI-0
|
workspace $ws1 output HDMI-0
|
||||||
#workspace $ws2 output HDMI-1
|
workspace $ws2 output HDMI-1
|
||||||
#workspace $ws3 output HDMI-1
|
workspace $ws3 output HDMI-1
|
||||||
|
workspace $ws4 output HDMI-1
|
||||||
|
|
||||||
|
# set which programs open in which workspaces
|
||||||
|
# to find the class, run xprop in a terminal and click on a program
|
||||||
|
#assign [class="Alacritty"] $ws1
|
||||||
|
assign [class="firefox"] $ws2
|
||||||
|
assign [class="Gimp"] $ws3
|
||||||
|
|
||||||
|
# these programs will float
|
||||||
|
for_window [class="kcalc"] floating enable
|
||||||
|
|
||||||
# reload the configuration file
|
# reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
|
@ -189,16 +211,40 @@ bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||||
# finds out, if available)
|
# finds out, if available)
|
||||||
bar {
|
|
||||||
position top
|
# bar color definitions
|
||||||
status_command i3blocks
|
set $bar-text #ADF1D2
|
||||||
output HDMI-0
|
set $bar-background #231c1c
|
||||||
output HDMI-1
|
set $bar-statusline #eeeeee
|
||||||
font pango:DejaVu Sans Mono 10
|
set $bar-separator #eeeeee
|
||||||
}
|
set $bar-focused_workspace #553555
|
||||||
|
set $bar-inactive_workspace #755B69
|
||||||
|
|
||||||
|
#bar {
|
||||||
|
# position top
|
||||||
|
# strip_workspace_numbers yes
|
||||||
|
# status_command i3blocks
|
||||||
|
# output HDMI-0
|
||||||
|
# output HDMI-1
|
||||||
|
# font pango:Hack 10
|
||||||
|
#
|
||||||
|
# colors {
|
||||||
|
# background $bar-background
|
||||||
|
# statusline $bar-statusline
|
||||||
|
# separator $bar-separator
|
||||||
|
#
|
||||||
|
# # class border background text
|
||||||
|
# focused_workspace $bar-focused_workspace $bar-focused_workspace $bar-text
|
||||||
|
# active_workspace $bar-inactive_workspace $bar-inactive_workspace $bar-text
|
||||||
|
# inactive_workspace #333333 #222222 #888888
|
||||||
|
# urgent_workspace #2f343a #900000 #ffffff
|
||||||
|
# binding_mode #2f343a #900000 #ffffff
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
|
||||||
# set background on startup
|
# set background on startup
|
||||||
exec --no-startup-id feh --bg-fill ~/Pictures/trees_mountain.jpg
|
set $wallpaper ~/Pictures/wallpapers/trees_mountain.jpg
|
||||||
|
exec --no-startup-id feh --bg-fill $wallpaper
|
||||||
|
|
||||||
# turn picom on on start up
|
# turn picom on on start up
|
||||||
exec_always --no-startup-id picom &
|
exec_always --no-startup-id picom &
|
||||||
|
@ -207,16 +253,31 @@ exec_always --no-startup-id picom &
|
||||||
for_window [class=".*"] border pixel 1
|
for_window [class=".*"] border pixel 1
|
||||||
|
|
||||||
# gaps
|
# gaps
|
||||||
gaps inner 15
|
gaps inner 10
|
||||||
|
|
||||||
# messin with colors
|
# messin with colors
|
||||||
# set $bd-color #ff004b
|
# set $bd-color #ff004b
|
||||||
set $bd-color #1de071
|
set $bd-color #1de071
|
||||||
|
set $bd-indicator #d42069
|
||||||
|
|
||||||
# colorclass border bg text indicator child_border
|
# colorclass border bg text indicator child_border
|
||||||
client.focused $bd-color #111111 #ffffff $bd-color $bd-color
|
client.focused $bd-color #111111 #ffffff $bd-indicator $bd-color
|
||||||
client.focused_inactive $bd-color #111111 #ffffff $bd-color #333333
|
client.focused_inactive $bd-color #111111 #ffffff #333333 #333333
|
||||||
client.unfocused $bd-color #111111 #ffffff $bd-color #333333
|
client.unfocused $bd-color #111111 #ffffff #333333 #333333
|
||||||
|
|
||||||
# lock screen
|
# lock screen
|
||||||
bindsym $mod+l exec ~/lock.sh
|
bindsym $mod+l exec ~/.scripts/lock.sh
|
||||||
|
|
||||||
|
# dmenu stuff
|
||||||
|
bindsym $mod+c exec ~/.scripts/dmenu_configs.sh
|
||||||
|
bindsym $mod+p exec ~/.scripts/dmenu_wallpaper.sh
|
||||||
|
bindsym $mod+x exec ~/.scripts/dmenu_shutdown.sh
|
||||||
|
|
||||||
|
# common programs
|
||||||
|
bindsym $mod+Shift+w exec firefox
|
||||||
|
bindsym $mod+g exec gimp
|
||||||
|
bindsym $mod+m workspace $ws4; exec spotifyd; exec alacritty -e spt
|
||||||
|
bindsym $mod+Shift+m exec killall spt; exec killall spotifyd
|
||||||
|
|
||||||
|
# polybar
|
||||||
|
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
||||||
|
|
|
@ -1,22 +1,40 @@
|
||||||
[packages]
|
[pacman]
|
||||||
command=~/.scripts/i3blocks/pacman.sh
|
command=~/.scripts/i3_pacman.sh
|
||||||
interval=3600
|
interval=3600
|
||||||
|
|
||||||
[weather]
|
[spotifyd]
|
||||||
command=~/.scripts/i3blocks/weather.sh
|
command=ps aux | grep spotifyd | wc -l
|
||||||
|
interval=5
|
||||||
|
|
||||||
|
[finance]
|
||||||
|
command=~/.scripts/i3_finance.sh
|
||||||
|
interval=3000
|
||||||
|
color=#00b7ff
|
||||||
|
|
||||||
|
[cpu]
|
||||||
|
command=~/.scripts/i3_cpu.sh
|
||||||
|
interval=3600
|
||||||
|
color=#A4C2F4
|
||||||
|
|
||||||
|
[mem]
|
||||||
|
command=~/.scripts/i3_mem.sh
|
||||||
interval=3600
|
interval=3600
|
||||||
color=#A4C2F4
|
color=#A4C2F4
|
||||||
|
|
||||||
[ip]
|
[ip]
|
||||||
command=~/.scripts/i3blocks/ip.sh
|
command=~/.scripts/i3_ip.sh
|
||||||
interval=once
|
interval=once
|
||||||
color=#91E78Bcolor=#A4C2F4
|
color=#91E78B
|
||||||
|
|
||||||
[wifi]
|
[wifi]
|
||||||
command=~/.scripts/i3blocks/wifi.sh
|
command=~/.scripts/i3_wifi.sh
|
||||||
interval=3600
|
interval=3600
|
||||||
|
|
||||||
[time]
|
[weather]
|
||||||
command=date | awk '{ print "📅 " $0 }'
|
command=~/.scripts/i3_weather.sh
|
||||||
interval=5
|
interval=3600
|
||||||
|
color=#C9E42E
|
||||||
|
|
||||||
|
[time]
|
||||||
|
command=~/.scripts/i3_cal.sh
|
||||||
|
interval=5
|
||||||
|
|
|
@ -0,0 +1,212 @@
|
||||||
|
;==========================================================
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||||
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||||
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||||
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||||
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||||
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; To learn more about how to configure Polybar
|
||||||
|
; go to https://github.com/polybar/polybar
|
||||||
|
;
|
||||||
|
; The README contains a lot of information
|
||||||
|
;
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[colors2]
|
||||||
|
background = #806DAEDB
|
||||||
|
background-alt = #173753
|
||||||
|
background-inactive = #806DAEDB
|
||||||
|
foreground = #000000
|
||||||
|
foreground-alt = #fff
|
||||||
|
primary = #ffb52a
|
||||||
|
secondary = #e60053
|
||||||
|
alert = #bd2c40
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
background = #00553555
|
||||||
|
background-alt = #50553555
|
||||||
|
background-inactive = #50755B69
|
||||||
|
foreground = #000000
|
||||||
|
foreground-alt = #fff
|
||||||
|
primary = #ffb52a
|
||||||
|
secondary = #e60053
|
||||||
|
alert = #bd2c40
|
||||||
|
|
||||||
|
[bar/example]
|
||||||
|
;monitor = ${env:MONITOR:HDMI-1}
|
||||||
|
width = 100%
|
||||||
|
height = 27
|
||||||
|
;offset-x = 1%
|
||||||
|
;offset-y = 1%
|
||||||
|
radius = 0.0
|
||||||
|
fixed-center = false
|
||||||
|
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
line-size = 3
|
||||||
|
line-color = #f00
|
||||||
|
|
||||||
|
border-size = 0
|
||||||
|
border-color = #00000000
|
||||||
|
|
||||||
|
padding-left = 0
|
||||||
|
padding-right = 2
|
||||||
|
|
||||||
|
module-margin-left = 1
|
||||||
|
module-margin-right = 2
|
||||||
|
|
||||||
|
font-0 = fixed:pixelsize=10;1
|
||||||
|
font-1 = Source Han Sans JP,源ノ角ゴシック JP:style=Regular
|
||||||
|
font-2 = NotoSansMono Nerd Font:style=Regular
|
||||||
|
font-3 = FontAwesome6Free
|
||||||
|
|
||||||
|
modules-left = i3
|
||||||
|
modules-center =
|
||||||
|
modules-right = pacman finance memory cpu filesystem wireless-network weather date
|
||||||
|
|
||||||
|
tray-position = right
|
||||||
|
tray-padding = 2
|
||||||
|
;tray-background = #0063ff
|
||||||
|
|
||||||
|
;wm-restack = bspwm
|
||||||
|
;wm-restack = i3
|
||||||
|
|
||||||
|
;override-redirect = true
|
||||||
|
|
||||||
|
;scroll-up = bspwm-desknext
|
||||||
|
;scroll-down = bspwm-deskprev
|
||||||
|
|
||||||
|
;scroll-up = i3wm-wsnext
|
||||||
|
;scroll-down = i3wm-wsprev
|
||||||
|
|
||||||
|
cursor-click = pointer
|
||||||
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
|
[module/i3]
|
||||||
|
type = internal/i3
|
||||||
|
format = <label-state> <label-mode>
|
||||||
|
index-sort = true
|
||||||
|
wrapping-scroll = false
|
||||||
|
strip-wsnumbers = true
|
||||||
|
; Only show workspaces on the same output as the bar
|
||||||
|
;pin-workspaces = true
|
||||||
|
|
||||||
|
ws-icon-0 = 1;一
|
||||||
|
ws-icon-1 = 2;二
|
||||||
|
ws-icon-2 = 3;三
|
||||||
|
ws-icon-3 = 4;四
|
||||||
|
ws-icon-4 = 5;五
|
||||||
|
ws-icon-5 = 6;六
|
||||||
|
ws-icon-6 = 7;七
|
||||||
|
ws-icon-7 = 8;八
|
||||||
|
ws-icon-8 = 9;九
|
||||||
|
ws-icon-9 = 0;十
|
||||||
|
|
||||||
|
label-mode-padding = 1
|
||||||
|
label-mode-foreground = #000
|
||||||
|
label-mode-background = ${colors.primary}
|
||||||
|
|
||||||
|
; focused = Active workspace on focused monitor
|
||||||
|
label-focused = %icon%
|
||||||
|
label-focused-background = ${colors.background-alt}
|
||||||
|
label-focused-foreground = ${colors.foreground-alt}
|
||||||
|
label-focused-underline= ${colors.primary}
|
||||||
|
label-focused-padding = 1
|
||||||
|
|
||||||
|
; unfocused = Inactive workspace on any monitor
|
||||||
|
label-unfocused = %icon%
|
||||||
|
label-unfocused-background = ${colors.background-inactive}
|
||||||
|
label-unfocused-underline= ${colors.primary}
|
||||||
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
|
; visible = Active workspace on unfocused monitor
|
||||||
|
label-visible = %icon%
|
||||||
|
label-visible-background = ${self.label-focused-background}
|
||||||
|
label-visible-foreground = ${colors.foreground-alt}
|
||||||
|
label-visible-underline = ${self.label-focused-underline}
|
||||||
|
label-visible-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
|
; urgent = Workspace with urgency hint set
|
||||||
|
label-urgent = %icon%
|
||||||
|
label-urgent-background = ${colors.alert}
|
||||||
|
label-urgent-padding = 2
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
;label-separator = |
|
||||||
|
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
interval = 1.0
|
||||||
|
date = 📅 %A, %B %d, %Y %I:%M:%S %p
|
||||||
|
|
||||||
|
[module/filesystem]
|
||||||
|
type = internal/fs
|
||||||
|
interval = 60
|
||||||
|
|
||||||
|
mount-0 = /
|
||||||
|
mount-1 = /home
|
||||||
|
|
||||||
|
label-mounted = %mountpoint%: %percentage_used%%
|
||||||
|
;label-unmounted = %mountpoint% not mounted
|
||||||
|
;label-unmounted-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
label-separator = |
|
||||||
|
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 10
|
||||||
|
warn-percentage = 95
|
||||||
|
label = CPU %percentage%%
|
||||||
|
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 10
|
||||||
|
warn-percentage = 95
|
||||||
|
format = <label>
|
||||||
|
label = RAM %gb_used%/%gb_total%
|
||||||
|
bar-used-width = 50
|
||||||
|
bar-used-indicator =
|
||||||
|
bar-used-fill = ▐
|
||||||
|
bar-used-empty = ▐
|
||||||
|
|
||||||
|
[module/wireless-network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlan0
|
||||||
|
interval = 10
|
||||||
|
label-connected = SSID: %essid% %signal%% %local_ip%
|
||||||
|
format-background = #444444
|
||||||
|
|
||||||
|
[module/weather]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/.scripts/i3_weather.sh
|
||||||
|
interval = 3600
|
||||||
|
|
||||||
|
[module/finance]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/.scripts/i3_finance.sh
|
||||||
|
interval = 60
|
||||||
|
|
||||||
|
[module/pacman]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/.scripts/i3_pacman.sh
|
||||||
|
interval = 3600
|
||||||
|
|
||||||
|
[settings]
|
||||||
|
screenchange-reload = true
|
||||||
|
;compositing-background = xor
|
||||||
|
;compositing-background = screen
|
||||||
|
;compositing-foreground = source
|
||||||
|
;compositing-border = over
|
||||||
|
;pseudo-transparency = false
|
||||||
|
|
||||||
|
[global/wm]
|
||||||
|
margin-top = 5
|
||||||
|
margin-bottom = 5
|
||||||
|
|
||||||
|
; vim:ft=dosini
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Terminate already running bar instances
|
||||||
|
killall -q polybar
|
||||||
|
|
||||||
|
# Wait until the processes have been shut down
|
||||||
|
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
# Launch polybar
|
||||||
|
polybar --config=~/.config/polybar/config.ini example &
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
13
zsh/.zshrc
13
zsh/.zshrc
|
@ -28,12 +28,17 @@ bindkey "\e[3~" delete-char
|
||||||
|
|
||||||
# history
|
# history
|
||||||
HISTFILE=~/.zhistory
|
HISTFILE=~/.zhistory
|
||||||
setopt inc_append_history
|
export HISTSIZE=10000
|
||||||
setopt share_history
|
export SAVEHIST=10000
|
||||||
|
setopt INC_APPEND_HISTORY
|
||||||
|
setopt HIST_IGNORE_DUPS
|
||||||
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
# setopt share_history
|
||||||
|
|
||||||
# auto complete
|
# auto complete
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
|
_comp_options+=(globdots)
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
# start power theme
|
# start power theme
|
||||||
|
@ -42,7 +47,7 @@ source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
# auto cd
|
||||||
|
setopt auto_cd
|
||||||
|
|
||||||
pfetch
|
pfetch
|
||||||
|
|
Loading…
Reference in New Issue