Back to i3
This commit is contained in:
@@ -5,12 +5,21 @@ floating_modifier $mod
|
||||
# applications
|
||||
bindsym $mod+Return exec --no-startup-id alacritty
|
||||
bindsym $mod+d exec --no-startup-id rofi -show drun
|
||||
bindsym $mod+Shift+s exec --no-startup-id flameshot gui
|
||||
|
||||
bindsym XF86AudioMute exec amixer -q set Master toggle
|
||||
# audio and brightness
|
||||
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 3%-
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 3%+
|
||||
bindsym XF86MonBrightnessUp exec light -A 10 # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown exec light -U 10 # decrease screen brightness
|
||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 10
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 10
|
||||
|
||||
# smoother keyboard (autorepeat)
|
||||
exec --no-startup-id xset r rate 300 50
|
||||
|
||||
# no mouse accel
|
||||
exec --no-startup-id xset m 1
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+BackSpace kill
|
||||
@@ -118,24 +127,6 @@ client.unfocused $yellow $yellow $black $yellow $yellow
|
||||
client.urgent $red $red $white $red $red
|
||||
|
||||
# i3 bar
|
||||
bar {
|
||||
position top
|
||||
status_command i3status
|
||||
tray_output primary
|
||||
separator_symbol " | "
|
||||
tray_padding 5
|
||||
colors {
|
||||
background $white
|
||||
statusline $black
|
||||
|
||||
focused_workspace $green $green $black
|
||||
active_workspace $white $white $black
|
||||
inactive_workspace $white $white $black
|
||||
urgent_workspace $red $red $black
|
||||
binding_mode $red $red $black
|
||||
}
|
||||
}
|
||||
|
||||
# flaoting on start
|
||||
for_window [class="Nautilus"] floating enable
|
||||
for_window [class="Pavucontrol"] floating enable
|
||||
@@ -144,6 +135,9 @@ for_window [class="Pavucontrol"] floating enable
|
||||
hide_edge_borders smart
|
||||
for_window [class="^.*"] border pixel 0
|
||||
|
||||
# bar
|
||||
exec --no-startup-id polybar -r titlebar
|
||||
|
||||
# gaps
|
||||
gaps inner 10
|
||||
|
||||
@@ -156,4 +150,4 @@ exec --no-startup-id keepassxc
|
||||
exec --no-startup-id seafile-applet
|
||||
exec --no-startup-id fcitx5
|
||||
exec --no-startup-id volumeicon
|
||||
exec --no-startup-id picom
|
||||
exec --no-startup-id picom
|
||||
@@ -1 +0,0 @@
|
||||
/home/marc/dots/files/.config/i3
|
||||
17
files/.config/picom/picom.conf
Normal file
17
files/.config/picom/picom.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
corner-radius = 8;
|
||||
|
||||
rounded-corners-exclude = [
|
||||
"class_g = 'i3bar'",
|
||||
"class_g = 'Polybar'",
|
||||
];
|
||||
|
||||
shadow = true;
|
||||
shadow-radius = 8;
|
||||
shadow-offset-x = 8;
|
||||
shadow-offset-y = 8;
|
||||
shadow-opacity = 0.2
|
||||
|
||||
shadow-exclude = [
|
||||
"class_g = 'i3-frame'",
|
||||
"class_g = 'Polybar'",
|
||||
];
|
||||
89
files/.config/polybar/config
Normal file
89
files/.config/polybar/config
Normal file
@@ -0,0 +1,89 @@
|
||||
[bar/bar]
|
||||
|
||||
font-0 = "JuliaMono:pixelsize=10;3"
|
||||
font-1 = "Noto Sans Mono CJK JP:pixelsize=10;1"
|
||||
|
||||
scroll-up = i3wm-wsprev
|
||||
scroll-down = i3wm-wsnext
|
||||
|
||||
fixed-center = true
|
||||
|
||||
tray-position = right
|
||||
|
||||
width = 100%
|
||||
height = 30
|
||||
|
||||
background = #ffffff
|
||||
foreground = #5c6773
|
||||
|
||||
radius-bottom = 2
|
||||
|
||||
#line-size = 1
|
||||
#line-color = #f00
|
||||
|
||||
#border-size = 2
|
||||
#border-color = #ffffff
|
||||
padding-left = 1
|
||||
padding-right = 1
|
||||
module-margin = 1
|
||||
|
||||
modules-left = logo i3 title
|
||||
modules-center =
|
||||
modules-right = wireless-network pulseaudio date time
|
||||
|
||||
[module/i3]
|
||||
strip-wsnumbers = true
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-background = #a6cc70
|
||||
label-focused-padding = 1
|
||||
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = 1
|
||||
|
||||
label-visible = %index%
|
||||
label-visible-padding = 1
|
||||
|
||||
label-urgent = %index%
|
||||
label-urgent-background = #ff3333
|
||||
label-urgent-padding = 1
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1.0
|
||||
date = %A, %B %d, %Y
|
||||
|
||||
[module/time]
|
||||
type = internal/date
|
||||
interval = 1.0
|
||||
date = %H:%M:%S
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
sink = alsa_output.pci-0000_12_00.3.analog-stereo
|
||||
use-ui-max = true
|
||||
interval = 5
|
||||
format-volume = <label-volume>
|
||||
label-muted = muted
|
||||
|
||||
[module/title]
|
||||
type = internal/xwindow
|
||||
format-padding = 1
|
||||
label-maxlen = 100
|
||||
|
||||
[module/logo]
|
||||
type = custom/text
|
||||
content = "花"
|
||||
content-padding = 1
|
||||
|
||||
[module/wireless-network]
|
||||
type = internal/network
|
||||
interface = wlo1
|
||||
interval = 3.0
|
||||
udspeed-minwidth = 0
|
||||
format-connected = <label-connected>
|
||||
format-disconnected = <label-disconnected>
|
||||
label-connected = %essid%
|
||||
label-disconnected = "no wifi"
|
||||
@@ -21,5 +21,6 @@ export SDL_IM_MODULE='ibus'
|
||||
export XMODIFIERS='@im=ibus'
|
||||
export WINIT_UNIX_BACKEND=x11
|
||||
|
||||
# ssh agent
|
||||
eval $(systemctl --user show-environment | grep SSH_AUTH_SOCK)
|
||||
export SSH_AUTH_SOCK
|
||||
|
||||
Reference in New Issue
Block a user