From ef5903281e1cf5b7a8c05d8710f5d897d7b88a39 Mon Sep 17 00:00:00 2001 From: benjilegeek Date: Wed, 13 May 2026 18:16:55 +0200 Subject: [PATCH] further config changes --- playbooks/rices/40k.yml | 22 +++- playbooks/rices/files/40k-blocks | 163 +++++++++++++++++++++++++++ playbooks/rices/files/40k-i3 | 31 ++--- playbooks/rices/files/gruvbox-blocks | 161 ++++++++++++++++++++++++++ playbooks/rices/files/gruvbox-i3 | 8 +- playbooks/rices/gruvbox.yml | 23 +++- 6 files changed, 381 insertions(+), 27 deletions(-) create mode 100644 playbooks/rices/files/40k-blocks create mode 100644 playbooks/rices/files/gruvbox-blocks diff --git a/playbooks/rices/40k.yml b/playbooks/rices/40k.yml index a5e246b..947d5d8 100644 --- a/playbooks/rices/40k.yml +++ b/playbooks/rices/40k.yml @@ -22,10 +22,13 @@ group: vashqlf mode: '0644' - - name: Reload i3 config - ansible.builtin.shell: i3-msg reload - args: - executable: /bin/zsh + - name: Copy 40k i3 blocks config + ansible.builtin.copy: + src: /home/vashqlf/Code/Ansible/playbooks/rices/files/40k-blocks + dest: /home/vashqlf/.config/i3/i3blocks.conf + owner: vashqlf + group: vashqlf + mode: '0644' - name: Set gruvbox theme in nvim ansible.builtin.lineinfile: @@ -49,3 +52,14 @@ ansible.builtin.shell: /home/vashqlf/Code/Shell/rasi-wal-fix.sh args: executable: /bin/zsh + + - name: Change fastfetch config to 40k + ansible.builtin.lineinfile: + path: /home/vashqlf/.zshrc + regexp: '^fastfetch' + line: fastfetch -c /home/vashqlf/.config/myfetch/40k-fetch.jsonc + + - name: Reload i3 config + ansible.builtin.shell: i3-msg reload + args: + executable: /bin/zsh diff --git a/playbooks/rices/files/40k-blocks b/playbooks/rices/files/40k-blocks new file mode 100644 index 0000000..ec65926 --- /dev/null +++ b/playbooks/rices/files/40k-blocks @@ -0,0 +1,163 @@ +# i3blocks config file +# +# Please see man i3blocks for a complete reference! +# The man page is also hosted at http://vivien.github.io/i3blocks +# +# List of valid properties: +# +# align +# color +# command +# full_text +# instance +# interval +# label +# min_width +# name +# separator +# separator_block_width +# short_text +# signal +# urgent + +# Global properties +# +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. +# Change $SCRIPT_DIR to the location of your scripts! +command=~/.config/i3/blocks/$BLOCK_NAME +separator_block_width=20 +markup=none + +# Volume indicator +# +# The first parameter sets the step (and units to display) +# The second parameter overrides the mixer selection +# See the script for details. + +#[volume] +#label=♪ +#label=VOL +#interval=once +#signal=10 +#STEP=5% + +# Memory usage +# +# The type defaults to "mem" if the instance is not specified. +[memory] +label=󰳨 +separator=false +interval=30 + +#[memory] +#label=SWAP +#instance=swap +#separator=false +#interval=30 + +# CPU usage +# +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +[cpu_usage] +label=󱓇 +interval=10 +#min_width=CPU 100.00% +#separator=false + +# Temperature +# +# Support multiple chips, though lm-sensors. +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +[temperature] +label= +interval=10 + +# Disk usage +# +# The directory defaults to $HOME if the instance is not specified. +# The script may be called with a optional argument to set the alert +# (defaults to 10 for 10%). +[disk] +label= +#DIR=/mnt/data +interval=30 + +[disk] +label=󰮩 +DIR=/mnt/unionsine/ +interval=30 + +# Network interface monitoring +# +# If the instance is not specified, use the interface used for default route. +# The address can be forced to IPv4 or IPv6 with -4 or -6 switches. +#[iface] +#IFACE=wlan0 +#color=#00FF00 +#interval=10 +#separator=false + + +[bandwidth] +INTERFACE=enp5s0 +INLABEL= +OUTLABEL= +interval=5 + + +#[load_average] +#label=LOAD +#interval=10 + +# Battery indicator +# +# The battery instance defaults to 0. +#[battery] +#label=BAT +#label=⚡ +#interval=30 + +# Date Time +# +[time] +command=date '+%Y-%m-%d %H:%M:%S' +interval=1 + +# Generic media player support +# +# This displays "ARTIST - SONG" if a music is playing. +# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others. +# Set to %any to automatically pick (Requires playerctl >=2.1.1) +# [mediaplayer] +# This picks any player, with vlc as first, and spotify as last choice +# instance=firefox +# interval=5 +# signal=10 + +# OpenVPN support +# +# Support multiple VPN, with colors. +#[openvpn] +#interval=20 + + +# Key indicators +# +# Add the following bindings to i3 config file: +# +# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks +# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks +#[keyindicator] +#KEY=CAPS +#markup=pango +#interval=once +#signal=11 + +#[keyindicator] +#KEY=NUM +#markup=pango +#interval=once +#signal=11 diff --git a/playbooks/rices/files/40k-i3 b/playbooks/rices/files/40k-i3 index aea2593..2d758ed 100644 --- a/playbooks/rices/files/40k-i3 +++ b/playbooks/rices/files/40k-i3 @@ -113,16 +113,16 @@ 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|I" -set $ws2 "2|II" -set $ws3 "3|III" -set $ws4 "4|IV" -set $ws5 "5|V" -set $ws6 "6|VI" -set $ws7 "7|VII" -set $ws8 "8|VIII" -set $ws9 "9|IX" -set $ws10 "10|X" +set $ws1 "1:I" +set $ws2 "2:II" +set $ws3 "3:III" +set $ws4 "4:IV" +set $ws5 "5:V" +set $ws6 "6:VI" +set $ws7 "7:VII" +set $ws8 "8:VIII" +set $ws9 "9:IX" +set $ws10 "10:X" #assigning workspaces to monitors workspace $ws1 output $leftmonitor @@ -204,8 +204,8 @@ bindsym $mod+r mode "resize" # set $indi #42047E # set $urg #BFBD36 set_from_resource $fg i3wm.color7 #f0f0f0 -set_from_resource $fc i3wm.color3 #f0f0f0 -set_from_resource $bg i3wm.color4 #f0f0f0 +set_from_resource $fc i3wm.color4 #f0f0f0 +set_from_resource $bg i3wm.color6 #f0f0f0 set_from_resource $nc i3wm.color0 #f0f0f0 set_from_resource $ug i3wm.color1 #f0f0f0 @@ -231,8 +231,9 @@ bar { status_command i3blocks -c ~/.config/i3/i3blocks.conf tray_output HDMI-0 + strip_workspace_numbers yes position bottom - font pango: JetBrainsMono NF 14 + font pango: JetBrainsMono NF 18 separator_symbol " " colors{ background $nc @@ -251,8 +252,8 @@ bar { default_border pixel 3 #Gaps -gaps inner 5 -gaps outer 2 +gaps inner 13 +gaps outer 5 #smart_gaps on diff --git a/playbooks/rices/files/gruvbox-blocks b/playbooks/rices/files/gruvbox-blocks new file mode 100644 index 0000000..bcb96ae --- /dev/null +++ b/playbooks/rices/files/gruvbox-blocks @@ -0,0 +1,161 @@ +# i3blocks config file +# +# Please see man i3blocks for a complete reference! +# The man page is also hosted at http://vivien.github.io/i3blocks +# +# List of valid properties: +# +# align +# color +# command +# full_text +# instance +# interval +# label +# min_width +# name +# separator +# separator_block_width +# short_text +# signal +# urgent + +# Global properties +# +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. +# Change $SCRIPT_DIR to the location of your scripts! +command=~/.config/i3/blocks/$BLOCK_NAME +separator_block_width=20 +markup=none + +# Volume indicator +# +# The first parameter sets the step (and units to display) +# The second parameter overrides the mixer selection +# See the script for details. + +#[volume] +#label=♪ +#label=VOL +#interval=once +#signal=10 +#STEP=5% + +# Memory usage +# +# The type defaults to "mem" if the instance is not specified. +#[memory] +#label=MEM +#separator=false +#interval=30 + +#[memory] +#label=SWAP +#instance=swap +#separator=false +#interval=30 + +# Disk usage +# +# The directory defaults to $HOME if the instance is not specified. +# The script may be called with a optional argument to set the alert +# (defaults to 10 for 10%). +[disk] +label= +#DIR=/mnt/data +interval=30 + +[disk] +label= +DIR=/mnt/unionsine/ +interval=30 + +# Network interface monitoring +# +# If the instance is not specified, use the interface used for default route. +# The address can be forced to IPv4 or IPv6 with -4 or -6 switches. +#[iface] +#IFACE=wlan0 +#color=#00FF00 +#interval=10 +#separator=false + + +[bandwidth] +INTERFACE=enp5s0 +INLABEL= +OUTLABEL= +interval=5 + +# CPU usage +# +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +#[cpu_usage] +#label=CPU +#interval=10 +#min_width=CPU 100.00% +#separator=false + +#[load_average] +#label=LOAD +#interval=10 + +# Battery indicator +# +# The battery instance defaults to 0. +[battery] +label=BAT +label=⚡ +interval=30 + +# Date Time +# +[time] +command=date '+%Y-%m-%d %H:%M:%S' +interval=1 + +# Generic media player support +# +# This displays "ARTIST - SONG" if a music is playing. +# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others. +# Set to %any to automatically pick (Requires playerctl >=2.1.1) +[mediaplayer] +# This picks any player, with vlc as first, and spotify as last choice +instance=firefox +interval=5 +signal=10 + +# OpenVPN support +# +# Support multiple VPN, with colors. +#[openvpn] +#interval=20 + +# Temperature +# +# Support multiple chips, though lm-sensors. +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +#[temperature] +#label=TEMP +#interval=10 + +# Key indicators +# +# Add the following bindings to i3 config file: +# +# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks +# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks +#[keyindicator] +#KEY=CAPS +#markup=pango +#interval=once +#signal=11 + +#[keyindicator] +#KEY=NUM +#markup=pango +#interval=once +#signal=11 diff --git a/playbooks/rices/files/gruvbox-i3 b/playbooks/rices/files/gruvbox-i3 index 1c72157..8b3885c 100644 --- a/playbooks/rices/files/gruvbox-i3 +++ b/playbooks/rices/files/gruvbox-i3 @@ -113,15 +113,15 @@ 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 $ws2 "2  " +set $ws2 "2 󰈹 " set $ws3 "3  " -set $ws4 "4  " +set $ws4 "4  " set $ws5 "5  " -set $ws6 "6  " +set $ws6 "6  " set $ws7 "7  " set $ws8 "8  " set $ws9 "9  " -set $ws10 "10  " +set $ws10 "10  " #assigning workspaces to monitors workspace $ws1 output $leftmonitor diff --git a/playbooks/rices/gruvbox.yml b/playbooks/rices/gruvbox.yml index b4ed452..9dfaa8c 100644 --- a/playbooks/rices/gruvbox.yml +++ b/playbooks/rices/gruvbox.yml @@ -22,10 +22,13 @@ group: vashqlf mode: '0644' - - name: Reload i3 config - ansible.builtin.shell: i3-msg reload - args: - executable: /bin/zsh + - name: Copy gruvbox i3 blocks config + ansible.builtin.copy: + src: /home/vashqlf/Code/Ansible/playbooks/rices/files/gruvbox-blocks + dest: /home/vashqlf/.config/i3/i3blocks.conf + owner: vashqlf + group: vashqlf + mode: '0644' - name: Set gruvbox theme in nvim ansible.builtin.lineinfile: @@ -49,3 +52,15 @@ ansible.builtin.shell: /home/vashqlf/Code/Shell/rasi-wal-fix.sh args: executable: /bin/zsh + + - name: Change fastfetch config to small logo + ansible.builtin.lineinfile: + path: /home/vashqlf/.zshrc + regexp: '^fastfetch' + line: fastfetch -c /home/vashqlf/.config/myfetch/small-logo-fetch.jsonc + + - name: Reload i3 config + ansible.builtin.shell: i3-msg reload + args: + executable: /bin/zsh +