From b0475aa31eceaf4155e9f4f9f6cb10824d09ca4e Mon Sep 17 00:00:00 2001 From: tess Date: Fri, 17 Feb 2023 06:53:47 +0100 Subject: [PATCH] i3status rust --- helix/config.toml | 13 +++++++ i3/config | 21 +++++++++-- i3status-rust/config.toml | 75 +++++++++++++++++++++++++++++++++++++++ make-symlinks.sh | 6 +--- 4 files changed, 107 insertions(+), 8 deletions(-) create mode 100644 helix/config.toml create mode 100644 i3status-rust/config.toml diff --git a/helix/config.toml b/helix/config.toml new file mode 100644 index 0000000..e5757eb --- /dev/null +++ b/helix/config.toml @@ -0,0 +1,13 @@ +theme = "dracula_at_night" + +[editor] +auto-completion = true +auto-info = true + +[editor.statusline] +left = ["mode", "spinner", "file-name", "diagnostics"] +right = ["selections", "position", "file-encoding"] + +[editor.lsp] +auto-signature-help = true +display-signature-help-docs = true diff --git a/i3/config b/i3/config index f164613..8818752 100755 --- a/i3/config +++ b/i3/config @@ -39,7 +39,7 @@ exec xrandr --output eDP --set TearFree on #exec play ~/syncthing-files/beepbeep/cutebeepbeep7.ogg # 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 setxkbmap -option caps:none +#exec setxkbmap -option caps:none exec picom -b exec feh --bg-center ~/Onedrive/made/tess-website/assets/background-index.jpg @@ -133,7 +133,7 @@ bindsym $mod+a focus parent # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. -set $ws1 "1:&" +set $ws1 "1:%" set $ws2 "2:[" set $ws3 "3:{" set $ws4 "4:}" @@ -266,7 +266,22 @@ bindsym $mod+Tab exec alacritty -e newsboat # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -exec_always --no-startup-id ~/.config/polybar/launch.sh --config=~/.config/polybar/config +bar { + font pango:mononoki 14 + position top + status_command i3status-rs + strip_workspace_numbers yes + tray_output DP-2 + colors { + separator #E63E62 + background #031014 + statusline #E63E62 + focused_workspace #E63E62 #E63E62 #031014 + active_workspace #031014 #E63E62 #E63E62 + inactive_workspace #031014 #031014 #E63E62 + urgent_workspace #F16C56 #F16C56 #031014 + } +} bindsym XF86AudioRaiseVolume exec pamixer -i 5; $nanpapibeep; diff --git a/i3status-rust/config.toml b/i3status-rust/config.toml new file mode 100644 index 0000000..7253274 --- /dev/null +++ b/i3status-rust/config.toml @@ -0,0 +1,75 @@ +[theme] +name = "dracula" +[theme.overrides] +idle_bg = "#031014" +idle_fg = "#E63E62" +good_bg = "#BFEF8D" +good_fg = "#031014" +warning_bg = "#031014" +warning_fg = "#F16C56" +critical_bg = "#F16C56" +critical_fg = "#031014" +info_bg = "#E63E62" +info_fg = "#031014" + +[icons] +name = "none" +[icons.overrides] +icons_format = "{icon}" +memory_mem = "🐏" +cpu = "puter power" +volume_muted = "muted" +volume_empty = "quiet:" +volume_half = "not too loud..." +volume_full = "LOUD!!!" +headphones = "🎧" +weather_sun = "sunny" +weather_rain = "umbrella time" +weather_clouds = "clouded" +weather_thunder = "krshhh" +weather_snow = "brrr" +weather_default = "weathr" +time = "󱥫" + +[[block]] +block = "disk_space" +path = "/" +alias = "/" +info_type = "available" +unit = "GB" +interval = 20 +warning = 20.0 +alert = 10.0 + +[[block]] +block = "memory" +display_type = "memory" +format_mem = "{mem_used_percents}" +clickable = false + +[[block]] +block = "cpu" +interval = 1 +info = 100 + +[[block]] +block = "music" +buttons = ["prev", "play", "next"] + + +[[block]] +block = "sound" + +[[block]] +block = "weather" +format = "{temp}, {wind} m/s {direction}" +service = { name = "openweathermap", api_key = "9a2e8e4be25276148a80abb49d4b5f25", city_id = "3161733", units = "metric" } + +[[block]] +block = "time" +interval = 5 +format = "%a %d/%m %R" + +[[block]] +block = "battery" +if_command = "test -e /sys/class/power_supply/BAT0" \ No newline at end of file diff --git a/make-symlinks.sh b/make-symlinks.sh index de71137..fe6ee04 100755 --- a/make-symlinks.sh +++ b/make-symlinks.sh @@ -4,7 +4,7 @@ dir=~/dot backup=~/.backup -files="alacritty dunst fish i3 newsboat polybar rofi rofimoji.rc" +files="alacritty dunst fish i3 newsboat i3status-rust rofi rofimoji.rc helix" ########## @@ -14,7 +14,3 @@ for file in $files; do mv ~/.config/$file $backup ln -s $dir/$file ~/.config/ done - -# theme file -mv ~/.themes/"tess tiger"/ $backup -ln -s $dir/"tess tiger" ~/.themes/