feat: latest update june 2024

This commit is contained in:
ineanto 2024-06-24 23:35:37 +02:00
parent f72ba5ca9d
commit f26435d640
Signed by: ineanto
GPG key ID: E511F9CAA2F9CE84
4 changed files with 39 additions and 58 deletions

View file

@ -1,10 +1,4 @@
# Font for window titles. Will also be used by the bar unless a different font # Mod Key
# is used in the bar {} block below.
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:Noto Sans Regular 10
# set the mod key to the winkey:
set $mod Mod4 set $mod Mod4
##################### #####################
@ -19,15 +13,16 @@ workspace_layout default
############################## ##############################
#border indicator on windows: #border indicator on windows:
default_border none default_border pixel 1
for_window [class="^.*"] border pixel 2 default_floating_border pixel 1
for_window [class="^.*"] border pixel 1
# thin borders # thin borders
#hide_edge_borders both #hide_edge_borders both
# Set inner/outer gaps # Set inner/outer gaps
gaps inner 15 gaps inner 10
gaps outer 5 gaps outer 3
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod
@ -100,7 +95,7 @@ bindsym $mod+r mode "resize"
###################################### ######################################
# start a terminal # start a terminal
bindsym $mod+Return exec st bindsym $mod+Return exec alacritty
# kill focused window # kill focused window
bindsym $mod+q kill bindsym $mod+q kill
@ -108,9 +103,6 @@ bindsym $mod+q kill
# exit-menu # exit-menu
bindsym $mod+Shift+e exec rofi -show power-menu -modi power-menu:$HOME/.local/bin/powermenu bindsym $mod+Shift+e exec rofi -show power-menu -modi power-menu:$HOME/.local/bin/powermenu
# Lock the system
# lock with a picture:
#bindsym $mod+l exec i3lock -i ~/.config/i3/i3-lock-screen.png -p default|win -t
# lock by blurring the screen: # lock by blurring the screen:
bindsym $mod+l exec ~/.config/i3/scripts/blur-lock bindsym $mod+l exec ~/.config/i3/scripts/blur-lock
@ -184,7 +176,7 @@ bindsym $mod+p exec /usr/local/bin/switch-audio-port
## App shortcuts ## App shortcuts
bindsym $mod+w exec /usr/bin/firefox bindsym $mod+w exec /usr/bin/firefox
bindsym $mod+Shift+s exec kazam # bindsym $mod+Shift+s exec kazam
########################################## ##########################################
# configuration for workspace behaviour: # # configuration for workspace behaviour: #
@ -193,18 +185,18 @@ bindsym $mod+Shift+s exec kazam
# 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 "1:base" set $ws1 "1:base"
set $ws2 "2:launchpad" set $ws2 "2:term"
set $ws3 "3:web" set $ws3 "3:web"
set $ws4 "4:other" set $ws4 "4:game"
set $ws5 "5:music" set $ws5 "5:music"
set $ws6 "6" set $ws6 "6:social"
set $ws7 "7" set $ws7 "7"
set $ws8 "8" set $ws8 "8"
set $ws9 "9" set $ws9 "9"
set $ws10 "10" set $ws10 "10"
# bind program to workspace and focus to them on startup: # bind program to workspace and focus to them on startup:
assign [class="st"] $ws2 assign [class="alacritty"] $ws2
assign [class="(?i)firefox"] $ws3 assign [class="(?i)firefox"] $ws3
# then the current: # then the current:
@ -227,14 +219,14 @@ exec --no-startup-id numlockx on
# start blueberry app for managing bluetooth devices from tray: # start blueberry app for managing bluetooth devices from tray:
#exec --no-startup-id blueberry-tray #exec --no-startup-id blueberry-tray
# transparency # Picom (Window Compositor)
exec --no-startup-id picom -b exec --no-startup-id picom -b --shadow
# networkmanager-applet # networkmanager-applet
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
# set wallpaper # set wallpaper
exec --no-startup-id feh --bg-fill /home/aro/Pictures/Background/Waves.png exec --no-startup-id feh --bg-fill /home/ineanto/Pictures/Background/Waves.png
# set powersavings for display: # set powersavings for display:
exec --no-startup-id xset s 480 dpms 600 600 600 exec --no-startup-id xset s 480 dpms 600 600 600
@ -256,7 +248,7 @@ for_window [class="Pamac-manager"] floating enable
for_window [class="vlc"] sticky enable for_window [class="vlc"] sticky enable
###################################### ######################################
# color settings for bar and windows # # color settings windows #
###################################### ######################################
# Define colors variables: # Define colors variables:
@ -296,34 +288,12 @@ client.urgent $peach $base $peach $overlay0 $peach
client.placeholder $overlay0 $base $text $overlay0 $overlay0 client.placeholder $overlay0 $base $text $overlay0 $overlay0
client.background $base client.background $base
############################################ # Default bar
# bar settings (input comes from i3blocks) #
############################################
# Start i3bar to display a workspace bar
bar { bar {
font pango:Fira Sans 16 status_command i3status
status_command i3blocks -c ~/.config/i3/i3blocks.conf position top
position bottom font pango:DejaVu Sans Mono 13
tray_output primary strip_workspace_numbers yes
tray_padding 0
# When strip_workspace_numbers is set to yes,
# any workspace that has a name of the form
# “[n][:][NAME]” will display only the name.
strip_workspace_numbers yes
colors {
separator $base
background $base
statusline $white
# border bg txt indicator
focused_workspace $pink $base $text $rosewater
active_workspace $pink $base $text $rosewater
inactive_workspace $mauve $base $text $rosewater
urgent_workspace $peach $base $peach $peach
}
} }
##################################### #####################################

View file

@ -6,10 +6,8 @@
# A battery indicator blocklet script for i3blocks # A battery indicator blocklet script for i3blocks
from subprocess import check_output from subprocess import check_output
import os
import re import re
config = dict(os.environ)
status = check_output(['acpi'], universal_newlines=True) status = check_output(['acpi'], universal_newlines=True)
if not status: if not status:
@ -68,6 +66,9 @@ else:
battery = "" battery = ""
color = color(percentleft) color = color(percentleft)
if(percentleft >= 99):
state = "Full"
if state == "Discharging": if state == "Discharging":
battery = B_DISCHARING + " " battery = B_DISCHARING + " "
elif state == "Full": elif state == "Full":
@ -75,7 +76,7 @@ else:
elif state == "Charging": elif state == "Charging":
battery = B_CHARGING + " " battery = B_CHARGING + " "
elif state == "Unknown": elif state == "Unknown":
battery = B_UNKNOWN + " " + B_FULL + " " battery = B_UNKNOWN + " "
else: else:
battery = B_UNKNOWN + " " + B_MID + " " battery = B_UNKNOWN + " " + B_MID + " "

View file

@ -14,19 +14,21 @@ unsetopt beep
bindkey -e bindkey -e
# End of lines configured by zsh-newuser-install # End of lines configured by zsh-newuser-install
# The following lines were added by compinstall # The following lines were added by compinstall
zstyle :compinstall filename '/home/aro/.zshrc' zstyle :compinstall filename '~/.zshrc'
# Bind shift keys
bindkey "^[[1;2C" forward-word
bindkey "^[[1;2D" backward-word
autoload -Uz compinit autoload -Uz compinit
compinit compinit
# End of lines added by compinstall # End of lines added by compinstall
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
path+=('/home/aro/.local/bin') path+=('~/.local/bin')
# 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
# (20/10/22, Aro) Export DBUS_SESSION_BUS_ADDRESS for Napster.
export $(dbus-launch)
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"

8
empty_dot_gitconfig Normal file
View file

@ -0,0 +1,8 @@
[user]
name = ineanto
email = pantoine.rochas@gmail.com
signingkey = E511F9CAA2F9CE84
[gpg]
program = gpg2
[commit]
gpgsign = true