From 66df2b324ab48c4257d5bf32df47c0cc0feec1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 21 May 2023 22:57:31 +0200 Subject: i3config, make.conf virt, i3config modv modm --- etc/i3status.conf | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ etc/portage/make.conf | 2 +- root/.bash_aliases | 4 ++++ root/.config/i3/config | 4 +++- root/.xprofile | 3 ++- 5 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 etc/i3status.conf diff --git a/etc/i3status.conf b/etc/i3status.conf new file mode 100644 index 0000000..2995325 --- /dev/null +++ b/etc/i3status.conf @@ -0,0 +1,53 @@ +# 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 = 1 +} + +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 = "diskavail %avail" +} + +load { + format = "load1min %1min" +} + +memory { + format = "usedram %used | availram %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} diff --git a/etc/portage/make.conf b/etc/portage/make.conf index 5fc01de..8e2ec81 100644 --- a/etc/portage/make.conf +++ b/etc/portage/make.conf @@ -58,7 +58,7 @@ USE="$USE system-llvm clippy rust-src rust-analyzer rustfmt" # za rust USE="$USE btrfs" # za docker USE="$USE opencv" # za pytorch USE="$USE eai" # za postfix smtputf8 -USE="$USE vhost-net qemu" # za qemu +USE="$USE vhost-net qemu parted" # za qemu / libvirt USE="$USE qml positioning quick" # za freecad CALLIGRA_FEATURES="stage words sheets" diff --git a/root/.bash_aliases b/root/.bash_aliases index 7ce1390..eefa6c3 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -43,3 +43,7 @@ export EDITOR=/usr/bin/vim ulimit -c unlimited # core dumps alias pi="python3 -m pip install --user --break-system-packages" alias pu="python3 -m pip uninstall --break-system-packages" +if [ `id -u` -eq 0 ] +then + alias binwalk="binwalk --run-as=root" +fi diff --git a/root/.config/i3/config b/root/.config/i3/config index fe2951f..23bdba2 100644 --- a/root/.config/i3/config +++ b/root/.config/i3/config @@ -184,7 +184,7 @@ bindsym $mod+c [title="cargova"] focus bindsym --release $mod+v exec --no-startup-id xdotool key "Shift+Insert" bindsym $mod+b [title="rowser"] focus bindsym $mod+n [title="/projects"] focus -bindsym $mod+m [title="laws"] focus +bindsym $mod+m exec --no-startup-id echo 'k=$(((`xinput list-props 13 | grep Enabled | cut -f3`+1)%2)) && xinput set-prop 13 "Device Enabled" $k && echo $k > /sys/class/leds/input4\:\:capslock/brightness' | sh # barve border background text indicator child_border client.focused #ee3333 #000000 #ffffff #33ee33 #ee3333 @@ -192,3 +192,5 @@ client.focused #ee3333 #000000 #ffffff #33ee33 #ee3333 # marke bindsym $mod+dstroke mark sex bindsym $mod+p [con_mark="sex"] focus + +# bindcode --release 66 exec --no-startup-id "xdotool key Escape" diff --git a/root/.xprofile b/root/.xprofile index 1e03031..f6002fb 100755 --- a/root/.xprofile +++ b/root/.xprofile @@ -6,4 +6,5 @@ xkbcomp -I/root/xkb ~/xkb/map $DISPLAY xmodmap ~/.Xmodmap xrdb ~/.Xresources pulseaudio & -[ `hostname` = c ] && xinput set-prop 13 "Device Enabled" 0 +# [ `hostname` = c ] && ~/projects/r/prog/miška/a.out /dev/input/event3 'k=$(((`xinput list-props 13 | grep Enabled | cut -f3`+1)%2)); xinput set-prop 13 "Device Enabled" $k && echo $k > /sys/class/leds/input4\:\:capslock/brightness' & +# disown -- cgit v1.2.3