From bd0c53794011c262154c0b4b61588d4d76fa1cf9 Mon Sep 17 00:00:00 2001 From: "stephan.raabe" Date: Wed, 15 Feb 2023 16:56:08 +0100 Subject: [PATCH] Add Fira Font support --- .bashrc | 1 + qtile/__pycache__/config.cpython-310.pyc | Bin 5883 -> 5573 bytes qtile/config.py | 31 +--- scripts/fontsearch.sh | 8 + scripts/install.sh | 51 ------- starship/starship.toml | 187 +++++++++++++++++++++++ 6 files changed, 198 insertions(+), 80 deletions(-) create mode 100755 scripts/fontsearch.sh delete mode 100644 scripts/install.sh diff --git a/.bashrc b/.bashrc index 9fe85bc..2bcb3cc 100644 --- a/.bashrc +++ b/.bashrc @@ -22,6 +22,7 @@ alias m='neomutt' alias shutdown='sudo shutdown -h now' alias v='vim' alias r='ranger' +alias ts='sudo timeshift --list' # SCRIPTS alias gr='python ~/dotfiles/scripts/growthrate.py' diff --git a/qtile/__pycache__/config.cpython-310.pyc b/qtile/__pycache__/config.cpython-310.pyc index 5e34cb3b669a1e33f2376146bb7327300f52b089..a9ecd556afb367d78f51b0fb79a6e4c03fca6770 100644 GIT binary patch delta 1055 zcmZuuOHUI~6rMZ14zE5Clt98_LQ+FRx=>>xs2B|xA)vgXVFb$1b31gH>6F`PfdUqU z4JNZ7^9O*1d(*gb;X;Ygt-JmJ6BdSr3lbmTy+c#PI5%_7cfa#}=bk(BGrHdqv;u)z z!F#^NueWapTaoy>;|fME+!1`Q@DvoMh6MCUct!?c!VyVeXKGhqF~%d~CmBBlF_;E* zQ%EA1aj?h7EBa|qslqr@L0Lt3C+4oG^chHi=AiRz;hZE6vyl8(q66qK26K+6g}?w) z6CkyRz;ZC89i$-WE2jun9i&j! zI|I)Zo8@d93pqf_0u+=*Ql&5Hd02z>O<@Bm%Ya6O$VSnSKH;W(!-FJMM&;ec&ALXm%D3NDvD@_Nv>a4Rgf1 z>~k>60y{XAOJc=P|24t?fj+icr@4MSi;C# J?&qefe*k3GDC+Cynl1#AQ}JV=wV7W!by6fqr*4wZIEIadj_W28PH)SP;hk# z(WQW}%&pR<6tN{_FM|QIP+pfTf;F7Nc&227#4GEke5?+ol#&vu}S4OSrk z&!~)b8|I*fCiT9F^O_9-TvRq*Rz9~WTHi1?^VId$U(JQQzWAB*+ z40gc&@Ro^hD(32@1d9P>F}D=etUhP=xop(ej<~r^X-zQ|y=F>!9hP+mrgRsd220!X zrX)t2-zID?tiWnOZVL2WjHVHG2F33O=n7oz3)f-<>jBX{H22|}-o&|u&jJvA5q{8@ zSki9W%kU%ov@Wd?eFex_sc^k}OnpFydek!`GtauHV9NjINQxXw z#?qT(JRQVH#NH}cp3mK0&T&hzdkNQ;WA?KBrRDgHw~Shpvb`@qRm|6mdC>BPmj7HE z%b(Hm4UDT+TwXWg#7&CZJi8v?v4=M@hu)30+B$$mvl3lTJ}FQ>CbAGQjCCJmPLfkE z&rTd$?=7S0yPj`w{{vKc!ZR)B2wxB_LR(nn^FkA#VJjZ>(tR{;bN%bLZm&?B03XAx8#AyS`eq^U!$Rg=UR?EYf-R!cX@-?#P7xLDMo3 zH~pI?aNJfEnv5$cQGKzq+Tp1plZc7*FFR5D52d@kc3fWd7$^@7wvBD%yYiGwR6>8I N+jRRN3$N`z{x6rsWd{HN diff --git a/qtile/config.py b/qtile/config.py index 7adf8be..57203fc 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -152,8 +152,8 @@ layouts = [ ] widget_defaults = dict( - font="sans", - fontsize=12, + font="Fira Sans SemiBold", + fontsize=14, padding=3, ) extension_defaults = widget_defaults.copy() @@ -171,83 +171,56 @@ screens = [ foreground='ffffff', rounded=False, this_current_screen_border=ColorC, - fontsize=14, active='ffffff' ), widget.TextBox( text='  ', foreground=ColorC, - fontsize=14 ), widget.WindowName( - fontsize=14 ), widget.Systray(), -# widget.TextBox( -# text='SPT', -# desc='Spotify', -# mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e spt')}, -# fontsize=14 -# ), widget.TextBox( text=' ', foreground=ColorC, desc='Notes', mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e vim /home/raabe/notes.txt')}, - fontsize=14 ), widget.TextBox( text='|', foreground=ColorC, - fontsize=14 ), widget.CPU( - fontsize=14 ), widget.DF( visible_on_warn=False, mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e htop')}, - fontsize=14 ), widget.TextBox( text='|', foreground=ColorC, - fontsize=14 ), widget.Volume( fmt='Vol: {}', - fontsize=14 ), widget.TextBox( text='|', foreground=ColorC, - fontsize=14 - ), - widget.CheckUpdates( - fontsize=14, - distro="Arch", - no_update_string="No updates", - update_interval=600, - mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e yay')} ), widget.TextBox( text='|', foreground=ColorC, - fontsize=14 ), widget.Clock( format="%Y-%m-%d %a %I:%M %p", - fontsize=14 ), widget.TextBox( text='|', foreground=ColorC, - fontsize=14 ), widget.QuickExit( default_text=" ", countdown_start=3, - fontsize=14 ), ], 24, diff --git a/scripts/fontsearch.sh b/scripts/fontsearch.sh new file mode 100755 index 0000000..61eee27 --- /dev/null +++ b/scripts/fontsearch.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +fc-list \ + | grep -ioE ": [^:]*$1[^:]+:" \ + | sed -E 's/(^: |:)//g' \ + | tr , \\n \ + | sort \ + | uniq diff --git a/scripts/install.sh b/scripts/install.sh deleted file mode 100644 index 3d0f3f3..0000000 --- a/scripts/install.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash - -ln -sf /usr/share/zoneinfo/Berlin/ /etc/localtime -hwclock --systohc -sed -i '178s/.//' /etc/locale.gen -locale-gen -echo "LANG=en_US.UTF-8" >> /etc/locale.conf -echo "KEYMAP=de_latin1" >> /etc/vconsole.conf -echo "arch" >> /etc/hostname -echo "127.0.0.1 localhost" >> /etc/hosts -echo "::1 localhost" >> /etc/hosts -echo "127.0.1.1 arch.localdomain arch" >> /etc/hosts -echo root:sancho | chpasswd - -# You can add xorg to the installation packages, I usually add it at the DE or WM install script -# You can remove the tlp package if you are installing on a desktop or vm - -ipacman -S xorg xorg-xinit grub efibootmgr networkmanager network-manager-applet dialog wpa_supplicant mtools dosfstools base-devel linux-headers avahi xdg-user-dirs xdg-utils gvfs gvfs-smb nfs-utils inetutils dnsutils bluez bluez-utils cups hplip alsa-utils pipewire pipewire-alsa pipewire-pulse pipewire-jack bash-completion openssh rsync reflector acpi acpi_call tlp virt-manager qemu qemu-arch-extra edk2-ovmf bridge-utils dnsmasq vde2 openbsd-netcat iptables-nft ipset firewalld flatpak sof-firmware nss-mdns acpid os-prober ntfs-3g terminus-font pip exa bat htop ranger - -pacman -S --noconfirm xf86-video-amdgpu -# pacman -S --noconfirm nvidia nvidia-utils nvidia-settings - -grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB #change the directory to /boot/efi is you mounted the EFI partition at /boot/efi - -grub-mkconfig -o /boot/grub/grub.cfg - -systemctl enable NetworkManager -systemctl enable bluetooth -systemctl enable cups.service -systemctl enable sshd -systemctl enable avahi-daemon -systemctl enable tlp # You can comment this command out if you didn't install tlp, see above -systemctl enable reflector.timer -systemctl enable fstrim.timer -systemctl enable libvirtd -systemctl enable firewalld -systemctl enable acpid - -useradd -m ermanno -echo ermanno:password | chpasswd -usermod -aG libvirt ermanno - -echo "ermanno ALL=(ALL) ALL" >> /etc/sudoers.d/ermanno - - -printf "\e[1;32mDone! Type exit, umount -a and reboot.\e[0m" - - - - - diff --git a/starship/starship.toml b/starship/starship.toml index e69de29..bf65919 100644 --- a/starship/starship.toml +++ b/starship/starship.toml @@ -0,0 +1,187 @@ +[character] +success_symbol = "[>](bold green)" +error_symbol = "[x](bold red)" +vimcmd_symbol = "[<](bold green)" + +[git_commit] +tag_symbol = " tag " + +[git_status] +ahead = ">" +behind = "<" +diverged = "<>" +renamed = "r" +deleted = "x" + +[aws] +symbol = "aws " + +[bun] +symbol = "bun " + +[c] +symbol = "C " + +[cobol] +symbol = "cobol " + +[conda] +symbol = "conda " + +[crystal] +symbol = "cr " + +[cmake] +symbol = "cmake " + +[daml] +symbol = "daml " + +[dart] +symbol = "dart " + +[deno] +symbol = "deno " + +[dotnet] +symbol = ".NET " + +[directory] +read_only = " ro" + +[docker_context] +symbol = "docker " + +[elixir] +symbol = "exs " + +[elm] +symbol = "elm " + +[git_branch] +symbol = "git " + +[golang] +symbol = "go " + +[guix_shell] +symbol = "guix " + +[hg_branch] +symbol = "hg " + +[java] +symbol = "java " + +[julia] +symbol = "jl " + +[kotlin] +symbol = "kt " + +[lua] +symbol = "lua " + +[nodejs] +symbol = "nodejs " + +[memory_usage] +symbol = "memory " + +[meson] +symbol = "meson " + +[nim] +symbol = "nim " + +[nix_shell] +symbol = "nix " + +[ocaml] +symbol = "ml " + +[opa] +symbol = "opa " + +[os.symbols] +Alpine = "alp " +Amazon = "amz " +Android = "andr " +Arch = "rch " +CentOS = "cent " +Debian = "deb " +DragonFly = "dfbsd " +Emscripten = "emsc " +EndeavourOS = "ndev " +Fedora = "fed " +FreeBSD = "fbsd " +Garuda = "garu " +Gentoo = "gent " +HardenedBSD = "hbsd " +Illumos = "lum " +Linux = "lnx " +Macos = "mac " +Manjaro = "mjo " +Mariner = "mrn " +MidnightBSD = "mid " +Mint = "mint " +NetBSD = "nbsd " +NixOS = "nix " +OpenBSD = "obsd " +openSUSE = "osuse " +OracleLinux = "orac " +Pop = "pop " +Raspbian = "rasp " +Redhat = "rhl " +RedHatEnterprise = "rhel " +Redox = "redox " +Solus = "sol " +SUSE = "suse " +Ubuntu = "ubnt " +Unknown = "unk " +Windows = "win " + +[package] +symbol = "pkg " + +[perl] +symbol = "pl " + +[php] +symbol = "php " + +[pulumi] +symbol = "pulumi " + +[purescript] +symbol = "purs " + +[python] +symbol = "py " + +[raku] +symbol = "raku " + +[ruby] +symbol = "rb " + +[rust] +symbol = "rs " + +[scala] +symbol = "scala " + +[spack] +symbol = "spack " + +[sudo] +symbol = "sudo " + +[swift] +symbol = "swift " + +[terraform] +symbol = "terraform " + +[zig] +symbol = "zig "