rm phone
This commit is contained in:
@@ -36,10 +36,6 @@
|
|||||||
username = "nb-01.cloonar.com";
|
username = "nb-01.cloonar.com";
|
||||||
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN/2SAFm50kraB1fepAizox/QRXxB7WbqVbH+5OPalDT47VIJGNKOKhixQoqhABHxEoLxdf/C83wxlCVlPV9poLfDgVkA3Lyt5r3tSFQ6QjjOJAgchWamMsxxyGBedhKvhiEzcr/Lxytnoz3kjDG8fqQJwEpdqMmJoMUfyL2Rqp16u+FQ7d5aJtwO8EUqovhMaNO7rggjPpV/uMOg+tBxxmscliN7DLuP4EMTA/FwXVzcFNbOx3K9BdpMRAaSJt4SWcJO2cS2KHA5n/H+PQI7nz5KN3Yr/upJN5fROhi/SHvK39QOx12Pv7FCuWlc+oR68vLaoCKYhnkl3DnCfc7A7";
|
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN/2SAFm50kraB1fepAizox/QRXxB7WbqVbH+5OPalDT47VIJGNKOKhixQoqhABHxEoLxdf/C83wxlCVlPV9poLfDgVkA3Lyt5r3tSFQ6QjjOJAgchWamMsxxyGBedhKvhiEzcr/Lxytnoz3kjDG8fqQJwEpdqMmJoMUfyL2Rqp16u+FQ7d5aJtwO8EUqovhMaNO7rggjPpV/uMOg+tBxxmscliN7DLuP4EMTA/FwXVzcFNbOx3K9BdpMRAaSJt4SWcJO2cS2KHA5n/H+PQI7nz5KN3Yr/upJN5fROhi/SHvK39QOx12Pv7FCuWlc+oR68vLaoCKYhnkl3DnCfc7A7";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
username = "phone";
|
|
||||||
key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD5MRLTtrATbWhADMe5Pm6DCLZDQf6T8fdMO1lg8mAAB8PmAI3VYW4JrqEBusX0EYR1rRdDB9YxPr9wAroSPK+nT5Gr/FNgzI5N2Pg+r+jf+pnzntHYb7ALpb18FcHDGiYRUHVrceX15XZSV4gKLzE/DA38G9qFiMlnI3xKmC8Vblzuk+ljLKJZDYmWHhi4MYr5eB4KPZcTovSjPmNybi98hLKvqXH+r/lHGAqBfBIM9IF0dNkLtaTpY97PpIJYkqKA6RPs7Hj2BfbcdlB7KXMoEyUOuQLA//QinY5BbeOXH4EteEofm6385PHil7rq48YSnbANAImkuwoIbGJ2x980Cg2EGviYh24w/5lbXrsM4acXMb6wSVcEkejykoZalhgRz+XvBJKjDKtXjwoiPNT8jt5tqU0Qxs8y/VGR1QEozjCahYFyNPHPJWEk3nD1nZDRFmcGVk+zmTSMEwglMSQsR7hSUcy101lRT9aL9GZYO5J+/5szAxR6K96RCeBoUSE= root@mobile-nixos";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
imports = builtins.map create_users users;
|
imports = builtins.map create_users users;
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(import <mobile-nixos/lib/configuration.nix> { device = "pine64-pinephone"; })
|
|
||||||
./hardware-configuration.nix
|
|
||||||
# <mobile-nixos/examples/phosh/phosh.nix>
|
|
||||||
./modules/sway
|
|
||||||
|
|
||||||
./modules/bento.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = "mobile-nixos";
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
#
|
|
||||||
# Opinionated defaults
|
|
||||||
#
|
|
||||||
|
|
||||||
# Use Network Manager
|
|
||||||
networking.wireless.enable = false;
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
# Use PulseAudio
|
|
||||||
hardware.pulseaudio.enable = true;
|
|
||||||
|
|
||||||
# Enable Bluetooth
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
# Bluetooth audio
|
|
||||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
|
||||||
|
|
||||||
# Enable power management options
|
|
||||||
powerManagement.enable = true;
|
|
||||||
|
|
||||||
# It's recommended to keep enabled on these constrained devices
|
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
# Auto-login for phosh
|
|
||||||
# services.xserver.desktopManager.phosh = {
|
|
||||||
# user = "dominik";
|
|
||||||
# };
|
|
||||||
|
|
||||||
#
|
|
||||||
# User configuration
|
|
||||||
#
|
|
||||||
|
|
||||||
users.users."dominik" = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Dominik";
|
|
||||||
hashedPassword = "$6$9XPnHmmAyS.Y9wOa$Jkugv90xKzpRM6LWbDU0vIWcWC/7LTNuqoRSwNhhpBuXNY499DlSvcW3uh/AUBdVdlm6k18Z.N8FAWPEWBD0E/";
|
|
||||||
extraGroups = [
|
|
||||||
"dialout"
|
|
||||||
"feedbackd"
|
|
||||||
"networkmanager"
|
|
||||||
"video"
|
|
||||||
"wheel"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Auto-login and start sway
|
|
||||||
services.getty.autologinUser = "dominik";
|
|
||||||
environment.loginShellInit = ''
|
|
||||||
[[ "$(tty)" == /dev/tty1 ]] && sway
|
|
||||||
'';
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# NOTE: this file was generated by the Mobile NixOS installer.
|
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
fileSystems = {
|
|
||||||
"/" = {
|
|
||||||
device = "/dev/disk/by-uuid/d9b3519e-7b26-495b-8aa2-601cac773f07";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices = {
|
|
||||||
"LUKS-MOBILE-NIXOS-ROOTFS" = {
|
|
||||||
device = "/dev/disk/by-uuid/6ac23f93-cea1-454e-bae8-3edc07cb2d30";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.kernelParams = lib.mkAfter [
|
|
||||||
"psi=1"
|
|
||||||
];
|
|
||||||
|
|
||||||
nix.settings.max-jobs = lib.mkDefault 2;
|
|
||||||
}
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
timer = "*:0/15";
|
|
||||||
in {
|
|
||||||
environment.sessionVariables = rec {
|
|
||||||
NIX_PATH = [
|
|
||||||
"nixos-config=/var/bento/configuration.nix"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.bento-upgrade = {
|
|
||||||
enable = true;
|
|
||||||
startAt = lib.mkDefault "${timer}";
|
|
||||||
path = with pkgs; [openssh git nixos-rebuild nix gzip];
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
script = ''
|
|
||||||
cd /var/bento
|
|
||||||
/bin/sh update.sh
|
|
||||||
sed -i 's/ --upgrade//g' bootstrap.sh
|
|
||||||
'';
|
|
||||||
restartIfChanged = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.bento-reboot = {
|
|
||||||
# this is disabled by default
|
|
||||||
# to avoid wrong expectations from users
|
|
||||||
enable = false;
|
|
||||||
startAt = "04:00";
|
|
||||||
path = with pkgs; [coreutils systemd];
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
script = ''
|
|
||||||
booted="$(readlink /run/booted-system/{initrd,kernel,kernel-modules})"
|
|
||||||
built="$(readlink /nix/var/nix/profiles/system/{initrd,kernel,kernel-modules})"
|
|
||||||
if [ ! "$booted" = "$built" ]
|
|
||||||
then
|
|
||||||
systemctl kexec || systemctl reboot
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
systemd.sockets.listen-update = {
|
|
||||||
enable = true;
|
|
||||||
wantedBy = ["sockets.target"];
|
|
||||||
requires = ["network.target"];
|
|
||||||
listenStreams = ["51337"];
|
|
||||||
socketConfig.Accept = "yes";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services."listen-update@" = {
|
|
||||||
path = with pkgs; [systemd];
|
|
||||||
enable = true;
|
|
||||||
serviceConfig.StandardInput = "socket";
|
|
||||||
serviceConfig.ExecStart = "${pkgs.systemd.out}/bin/systemctl start bento-upgrade.service";
|
|
||||||
serviceConfig.ExecStartPost = "${pkgs.systemd.out}/bin/journalctl -f --no-pager -u bento-upgrade.service";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
dbus-sway-environment = pkgs.writeTextFile {
|
|
||||||
name = "dbus-sway-environment";
|
|
||||||
destination = "/bin/dbus-sway-environment";
|
|
||||||
executable = true;
|
|
||||||
|
|
||||||
text = ''
|
|
||||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
|
||||||
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
|
||||||
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
configure-gtk = pkgs.writeTextFile {
|
|
||||||
name = "configure-gtk";
|
|
||||||
destination = "/bin/configure-gtk";
|
|
||||||
executable = true;
|
|
||||||
text = let
|
|
||||||
schema = pkgs.gsettings-desktop-schemas;
|
|
||||||
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
|
||||||
in ''
|
|
||||||
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
|
||||||
gnome_schema=org.gnome.desktop.interface
|
|
||||||
gsettings set $gnome_schema gtk-theme 'Dracula'
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
alsaUtils
|
|
||||||
dracula-theme
|
|
||||||
dbus-sway-environment
|
|
||||||
configure-gtk
|
|
||||||
firefox
|
|
||||||
foot
|
|
||||||
git
|
|
||||||
glib
|
|
||||||
gnome.seahorse
|
|
||||||
grim
|
|
||||||
htop
|
|
||||||
lisgd
|
|
||||||
mako
|
|
||||||
networkmanagerapplet
|
|
||||||
pavucontrol
|
|
||||||
pcmanfm
|
|
||||||
pinentry
|
|
||||||
squeekboard
|
|
||||||
sway-launcher-desktop
|
|
||||||
swayidle
|
|
||||||
swaylock
|
|
||||||
unzip
|
|
||||||
waybar
|
|
||||||
wayland
|
|
||||||
wl-clipboard
|
|
||||||
wofi
|
|
||||||
wtype
|
|
||||||
];
|
|
||||||
|
|
||||||
virtualisation.waydroid.enable = true;
|
|
||||||
|
|
||||||
services.dbus.enable = true;
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
wlr.enable = true;
|
|
||||||
# gtk portal needed to make gtk apps happy
|
|
||||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.sway = {
|
|
||||||
enable = true;
|
|
||||||
wrapperFeatures.gtk = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.etc = {
|
|
||||||
"sway/config".text = builtins.readFile ./sway.conf;
|
|
||||||
# "wofi/style.css".text = builtins.readFile ./wofi.css;
|
|
||||||
# "xdg/waybar/config".text = builtins.readFile ./waybar.conf;
|
|
||||||
# "xdg/waybar/style.css".text = builtins.readFile ./waybar.css;
|
|
||||||
"xdg/foot/foot.ini".text = builtins.readFile ./foot.ini;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,200 +0,0 @@
|
|||||||
# -*- conf -*-
|
|
||||||
|
|
||||||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
|
||||||
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
|
|
||||||
# login-shell=no
|
|
||||||
|
|
||||||
# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode
|
|
||||||
# title=foot
|
|
||||||
# locked-title=no
|
|
||||||
|
|
||||||
# font=monospace:size=8
|
|
||||||
# font-bold=<bold variant of regular font>
|
|
||||||
# font-italic=<italic variant of regular font>
|
|
||||||
# font-bold-italic=<bold+italic variant of regular font>
|
|
||||||
# font-size-adjustment=0.5
|
|
||||||
# line-height=<font metrics>
|
|
||||||
# letter-spacing=0
|
|
||||||
# horizontal-letter-offset=0
|
|
||||||
# vertical-letter-offset=0
|
|
||||||
# underline-offset=<font metrics>
|
|
||||||
# underline-thickness=<font underline thickness>
|
|
||||||
# box-drawings-uses-font-glyphs=no
|
|
||||||
# dpi-aware=no
|
|
||||||
|
|
||||||
# initial-window-size-pixels=700x500 # Or,
|
|
||||||
# initial-window-size-chars=<COLSxROWS>
|
|
||||||
# initial-window-mode=windowed
|
|
||||||
# pad=0x0 # optionally append 'center'
|
|
||||||
# resize-delay-ms=100
|
|
||||||
|
|
||||||
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
|
|
||||||
|
|
||||||
# bold-text-in-bright=no
|
|
||||||
# word-delimiters=,│`|:"'()[]{}<>
|
|
||||||
# selection-target=primary
|
|
||||||
# workers=<number of logical CPUs>
|
|
||||||
# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux)
|
|
||||||
# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD)
|
|
||||||
|
|
||||||
[environment]
|
|
||||||
# name=value
|
|
||||||
|
|
||||||
[bell]
|
|
||||||
# urgent=no
|
|
||||||
# notify=no
|
|
||||||
# command=
|
|
||||||
# command-focused=no
|
|
||||||
|
|
||||||
[scrollback]
|
|
||||||
# lines=1000
|
|
||||||
# multiplier=3.0
|
|
||||||
# indicator-position=relative
|
|
||||||
# indicator-format=""
|
|
||||||
|
|
||||||
[url]
|
|
||||||
# launch=xdg-open ${url}
|
|
||||||
# label-letters=sadfjklewcmpgh
|
|
||||||
# osc8-underline=url-mode
|
|
||||||
# protocols=http, https, ftp, ftps, file, gemini, gopher
|
|
||||||
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
|
|
||||||
|
|
||||||
[cursor]
|
|
||||||
# style=block
|
|
||||||
# color=<inverse foreground/background>
|
|
||||||
# blink=no
|
|
||||||
# beam-thickness=1.5
|
|
||||||
# underline-thickness=<font underline thickness>
|
|
||||||
|
|
||||||
[mouse]
|
|
||||||
# hide-when-typing=no
|
|
||||||
# alternate-scroll-mode=yes
|
|
||||||
|
|
||||||
[colors]
|
|
||||||
# alpha=1.0
|
|
||||||
background=282a36
|
|
||||||
foreground=f8f8f2
|
|
||||||
|
|
||||||
## Normal/regular colors (color palette 0-7)
|
|
||||||
regular0=21222c # black
|
|
||||||
regular1=ff5555 # red
|
|
||||||
regular2=50fa7b # green
|
|
||||||
regular3=f1fa8c # yellow
|
|
||||||
regular4=bd93f9 # blue
|
|
||||||
regular5=ff79c6 # magenta
|
|
||||||
regular6=8be9fd # cyan
|
|
||||||
regular7=f8f8f2 # white
|
|
||||||
|
|
||||||
## Bright colors (color palette 8-15)
|
|
||||||
bright0=6272a4 # bright black
|
|
||||||
bright1=ff6e6e # bright red
|
|
||||||
bright2=69ff94 # bright green
|
|
||||||
bright3=ffffa5 # bright yellow
|
|
||||||
bright4=d6acff # bright blue
|
|
||||||
bright5=ff92df # bright magenta
|
|
||||||
bright6=a4ffff # bright cyan
|
|
||||||
bright7=ffffff # bright white
|
|
||||||
|
|
||||||
## dimmed colors (see foot.ini(5) man page)
|
|
||||||
# dim0=<not set>
|
|
||||||
# ...
|
|
||||||
# dim7=<not-set>
|
|
||||||
|
|
||||||
## The remaining 256-color palette
|
|
||||||
# 16 = <256-color palette #16>
|
|
||||||
# ...
|
|
||||||
# 255 = <256-color palette #255>
|
|
||||||
|
|
||||||
## Misc colors
|
|
||||||
# selection-foreground=<inverse foreground/background>
|
|
||||||
# selection-background=<inverse foreground/background>
|
|
||||||
# jump-labels=<regular0> <regular3> # black-on-yellow
|
|
||||||
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
|
|
||||||
# search-box-no-match=<regular0> <regular1> # black-on-red
|
|
||||||
# search-box-match=<regular0> <regular3> # black-on-yellow
|
|
||||||
# urls=<regular3>
|
|
||||||
|
|
||||||
[csd]
|
|
||||||
# preferred=server
|
|
||||||
# size=26
|
|
||||||
# font=<primary font>
|
|
||||||
# color=<foreground color>
|
|
||||||
# hide-when-maximized=no
|
|
||||||
# double-click-to-maximize=yes
|
|
||||||
# border-width=0
|
|
||||||
# border-color=<csd.color>
|
|
||||||
# button-width=26
|
|
||||||
# button-color=<background color>
|
|
||||||
# button-minimize-color=<regular4>
|
|
||||||
# button-maximize-color=<regular2>
|
|
||||||
# button-close-color=<regular1>
|
|
||||||
|
|
||||||
[key-bindings]
|
|
||||||
# scrollback-up-page=Shift+Page_Up
|
|
||||||
# scrollback-up-half-page=none
|
|
||||||
# scrollback-up-line=none
|
|
||||||
# scrollback-down-page=Shift+Page_Down
|
|
||||||
# scrollback-down-half-page=none
|
|
||||||
# scrollback-down-line=none
|
|
||||||
# clipboard-copy=Control+Shift+c XF86Copy
|
|
||||||
# clipboard-paste=Control+Shift+v XF86Paste
|
|
||||||
# primary-paste=Shift+Insert
|
|
||||||
# search-start=Control+Shift+r
|
|
||||||
# font-increase=Control+plus Control+equal Control+KP_Add
|
|
||||||
# font-decrease=Control+minus Control+KP_Subtract
|
|
||||||
# font-reset=Control+0 Control+KP_0
|
|
||||||
# spawn-terminal=Control+Shift+n
|
|
||||||
# minimize=none
|
|
||||||
# maximize=none
|
|
||||||
# fullscreen=none
|
|
||||||
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
|
||||||
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
|
||||||
# pipe-selected=[xargs -r firefox] none
|
|
||||||
# show-urls-launch=Control+Shift+o
|
|
||||||
# show-urls-copy=none
|
|
||||||
# show-urls-persistent=none
|
|
||||||
# prompt-prev=Control+Shift+z
|
|
||||||
# prompt-next=Control+Shift+x
|
|
||||||
# unicode-input=Control+Shift+u
|
|
||||||
# noop=none
|
|
||||||
|
|
||||||
[search-bindings]
|
|
||||||
# cancel=Control+g Control+c Escape
|
|
||||||
# commit=Return
|
|
||||||
# find-prev=Control+r
|
|
||||||
# find-next=Control+s
|
|
||||||
# cursor-left=Left Control+b
|
|
||||||
# cursor-left-word=Control+Left Mod1+b
|
|
||||||
# cursor-right=Right Control+f
|
|
||||||
# cursor-right-word=Control+Right Mod1+f
|
|
||||||
# cursor-home=Home Control+a
|
|
||||||
# cursor-end=End Control+e
|
|
||||||
# delete-prev=BackSpace
|
|
||||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
|
||||||
# delete-next=Delete
|
|
||||||
# delete-next-word=Mod1+d Control+Delete
|
|
||||||
# extend-to-word-boundary=Control+w
|
|
||||||
# extend-to-next-whitespace=Control+Shift+w
|
|
||||||
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
|
|
||||||
# primary-paste=Shift+Insert
|
|
||||||
# unicode-input=none
|
|
||||||
|
|
||||||
[url-bindings]
|
|
||||||
# cancel=Control+g Control+c Control+d Escape
|
|
||||||
# toggle-url-visible=t
|
|
||||||
|
|
||||||
[text-bindings]
|
|
||||||
# \x03=Mod4+c # Map Super+c -> Ctrl+c
|
|
||||||
|
|
||||||
[mouse-bindings]
|
|
||||||
# selection-override-modifiers=Shift
|
|
||||||
# primary-paste=BTN_MIDDLE
|
|
||||||
# select-begin=BTN_LEFT
|
|
||||||
# select-begin-block=Control+BTN_LEFT
|
|
||||||
# select-extend=BTN_RIGHT
|
|
||||||
# select-extend-character-wise=Control+BTN_RIGHT
|
|
||||||
# select-word=BTN_LEFT-2
|
|
||||||
# select-word-whitespace=Control+BTN_LEFT-2
|
|
||||||
# select-row=BTN_LEFT-3
|
|
||||||
|
|
||||||
# vim: ft=dosini
|
|
||||||
@@ -1,333 +0,0 @@
|
|||||||
# Oxide theme
|
|
||||||
#
|
|
||||||
# Author: Diki Ananta <diki1aap@gmail.com> Repository: https://github.com/dikiaap/dotfiles
|
|
||||||
# License: MIT
|
|
||||||
# i3 config file (v4)
|
|
||||||
|
|
||||||
# outputs
|
|
||||||
set $output-phone DSI-1
|
|
||||||
set $output-desktop DP-1
|
|
||||||
|
|
||||||
# font for window titles and bar
|
|
||||||
font pango:Source Sans Pro 10
|
|
||||||
|
|
||||||
# use win key
|
|
||||||
set $mod Mod4
|
|
||||||
|
|
||||||
# use these keys for focus, movement, and resize directions
|
|
||||||
set $left h
|
|
||||||
set $down j
|
|
||||||
set $up k
|
|
||||||
set $right l
|
|
||||||
|
|
||||||
# define names for workspaces
|
|
||||||
set $wsp "phone"
|
|
||||||
set $ws1 "1: "
|
|
||||||
set $ws2 "2: "
|
|
||||||
set $ws3 "3: "
|
|
||||||
set $ws4 "4: "
|
|
||||||
set $ws5 "5: "
|
|
||||||
set $ws6 "6: "
|
|
||||||
set $ws7 "7: "
|
|
||||||
set $ws8 "8: "
|
|
||||||
set $ws9 "9: "
|
|
||||||
set $ws10 "10: "
|
|
||||||
|
|
||||||
# assign workspaces to primary monitor
|
|
||||||
workspace $wsp output $output-phone
|
|
||||||
workspace $ws1 output $output-desktop
|
|
||||||
workspace $ws2 output $output-desktop
|
|
||||||
workspace $ws3 output $output-desktop
|
|
||||||
workspace $ws4 output $output-desktop
|
|
||||||
workspace $ws5 output $output-desktop
|
|
||||||
workspace $ws6 output $output-desktop
|
|
||||||
workspace $ws7 output $output-desktop
|
|
||||||
workspace $ws8 output $output-desktop
|
|
||||||
workspace $ws9 output $output-desktop
|
|
||||||
|
|
||||||
# use $mod+Mouse to drag floating windows to their wanted position
|
|
||||||
floating_modifier $mod
|
|
||||||
|
|
||||||
# control focused window when follows the mouse movements
|
|
||||||
focus_follows_mouse no
|
|
||||||
|
|
||||||
# window border settings
|
|
||||||
default_border none
|
|
||||||
default_floating_border none
|
|
||||||
|
|
||||||
# hiding borders adjacent to the screen edges
|
|
||||||
hide_edge_borders none
|
|
||||||
|
|
||||||
# set popups during fullscreen mode
|
|
||||||
popup_during_fullscreen smart
|
|
||||||
|
|
||||||
# start a terminal
|
|
||||||
bindsym $mod+Return workspace $ws1; exec foot -c /etc/xdg/foot/foot.ini -T terminal-sway
|
|
||||||
|
|
||||||
# start a program launcher
|
|
||||||
bindsym $mod+d exec foot -a launcher -e env TERMINAL_COMMAND="foot -c /etc/xdg/foot/foot.ini -e" sway-launcher-desktop
|
|
||||||
|
|
||||||
# start an explorer
|
|
||||||
bindsym $mod+e exec --no-startup-id pcmanfm
|
|
||||||
|
|
||||||
# switching window with win+tab
|
|
||||||
bindsym $mod+Tab exec --no-startup-id wofi -show window
|
|
||||||
|
|
||||||
# kill focused window
|
|
||||||
bindsym $mod+Shift+q kill
|
|
||||||
|
|
||||||
# change keyboard layout
|
|
||||||
bindsym $mod+i swaymsg input "*" us
|
|
||||||
bindsym $mod+Shift+i swaymsg input "*" de
|
|
||||||
|
|
||||||
# change focus
|
|
||||||
bindsym $mod+$left focus left
|
|
||||||
bindsym $mod+$down focus down
|
|
||||||
bindsym $mod+$up focus up
|
|
||||||
bindsym $mod+$right focus right
|
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
bindsym $mod+Left focus left
|
|
||||||
bindsym $mod+Down focus down
|
|
||||||
bindsym $mod+Up focus up
|
|
||||||
bindsym $mod+Right focus right
|
|
||||||
|
|
||||||
# move focused window
|
|
||||||
bindsym $mod+Shift+$left move left
|
|
||||||
bindsym $mod+Shift+$down move down
|
|
||||||
bindsym $mod+Shift+$up move up
|
|
||||||
bindsym $mod+Shift+$right move right
|
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
bindsym $mod+Shift+Left move left
|
|
||||||
bindsym $mod+Shift+Down move down
|
|
||||||
bindsym $mod+Shift+Up move up
|
|
||||||
bindsym $mod+Shift+Right move right
|
|
||||||
|
|
||||||
# split in horizontal orientation
|
|
||||||
bindsym $mod+c split h
|
|
||||||
|
|
||||||
# split in vertical orientation
|
|
||||||
bindsym $mod+v split v
|
|
||||||
|
|
||||||
# enter fullscreen mode for the focused container
|
|
||||||
bindsym $mod+f fullscreen toggle
|
|
||||||
|
|
||||||
# change container layout
|
|
||||||
bindsym $mod+s layout stacking
|
|
||||||
bindsym $mod+w layout tabbed
|
|
||||||
bindsym $mod+p layout toggle split
|
|
||||||
|
|
||||||
# toggle tiling / floating
|
|
||||||
# bindsym $mod+Shift+space floating toggle
|
|
||||||
|
|
||||||
# change focus between tiling / floating windows
|
|
||||||
# bindsym $mod+space focus mode_toggle
|
|
||||||
|
|
||||||
# focus the parent container
|
|
||||||
bindsym $mod+a focus parent
|
|
||||||
|
|
||||||
# focus the child container
|
|
||||||
bindsym $mod+Shift+a focus child
|
|
||||||
|
|
||||||
# move the currently focused window to the scratchpad
|
|
||||||
bindsym $mod+Shift+minus move scratchpad
|
|
||||||
|
|
||||||
# show the next scratchpad window or hide the focused scratchpad window
|
|
||||||
bindsym $mod+minus scratchpad show
|
|
||||||
|
|
||||||
# move focused floating window to the current position of the cursor
|
|
||||||
bindsym $mod+Shift+m move position mouse
|
|
||||||
|
|
||||||
# set a window to stick to the glass
|
|
||||||
bindsym $mod+Shift+s sticky toggle
|
|
||||||
|
|
||||||
# sticky preview for media
|
|
||||||
bindsym $mod+Shift+p fullscreen disable; floating enable; resize set 350 px 197 px; sticky enable; move window to position 1006 px 537 px
|
|
||||||
|
|
||||||
# shortcut to change window border
|
|
||||||
bindsym $mod+t border normal 0
|
|
||||||
bindsym $mod+y border pixel 1
|
|
||||||
bindsym $mod+u border none
|
|
||||||
|
|
||||||
# switch to workspace
|
|
||||||
|
|
||||||
bindcode $mod+10 workspace $ws1
|
|
||||||
bindcode $mod+11 workspace $ws2
|
|
||||||
bindcode $mod+12 workspace $ws3
|
|
||||||
bindcode $mod+13 workspace $ws4
|
|
||||||
bindcode $mod+14 workspace $ws5
|
|
||||||
bindcode $mod+15 workspace $ws6
|
|
||||||
bindcode $mod+16 workspace $ws7
|
|
||||||
bindcode $mod+17 workspace $ws8
|
|
||||||
bindcode $mod+18 workspace $ws9
|
|
||||||
bindcode $mod+19 workspace $ws10
|
|
||||||
|
|
||||||
# move focused container to workspace
|
|
||||||
bindcode $mod+Shift+10 move container to workspace $ws1
|
|
||||||
bindcode $mod+Shift+11 move container to workspace $ws2
|
|
||||||
bindcode $mod+Shift+12 move container to workspace $ws3
|
|
||||||
bindcode $mod+Shift+13 move container to workspace $ws4
|
|
||||||
bindcode $mod+Shift+14 move container to workspace $ws5
|
|
||||||
bindcode $mod+Shift+15 move container to workspace $ws6
|
|
||||||
bindcode $mod+Shift+16 move container to workspace $ws7
|
|
||||||
bindcode $mod+Shift+17 move container to workspace $ws8
|
|
||||||
bindcode $mod+Shift+18 move container to workspace $ws9
|
|
||||||
bindcode $mod+Shift+19 move container to workspace $ws10
|
|
||||||
|
|
||||||
# shortcut applications
|
|
||||||
bindsym $mod+F1 exec gkamus
|
|
||||||
bindsym $mod+F2 workspace $ws2; exec subl
|
|
||||||
bindsym $mod+F3 workspace $ws3; exec chromium-browser
|
|
||||||
bindsym $mod+F4 workspace $ws4; exec pcmanfm
|
|
||||||
bindsym $mod+F5 workspace $ws5; exec evince
|
|
||||||
bindsym $mod+F6 workspace $ws6; exec audacious
|
|
||||||
bindsym $mod+F7 workspace $ws7; exec gcolor2
|
|
||||||
bindsym $mod+F8 workspace $ws8; exec telegram
|
|
||||||
bindsym $mod+F9 workspace $ws9; exec go-for-it
|
|
||||||
bindsym Print exec --no-startup-id gnome-screenshot
|
|
||||||
bindcode $mod+9 exec swaylock --image ~/.wallpaper.jpg
|
|
||||||
bindsym Ctrl+Shift+Space exec 1password --quick-access
|
|
||||||
bindsym $mod+Space exec rofi-rbw --menu-keybindings ctrl+p:copy:password
|
|
||||||
|
|
||||||
# volume
|
|
||||||
bindsym XF86AudioLowerVolume exec amixer -q sset Master 5%- unmute
|
|
||||||
bindsym XF86AudioRaiseVolume exec amixer -q sset Master 5%+ unmute
|
|
||||||
bindsym XF86AudioMute exec amixer -q sset Master toggle
|
|
||||||
|
|
||||||
# set brightness logarithmically by factor 1.4
|
|
||||||
# .72 is just slightly bigger than 1 / 1.4
|
|
||||||
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')"
|
|
||||||
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')"
|
|
||||||
|
|
||||||
# reload the configuration file
|
|
||||||
bindsym $mod+Shift+c reload
|
|
||||||
|
|
||||||
# restart i3 inplace
|
|
||||||
bindsym $mod+Shift+r restart
|
|
||||||
|
|
||||||
# manage i3 session
|
|
||||||
bindsym $mod+Shift+e exec swaynag --background f1fa8c --border ffb86c --border-bottom-size 0 --button-background ffb86c --button-text 282a36 -t warning -f "pango:Hack 9" -m "Do you really want to exit?" -B " Exit " "swaymsg exit" -B " Lock " "pkill swaynag && swaylock --image ~/.wallpaper.jpg" -B " Reboot " "pkill swaynag && reboot" -B " Shutdown " "pkill swaynag && shutdown -h now" -B " Suspend " "pkill swaynag && systemctl suspend"
|
|
||||||
|
|
||||||
# resize window
|
|
||||||
bindsym $mod+r mode " "
|
|
||||||
mode " " {
|
|
||||||
# pressing left and up will shrink the window's width and height
|
|
||||||
# pressing right and down will grow the window's width and height
|
|
||||||
bindsym $left resize shrink width 10 px or 10 ppt
|
|
||||||
bindsym $down resize grow height 10 px or 10 ppt
|
|
||||||
bindsym $up resize shrink height 10 px or 10 ppt
|
|
||||||
bindsym $right resize grow width 10 px or 10 ppt
|
|
||||||
|
|
||||||
# same bindings, but for the arrow keys
|
|
||||||
bindsym Left resize shrink width 10 px or 10 ppt
|
|
||||||
bindsym Down resize grow height 10 px or 10 ppt
|
|
||||||
bindsym Up resize shrink height 10 px or 10 ppt
|
|
||||||
bindsym Right resize grow width 10 px or 10 ppt
|
|
||||||
|
|
||||||
# back to normal: Enter or win+r
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym $mod+r mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
# set specific windows to floating mode
|
|
||||||
for_window [window_role="app"] floating enable
|
|
||||||
#for_window [window_role="pop-up"] floating enable
|
|
||||||
for_window [window_role="task_dialog"] floating enable
|
|
||||||
for_window [title="Preferences$"] floating enable
|
|
||||||
for_window [class="Gkamus"] floating enable
|
|
||||||
for_window [class="Go-for-it"] floating enable
|
|
||||||
for_window [class="Lightdm-gtk-greeter-settings"] floating enable
|
|
||||||
for_window [class="Lxappearance"] floating enable
|
|
||||||
for_window [class="Menu"] floating enable
|
|
||||||
for_window [class="Nm-connection-editor"] floating enable
|
|
||||||
for_window [class="Software-properties-gtk"] floating enable
|
|
||||||
for_window [app_id="launcher"] floating enable
|
|
||||||
|
|
||||||
# set specific windows to tabbed mode
|
|
||||||
#for_window [class="Rambox"]tabbed
|
|
||||||
#for_window [class="Signal"]tabbed
|
|
||||||
|
|
||||||
# assign program to workspace
|
|
||||||
assign [title="terminal-sway"] → $ws1
|
|
||||||
# assign [app_id="Alacritty" title="^(?!alacritty-sway)$"] → $ws2
|
|
||||||
assign [app_id="foot" title="^(?!terminal-sway)$"] → $ws2
|
|
||||||
assign [app_id="chromium"] → $ws3
|
|
||||||
assign [app_id="firefox"] → $ws3
|
|
||||||
assign [app_id="pcmanfm"] → $ws4
|
|
||||||
assign [app_id="libreoffice-calc"] → $ws5
|
|
||||||
assign [app_id="libreoffice-writer"] → $ws5
|
|
||||||
assign [class="vlc"] → $ws6
|
|
||||||
assign [class="Gimp"] → $ws7
|
|
||||||
assign [class="Signal"] → $ws8
|
|
||||||
assign [app_id="social"] → $ws8
|
|
||||||
assign [app_id="thunderbird"] → $ws8
|
|
||||||
assign [class="Lightdm-gtk-greeter-settings"] → $ws10
|
|
||||||
assign [class="Software-properties-gtk"] → $ws10
|
|
||||||
|
|
||||||
# class border backgr. text indicator child_border
|
|
||||||
client.focused #2b83a6 #2b83a6 #ffffff #dddddd #2b83a6
|
|
||||||
client.focused_inactive #212121 #212121 #86888c #292d2e #5a5a5a
|
|
||||||
client.unfocused #212121 #212121 #86888c #292d2e #5a5a5a
|
|
||||||
client.urgent #d64e4e #d64e4e #ffffff #d64e4e #d64e4e
|
|
||||||
client.placeholder #212121 #0c0c0c #ffffff #212121 #262626
|
|
||||||
client.background #212121
|
|
||||||
|
|
||||||
bar {
|
|
||||||
swaybar_command waybar
|
|
||||||
}
|
|
||||||
|
|
||||||
# gaps
|
|
||||||
smart_gaps on
|
|
||||||
gaps inner 12
|
|
||||||
gaps outer 0
|
|
||||||
|
|
||||||
# startup applications
|
|
||||||
# exec /run/wrappers/bin/gnome-keyring-daemon --start --daemonize
|
|
||||||
# exec waydroid session start && waydroid show-full-ui
|
|
||||||
exec foot -c /etc/xdg/foot/foot.ini -T terminal-sway
|
|
||||||
exec squeekboard
|
|
||||||
exec busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
|
||||||
|
|
||||||
# wallpaper
|
|
||||||
# output eDP-1 bg ~/.wallpaper.jpg fill
|
|
||||||
# output DP-4 bg ~/.wallpaper.jpg fill
|
|
||||||
# output DP-5 bg ~/.wallpaper.jpg fill
|
|
||||||
|
|
||||||
input * xkb_layout "de"
|
|
||||||
input * xkb_variant "colemak,,typewriter"
|
|
||||||
input * xkb_options "grp:win_space_toggle"
|
|
||||||
input "MANUFACTURER1 Keyboard" xkb_model "pc101"
|
|
||||||
|
|
||||||
# notebook
|
|
||||||
set $laptop eDP-1
|
|
||||||
# bindswitch --reload --locked lid:on output $laptop disable
|
|
||||||
# bindswitch --reload lid:off output $laptop enable
|
|
||||||
|
|
||||||
# A lock command used in several places
|
|
||||||
set $lock_script swaylock
|
|
||||||
|
|
||||||
# A sleep command used in several places.
|
|
||||||
# We leave a bit of time for locking to happen before putting the system to sleep
|
|
||||||
set $sleep $lock_script && sleep 3 && systemctl suspend
|
|
||||||
|
|
||||||
# Triggers a short notification
|
|
||||||
set $notify dunstify --timeout 1500
|
|
||||||
|
|
||||||
# Set your laptop screen name
|
|
||||||
set $laptop_screen 'eDP-1'
|
|
||||||
|
|
||||||
# Clamshell mode or lock & sleep
|
|
||||||
# This is a if/else statement: [ outputs_count == 1 ] && true || false
|
|
||||||
# bindswitch --locked lid:on exec '[ $(swaymsg -t get_outputs | grep name | wc -l) == 1 ] && ($sleep) || swaymsg output $laptop_screen disable'
|
|
||||||
# bindswitch --locked lid:off output $laptop_screen enable
|
|
||||||
|
|
||||||
# disable xwayland
|
|
||||||
# xwayland disable
|
|
||||||
|
|
||||||
# Touchpad
|
|
||||||
input type:touchpad {
|
|
||||||
tap enabled
|
|
||||||
natural_scroll enabled
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
# set $mod Mod1
|
|
||||||
|
|
||||||
# output DSI-1 scale 1.5
|
|
||||||
|
|
||||||
# bindsym $mod+d exec foot -a launcher -e env TERMINAL_COMMAND="foot -c /etc/xdg/foot/foot.ini -e" sway-launcher-desktop
|
|
||||||
|
|
||||||
|
|
||||||
# exec foot -c /etc/xdg/foot/foot.ini -T terminal-sway
|
|
||||||
# exec squeekboard
|
|
||||||
# exec busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
|
|
||||||
exec waydroid session start && waydroid show-full-ui
|
|
||||||
|
|
||||||
|
|
||||||
# exec lisgd \
|
|
||||||
# -g "1,l,r, false" \
|
|
||||||
# -g "1,r,l, false" \
|
|
||||||
# -g "1,u,d, false" \
|
|
||||||
# -g "1,d,u, false" \
|
|
||||||
# -g "2,l,r, swaymsg workspace prev" \
|
|
||||||
# -g "2,r,l, swaymsg workspace next" \
|
|
||||||
# -g "2,u,d, swaymsg exec busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false" \
|
|
||||||
# -g "2,d,u, swaymsg exec pidof squeekboard || squeekboard & busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true" \
|
|
||||||
# -g "2,l,u, swaymsg fullscreen" \
|
|
||||||
# -g "2,r,d, swaymsg kill" \
|
|
||||||
# -g "3,l,r, swaymsg focus right" \
|
|
||||||
# -g "3,r,l, swaymsg focus left" \
|
|
||||||
# -g "3,u,d, swaymsg focus down" \
|
|
||||||
# -g "3,d,u, swaymsg focus up" \
|
|
||||||
# -g "4,l,r, swaymsg move right" \
|
|
||||||
# -g "4,r,l, swaymsg move left" \
|
|
||||||
# -g "4,u,d, swaymsg move down" \
|
|
||||||
# -g "4,d,u, swaymsg move up"
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
// -*- mode: json -*-
|
|
||||||
|
|
||||||
{
|
|
||||||
"layer": "top",
|
|
||||||
"position": "top",
|
|
||||||
"output": ["eDP-1"],
|
|
||||||
|
|
||||||
"modules-left": [
|
|
||||||
"sway/workspaces",
|
|
||||||
"custom/right-arrow-dark"
|
|
||||||
],
|
|
||||||
"modules-center": [
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"clock#1",
|
|
||||||
"custom/left-arrow-light",
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"clock#2",
|
|
||||||
"custom/right-arrow-dark",
|
|
||||||
"custom/right-arrow-light",
|
|
||||||
"clock#3",
|
|
||||||
"custom/right-arrow-dark"
|
|
||||||
],
|
|
||||||
"modules-right": [
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"network",
|
|
||||||
"custom/left-arrow-light",
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"pulseaudio",
|
|
||||||
"custom/left-arrow-light",
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"memory",
|
|
||||||
"custom/left-arrow-light",
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"cpu",
|
|
||||||
"custom/left-arrow-light",
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"battery",
|
|
||||||
"custom/left-arrow-light",
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"disk",
|
|
||||||
"custom/left-arrow-light",
|
|
||||||
"custom/left-arrow-dark",
|
|
||||||
"tray"
|
|
||||||
],
|
|
||||||
|
|
||||||
"custom/left-arrow-dark": {
|
|
||||||
"format": "",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/left-arrow-light": {
|
|
||||||
"format": "",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/right-arrow-dark": {
|
|
||||||
"format": "",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"custom/right-arrow-light": {
|
|
||||||
"format": "",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"sway/workspaces": {
|
|
||||||
"disable-scroll": true,
|
|
||||||
"format": "{name}"
|
|
||||||
},
|
|
||||||
|
|
||||||
"clock#1": {
|
|
||||||
"format": "{:%a}",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"clock#2": {
|
|
||||||
"format": "{:%H:%M}",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"clock#3": {
|
|
||||||
"format": "{:%d.%m}",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"pulseaudio": {
|
|
||||||
"format": "{icon}{volume}%",
|
|
||||||
"format-muted": "ﱝ",
|
|
||||||
"format-icons": {
|
|
||||||
"phone": ["奄", "奔", "墳"],
|
|
||||||
"default": ["奄", "奔", "墳"]
|
|
||||||
},
|
|
||||||
"scroll-step": 5,
|
|
||||||
"on-click": "pavucontrol",
|
|
||||||
"tooltip": false
|
|
||||||
},
|
|
||||||
"network": {
|
|
||||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
||||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
||||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
||||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
||||||
"format-linked": "{ifname} (No IP) ",
|
|
||||||
"format-disconnected": "Disconnected ",
|
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
||||||
},
|
|
||||||
"memory": {
|
|
||||||
"interval": 5,
|
|
||||||
"format": "{}%"
|
|
||||||
},
|
|
||||||
"cpu": {
|
|
||||||
"interval": 5,
|
|
||||||
"format": "{usage:2}%"
|
|
||||||
},
|
|
||||||
"battery": {
|
|
||||||
"states": {
|
|
||||||
"good": 95,
|
|
||||||
"warning": 30,
|
|
||||||
"critical": 15
|
|
||||||
},
|
|
||||||
"format": "{icon} {capacity}%",
|
|
||||||
"format-icons": [
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
"",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"disk": {
|
|
||||||
"interval": 5,
|
|
||||||
"format": "{percentage_used:2}%",
|
|
||||||
"path": "/home/"
|
|
||||||
},
|
|
||||||
"tray": {
|
|
||||||
"icon-size": 20
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
* {
|
|
||||||
font-size: 20px;
|
|
||||||
font-family: monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
background: #282a36;
|
|
||||||
color: #f8f8f2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-right-arrow-dark,
|
|
||||||
#custom-left-arrow-dark {
|
|
||||||
color: #252525;
|
|
||||||
}
|
|
||||||
#custom-right-arrow-light,
|
|
||||||
#custom-left-arrow-light {
|
|
||||||
color: #282a36;
|
|
||||||
background: #252525;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces,
|
|
||||||
#clock.1,
|
|
||||||
#clock.2,
|
|
||||||
#clock.3,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#memory,
|
|
||||||
#cpu,
|
|
||||||
#battery,
|
|
||||||
#disk,
|
|
||||||
#tray {
|
|
||||||
background: #252525;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
padding: 0 2px;
|
|
||||||
color: #f8f8f2;
|
|
||||||
}
|
|
||||||
#workspaces button.focused {
|
|
||||||
color: #50fa7b;
|
|
||||||
}
|
|
||||||
#workspaces button:hover {
|
|
||||||
box-shadow: inherit;
|
|
||||||
text-shadow: inherit;
|
|
||||||
}
|
|
||||||
#workspaces button:hover {
|
|
||||||
background: #252525;
|
|
||||||
border: #252525;
|
|
||||||
padding: 0 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network {
|
|
||||||
color: #8be9fd;
|
|
||||||
}
|
|
||||||
#pulseaudio {
|
|
||||||
color: #6272a4;
|
|
||||||
}
|
|
||||||
#memory {
|
|
||||||
color: #f8f8f2;
|
|
||||||
}
|
|
||||||
#cpu {
|
|
||||||
color: #bd93f9;
|
|
||||||
}
|
|
||||||
#battery {
|
|
||||||
color: #f1fa8c;
|
|
||||||
}
|
|
||||||
#disk {
|
|
||||||
color: #ffb86c;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#memory,
|
|
||||||
#cpu,
|
|
||||||
#battery,
|
|
||||||
#disk {
|
|
||||||
padding: 0 10px;
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../utils
|
|
||||||
Reference in New Issue
Block a user