From f4c3c8e2594eede5f4de91bfbcb448d23fadb052 Mon Sep 17 00:00:00 2001 From: wancat Date: Sat, 15 Jan 2022 00:49:11 +0800 Subject: [PATCH] Add theme, mouse sensitive, screenshot --- i3_config | 37 ++++++++++++++++++++++++++----- i3status_config | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 6 deletions(-) create mode 100644 i3status_config diff --git a/i3_config b/i3_config index 866da9a..5f1b4ad 100644 --- a/i3_config +++ b/i3_config @@ -26,14 +26,16 @@ font pango:monospace 12 # screen before suspend. Use loginctl lock-session to lock your screen. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -# exec xinput --set-prop 15 165 0.5 0 0 0 0.5 0 0 0 1 -# exec xinput --set-prop 15 'libinput Accel Speed' -1 -exec --no-startup-id feh --randomize --bg-center ~/Pictures/* -exec ibus-daemon -drx +exec_always xinput --set-prop 'pointer:Razer Razer Basilisk X HyperSpeed' 165 0.5 0 0 0 0.5 0 0 0 1 +exec_always xinput --set-prop 'pointer:Razer Razer Basilisk X HyperSpeed' 'libinput Accel Speed' -1 +exec_always feh --randomize --bg-center ~/Nextcloud/Photos/Anime/風起/* +exec --no-startup-id nextcloud --background # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. -exec --no-startup-id nm-applet +exec --no-startup-id nm-applet --sm-disable + +bindsym --release Print exec --no-startup-id import ~/Pictures/Screenshot-$(date --iso-8601=seconds).png # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status @@ -185,6 +187,29 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) +# class border bground text indicator child_border + +# bindsym $mod+d exec "dmenu_run -nf '#BBBBBB' -nb '#2B121A' -sb '#774C5E' -sf '#EEEEEE' -fn 'monospace-10' -p 'dmenu prompt >'" +# class border bground text indicator child_border +client.focused #FFFFFF #D48AA0 #FFFFFF #FFFFFF #FFFFFF +client.focused_inactive #FFFFFF #5C3B4F #FFFFFF #FFFFFF #FFFFFF +client.unfocused #FFFFFF #A1678A #CACACA #FFFFFF #FFFFFF +client.urgent #FFFFFF #C43939 #FFFFFF #FFFFFF #FFFFFF +client.placeholder #FFFFFF #5D3434 #FFFFFF #FFFFFF #FFFFFF + +client.background #FFFFFF + bar { - status_command i3status + status_command i3status + colors { + background #431F2A + statusline #FFFFFF + separator #FFFFFF + + focused_workspace #303030 #D48AA0 #FFFFFF + active_workspace #333333 #895353 #FFFFFF + inactive_workspace #333333 #895353 #888888 + urgent_workspace #2F343A #CF5B5B #FFFFFF + binding_mode #2F343A #900000 #FFFFFF + } } diff --git a/i3status_config b/i3status_config new file mode 100644 index 0000000..d5c2476 --- /dev/null +++ b/i3status_config @@ -0,0 +1,58 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 5 + output_format = "i3bar" + colors = true + color_good = "#76E474" + color_degraded = "#EDE15F" + color_bad = "#FF5555" +} + +# order += "ipv6" +order += "wireless _first_" +order += "ethernet _first_" +# order += "battery all" +# order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" +} + +disk "/" { + format = "%avail" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +}