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
# 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:
# Mod Key
set $mod Mod4
#####################
@ -19,15 +13,16 @@ workspace_layout default
##############################
#border indicator on windows:
default_border none
for_window [class="^.*"] border pixel 2
default_border pixel 1
default_floating_border pixel 1
for_window [class="^.*"] border pixel 1
# thin borders
#hide_edge_borders both
# Set inner/outer gaps
gaps inner 15
gaps outer 5
gaps inner 10
gaps outer 3
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@ -100,7 +95,7 @@ bindsym $mod+r mode "resize"
######################################
# start a terminal
bindsym $mod+Return exec st
bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+q kill
@ -108,9 +103,6 @@ bindsym $mod+q kill
# exit-menu
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:
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
bindsym $mod+w exec /usr/bin/firefox
bindsym $mod+Shift+s exec kazam
# bindsym $mod+Shift+s exec kazam
##########################################
# 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.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1:base"
set $ws2 "2:launchpad"
set $ws2 "2:term"
set $ws3 "3:web"
set $ws4 "4:other"
set $ws4 "4:game"
set $ws5 "5:music"
set $ws6 "6"
set $ws6 "6:social"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# bind program to workspace and focus to them on startup:
assign [class="st"] $ws2
assign [class="alacritty"] $ws2
assign [class="(?i)firefox"] $ws3
# then the current:
@ -227,14 +219,14 @@ exec --no-startup-id numlockx on
# start blueberry app for managing bluetooth devices from tray:
#exec --no-startup-id blueberry-tray
# transparency
exec --no-startup-id picom -b
# Picom (Window Compositor)
exec --no-startup-id picom -b --shadow
# networkmanager-applet
exec --no-startup-id nm-applet
# 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:
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
######################################
# color settings for bar and windows #
# color settings windows #
######################################
# Define colors variables:
@ -296,34 +288,12 @@ client.urgent $peach $base $peach $overlay0 $peach
client.placeholder $overlay0 $base $text $overlay0 $overlay0
client.background $base
############################################
# bar settings (input comes from i3blocks) #
############################################
# Start i3bar to display a workspace bar
# Default bar
bar {
font pango:Fira Sans 16
status_command i3blocks -c ~/.config/i3/i3blocks.conf
position bottom
tray_output primary
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
}
status_command i3status
position top
font pango:DejaVu Sans Mono 13
strip_workspace_numbers yes
}
#####################################

View file

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

View file

@ -14,19 +14,21 @@ unsetopt beep
bindkey -e
# End of lines configured by zsh-newuser-install
# 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
compinit
# End of lines added by compinstall
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.
[[ ! -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"

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