From: Amin Bandali Date: Sun, 12 Apr 2020 03:42:55 +0000 (-0400) Subject: delete old config files X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/c4b211177c12a97f8ffe10055325dd90a0a39b31?hp=5d3bd4099ecff7b02454efcb6f6bb355a992aef8 delete old config files - compton - dunst - i3status - sway - swaylock - ncmpcpp - pigeonhole --- diff --git a/.config/compton/compton.conf b/.config/compton/compton.conf deleted file mode 100644 index 4d6ce5e..0000000 --- a/.config/compton/compton.conf +++ /dev/null @@ -1,85 +0,0 @@ -# Shadow -shadow = true; -shadow-radius = 5; -shadow-offset-x = -5; -shadow-offset-y = -5; -log-level = "warn"; -# log-file = "/path/to/your/log/file"; -# shadow-opacity = 0.7; -# shadow-red = 0.0; -# shadow-green = 0.0; -# shadow-blue = 0.0; -shadow-exclude = [ - "name = 'Notification'", - "class_g = 'Conky'", - "class_g = 'Abrowser' && !window_type *= 'menu'", - "class_g ?= 'Notify-osd'", - "class_g = 'Cairo-clock'", - "_GTK_FRAME_EXTENTS@:c" -]; -# shadow-exclude = "n:e:Notification"; -# shadow-exclude-reg = "x10+0+0"; -# xinerama-shadow-crop = true; - -# Opacity -inactive-opacity = 0.8; -# active-opacity = 0.8; -frame-opacity = 0.7; -inactive-opacity-override = false; -# inactive-dim = 0.2; -# inactive-dim-fixed = true; -# blur-background = true; -# blur-background-frame = true; -blur-kern = "3x3box"; -# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; -# blur-background-fixed = true; -blur-background-exclude = [ - "window_type = 'dock'", - "window_type = 'desktop'", - "_GTK_FRAME_EXTENTS@:c" -]; -# opacity-rule = [ "80:class_g = 'URxvt'" ]; - -# Fading -fading = true; -fade-delta = 9; -fade-in-step = 0.5; -fade-out-step = 0.5; -# no-fading-openclose = true; -# no-fading-destroyed-argb = true; -fade-exclude = [ ]; - -# Other -backend = "glx"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -# use-ewmh-active-win = true; -detect-rounded-corners = true; -detect-client-opacity = true; -refresh-rate = 0; -vsync = true; -# sw-opti = true; -# unredir-if-possible = true; -# unredir-if-possible-delay = 5000; -# unredir-if-possible-exclude = [ ]; -focus-exclude = [ "class_g = 'Cairo-clock'" ]; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -# resize-damage = 1; - -# GLX backend -# glx-no-stencil = true; -# glx-no-rebind-pixmap = true; -# xrender-sync-fence = true; -use-damage = false; - -# Window type settings -wintypes: -{ - tooltip = { fade = true; shadow = false; opacity = 0.95; focus = true; full-shadow = false; }; - dock = { shadow = false; } - dnd = { shadow = false; } - popup_menu = { opacity = 0.8; } - dropdown_menu = { opacity = 0.8; } -}; diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc deleted file mode 100644 index 71af98b..0000000 --- a/.config/dunst/dunstrc +++ /dev/null @@ -1,415 +0,0 @@ -[global] - ### Display ### - - # Which monitor should the notifications be displayed on. - monitor = 0 - - # Display notification on focused monitor. Possible modes are: - # mouse: follow mouse pointer - # keyboard: follow window with keyboard focus - # none: don't follow anything - # - # "keyboard" needs a window manager that exports the - # _NET_ACTIVE_WINDOW property. - # This should be the case for almost all modern window managers. - # - # If this option is set to mouse or keyboard, the monitor option - # will be ignored. - follow = mouse - - # The geometry of the window: - # [{width}]x{height}[+/-{x}+/-{y}] - # The geometry of the message window. - # The height is measured in number of notifications everything else - # in pixels. If the width is omitted but the height is given - # ("-geometry x2"), the message window expands over the whole screen - # (dmenu-like). If width is 0, the window expands to the longest - # message displayed. A positive x is measured from the left, a - # negative from the right side of the screen. Y is measured from - # the top and down respectively. - # The width can be negative. In this case the actual width is the - # screen width minus the width defined in within the geometry option. - geometry = "300x5-30+20" - - # Show how many messages are currently hidden (because of geometry). - indicate_hidden = yes - - # Shrink window if it's smaller than the width. Will be ignored if - # width is 0. - shrink = no - - # The transparency of the window. Range: [0; 100]. - # This option will only work if a compositing window manager is - # present (e.g. xcompmgr, compiz, etc.). - transparency = 0 - - # The height of the entire notification. If the height is smaller - # than the font height and padding combined, it will be raised - # to the font height and padding. - notification_height = 0 - - # Draw a line of "separator_height" pixel height between two - # notifications. - # Set to 0 to disable. - separator_height = 2 - - # Padding between text and separator. - padding = 8 - - # Horizontal padding. - horizontal_padding = 8 - - # Defines width in pixels of frame around the notification window. - # Set to 0 to disable. - frame_width = 3 - - # Defines color of the frame around the notification window. - frame_color = "#aaaaaa" - - # Define a color for the separator. - # possible values are: - # * auto: dunst tries to find a color fitting to the background; - # * foreground: use the same color as the foreground; - # * frame: use the same color as the frame; - # * anything else will be interpreted as a X color. - separator_color = frame - - # Sort messages by urgency. - sort = yes - - # Don't remove messages, if the user is idle (no mouse or keyboard input) - # for longer than idle_threshold seconds. - # Set to 0 to disable. - # A client can set the 'transient' hint to bypass this. See the rules - # section for how to disable this if necessary - idle_threshold = 120 - - ### Text ### - - font = Inconsolata 11 - - # The spacing between lines. If the height is smaller than the - # font height, it will get raised to the font height. - line_height = 0 - - # Possible values are: - # full: Allow a small subset of html markup in notifications: - # bold - # italic - # strikethrough - # underline - # - # For a complete reference see - # . - # - # strip: This setting is provided for compatibility with some broken - # clients that send markup even though it's not enabled on the - # server. Dunst will try to strip the markup but the parsing is - # simplistic so using this option outside of matching rules for - # specific applications *IS GREATLY DISCOURAGED*. - # - # no: Disable markup parsing, incoming notifications will be treated as - # plain text. Dunst will not advertise that it has the body-markup - # capability if this is set as a global setting. - # - # It's important to note that markup inside the format option will be parsed - # regardless of what this is set to. - markup = full - - # The format of the message. Possible variables are: - # %a appname - # %s summary - # %b body - # %i iconname (including its path) - # %I iconname (without its path) - # %p progress value if set ([ 0%] to [100%]) or nothing - # %n progress value if set without any extra characters - # %% Literal % - # Markup is allowed - format = "%s\n%b" - - # Alignment of message text. - # Possible values are "left", "center" and "right". - alignment = left - - # Show age of message if message is older than show_age_threshold - # seconds. - # Set to -1 to disable. - show_age_threshold = 60 - - # Split notifications into multiple lines if they don't fit into - # geometry. - word_wrap = yes - - # When word_wrap is set to no, specify where to make an ellipsis in long lines. - # Possible values are "start", "middle" and "end". - ellipsize = middle - - # Ignore newlines '\n' in notifications. - ignore_newline = no - - # Stack together notifications with the same content - stack_duplicates = true - - # Hide the count of stacked notifications with the same content - hide_duplicate_count = false - - # Display indicators for URLs (U) and actions (A). - show_indicators = yes - - ### Icons ### - - # Align icons left/right/off - icon_position = off - - # Scale larger icons down to this size, set to 0 to disable - max_icon_size = 32 - - # Paths to default icons. - icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ - - ### History ### - - # Should a notification popped up from history be sticky or timeout - # as if it would normally do. - sticky_history = yes - - # Maximum amount of notifications kept in history - history_length = 50 - - ### Misc/Advanced ### - - # dmenu path. - dmenu = rofi -dmenu -p dunst: - - # Browser for opening urls in context menu. - browser = icecat -private-window -new-tab - - # Always run rule-defined scripts, even if the notification is suppressed - always_run_script = true - - # Define the title of the windows spawned by dunst - title = Dunst - - # Define the class of the windows spawned by dunst - class = Dunst - - # Print a notification on startup. - # This is mainly for error detection, since dbus (re-)starts dunst - # automatically after a crash. - startup_notification = false - - # Manage dunst's desire for talking - # Can be one of the following values: - # crit: Critical features. Dunst aborts - # warn: Only non-fatal warnings - # mesg: Important Messages - # info: all unimportant stuff - # debug: all less than unimportant stuff - verbosity = mesg - - # Define the corner radius of the notification window - # in pixel size. If the radius is 0, you have no rounded - # corners. - # The radius will be automatically lowered if it exceeds half of the - # notification height to avoid clipping text and/or icons. - corner_radius = 0 - - ### Legacy - - # Use the Xinerama extension instead of RandR for multi-monitor support. - # This setting is provided for compatibility with older nVidia drivers that - # do not support RandR and using it on systems that support RandR is highly - # discouraged. - # - # By enabling this setting dunst will not be able to detect when a monitor - # is connected or disconnected which might break follow mode if the screen - # layout changes. - force_xinerama = false - - ### mouse - - # Defines action of mouse event - # Possible values are: - # * none: Don't do anything. - # * do_action: If the notification has exactly one action, or one is marked as default, - # invoke it. If there are multiple and no default, open the context menu. - # * close_current: Close current notification. - # * close_all: Close all notifications. - mouse_left_click = do_action - mouse_middle_click = close_all - mouse_right_click = close_current - -# Experimental features that may or may not work correctly. Do not expect them -# to have a consistent behaviour across releases. -[experimental] - # Calculate the dpi to use on a per-monitor basis. - # If this setting is enabled the Xft.dpi value will be ignored and instead - # dunst will attempt to calculate an appropriate dpi value for each monitor - # using the resolution and physical size. This might be useful in setups - # where there are multiple screens with very different dpi values. - per_monitor_dpi = false - -[shortcuts] - - # Shortcuts are specified as [modifier+][modifier+]...key - # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", - # "mod3" and "mod4" (windows-key). - # Xev might be helpful to find names for keys. - - # Close notification. - close = ctrl+space - - # Close all notifications. - close_all = ctrl+shift+space - - # Redisplay last message(s). - # On the US keyboard layout "grave" is normally above TAB and left - # of "1". Make sure this key actually exists on your keyboard layout, - # e.g. check output of 'xmodmap -pke' - history = ctrl+grave - - # Context menu. - context = ctrl+shift+period - -[urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the "#" and following would be interpreted as a comment. - background = "#222222" - foreground = "#888888" - timeout = 0 - history_ignore = yes - # Icon for notifications with low urgency, uncomment to enable - #icon = /path/to/icon - -[urgency_normal] - background = "#285577" - foreground = "#ffffff" - timeout = 0 - # Icon for notifications with normal urgency, uncomment to enable - #icon = /path/to/icon - -[urgency_critical] - background = "#900000" - foreground = "#ffffff" - frame_color = "#ff0000" - timeout = 0 - # Icon for notifications with critical urgency, uncomment to enable - #icon = /path/to/icon - -# Every section that isn't one of the above is interpreted as a rules to -# override settings for certain messages. -# -# Messages can be matched by -# appname (discouraged, see desktop_entry) -# body -# category -# desktop_entry -# icon -# match_transient -# msg_urgency -# stack_tag -# summary -# -# and you can override the -# background -# foreground -# format -# frame_color -# fullscreen -# new_icon -# set_stack_tag -# set_transient -# timeout -# urgency -# -# Shell-like globbing will get expanded. -# -# Instead of the appname filter, it's recommended to use the desktop_entry filter. -# GLib based applications export their desktop-entry name. In comparison to the appname, -# the desktop-entry won't get localized. -# -# SCRIPTING -# You can specify a script that gets run when the rule matches by -# setting the "script" option. -# The script will be called as follows: -# script appname summary body icon urgency -# where urgency can be "LOW", "NORMAL" or "CRITICAL". -# -# NOTE: if you don't want a notification to be displayed, set the format -# to "". -# NOTE: It might be helpful to run dunst -print in a terminal in order -# to find fitting options for rules. - -# Disable the transient hint so that idle_threshold cannot be bypassed from the -# client -#[transient_disable] -# match_transient = yes -# set_transient = no -# -# Make the handling of transient notifications more strict by making them not -# be placed in history. -#[transient_history_ignore] -# match_transient = yes -# history_ignore = yes - -# fullscreen values -# show: show the notifications, regardless if there is a fullscreen window opened -# delay: displays the new notification, if there is no fullscreen window active -# If the notification is already drawn, it won't get undrawn. -# pushback: same as delay, but when switching into fullscreen, the notification will get -# withdrawn from screen again and will get delayed like a new notification -#[fullscreen_delay_everything] -# fullscreen = delay -#[fullscreen_show_critical] -# msg_urgency = critical -# fullscreen = show - -#[espeak] -# summary = "*" -# script = dunst_espeak.sh - -#[script-test] -# summary = "*script*" -# script = dunst_test.sh - -#[ignore] -# # This notification will not be displayed -# summary = "foobar" -# format = "" - -#[history-ignore] -# # This notification will not be saved in history -# summary = "foobar" -# history_ignore = yes - -#[skip-display] -# # This notification will not be displayed, but will be included in the history -# summary = "foobar" -# skip_display = yes - -#[signed_on] -# appname = Pidgin -# summary = "*signed on*" -# urgency = low -# -#[signed_off] -# appname = Pidgin -# summary = *signed off* -# urgency = low -# -#[says] -# appname = Pidgin -# summary = *says* -# urgency = critical -# -#[twitter] -# appname = Pidgin -# summary = *twitter.com* -# urgency = normal -# -#[stack-volumes] -# appname = "some_volume_notifiers" -# set_stack_tag = "volume" -# -# vim: ft=cfg diff --git a/.config/guix/manifest/jirud.scm b/.config/guix/manifest/jirud.scm deleted file mode 100644 index 1949ca7..0000000 --- a/.config/guix/manifest/jirud.scm +++ /dev/null @@ -1,51 +0,0 @@ -(specifications->manifest - '("audacity" - "bash-completion" - "cvs" - ;; "emacs" - "font-adobe-source-code-pro" - ;; "font-gnu-freefont-ttf" - ;; "font-google-roboto" - ;; "font-liberation" - ;; "font-linuxlibertine" - ;; "font-sil-gentium" - ;; "font-tex-gyre" - ;; "font-ubuntu" - "getmail" - "gettext" - "gimp" - "git" - "git:send-email" - "glibc-locales" - "gnupg" - "guile" - "haunt" - "htop" - "hunspell" - "hunspell-dict-en-ca" - "hunspell-dict-en-us" - ;; "icecat" - "inkscape" - "isync" - "mpv" - "msmtp" - "ncdu" - "notmuch" - "nss-certs" - "openssh" - ;; "openssl" - "password-store" - "pinentry" - ;; "poppler" ;for 'pdffonts' - "rsync" - "rtv" - "screen" - ;; "setxkbmap" - ;; "texlive" - ;; "texlive-base" - ;; "thinkfan" - ;; "xdg-user-dirs" - ;; "xkbcomp" - ;; "xmodmap" - ;; "xrdb" - "youtube-dl")) diff --git a/.config/i3status/config b/.config/i3status/config deleted file mode 100644 index 010b020..0000000 --- a/.config/i3status/config +++ /dev/null @@ -1,67 +0,0 @@ -# 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 = 5 - output_format = "i3bar" -} - -# order += "ipv6" -order += "disk /" -order += "disk /data" -# order += "wireless _first_" -order += "ethernet _first_" -order += "battery 0" -order += "volume master" -# order += "load" -order += "tztime local" - -wireless _first_ { - format_up = "W:%quality %essid %ip" - format_down = "W: down" -} - -ethernet _first_ { - # if you use %speed, i3status requires root privileges - # format_up = "E: %ip (%speed)" - format_up = "E: %ip" - format_down = "E: down" -} - -battery 0 { - format = "%status %percentage %remaining %consumption" - path = "/sys/class/power_supply/BAT%d/uevent" - low_threshold = "10" - threshold_type = "percentage" - last_full_capacity = true - integer_battery_capacity = true - hide_seconds = true -} - -tztime local { - format = "%A %Y-%m-%d %I:%M %p" -} - -volume master { - format = "♪ %volume" - format_muted = "🔇 %volume" - device = "pulse" -} - -load { - format = "%1min" -} - -disk "/" { - format = "/ %avail" -} - -disk "/data" { - format = "/data %avail" -} diff --git a/.config/sway/config b/.config/sway/config deleted file mode 100644 index 10a0fef..0000000 --- a/.config/sway/config +++ /dev/null @@ -1,332 +0,0 @@ -### Variables -# super -set $mod Mod4 -# alt -set $mod2 Mod1 -set $left h -set $down j -set $up k -set $right l -set $term urxvt -set $menu rofi -show run -display-run '> ' -display-window ' 🗔 ' -set $pass rofi-pass - -### Output configuration -# -# Default wallpaper (more resolutions are available in __DATADIR__/backgrounds/sway/) -# -# Example configuration: -# -# output HDMI-A-1 resolution 1920x1080 position 1920,0 -# -# You can get the names of your outputs by running: swaymsg -t get_outputs - -### Input configuration - -input "65261:24672:technomancy_Atreus" { - repeat_delay 200 - repeat_rate 45 - # xkb_options altwin:swap_alt_win -} - -### Idle configuration - -exec swayidle \ - timeout 120 '[ -f ~/.nosleep ] || swaymsg "output * dpms off"' \ - resume '[ -f ~/.nosleep ] || swaymsg "output * dpms on"' \ - - -### Key bindings -# -# Basics: -# - -set $floating_term $term -name floating -for_window [class="URxvt" instance="floating"] floating enable - -set $mode_launch (⏎)urxvt | | (e)macs | (i)cecat/weasel -mode "$mode_launch" { - bindsym Return exec $floating_term, mode "default" - bindsym p exec $pass, mode "default" - bindsym e exec emacs, mode "default" - - # back to normal: Escape, or q - bindsym Escape mode "default" - bindsym q mode "default" -} - bindsym $mod+tab mode "$mode_launch" - bindsym XF86Launch1 mode "$mode_launch" - - # start a terminal - bindsym $mod+Return exec $term - bindsym $mod+Shift+Return exec $floating_term - - # kill focused window - bindsym $mod+Shift+q kill - - # start your launcher - bindsym $mod+space exec $menu - - # start your launcher - bindsym $mod+Shift+space exec $pass - - # Drag floating windows by holding down $mod and left mouse button. - # Resize them with right mouse button + $mod. - # Despite the name, also works for non-floating windows. - # Change normal to inverse to use left mouse button for resizing and right - # mouse button for dragging. - floating_modifier $mod normal - - mouse_warping none - - # reload the configuration file - bindsym $mod+Shift+c reload - - # exit sway (logs you out of your wayland session) - # bindsym $mod+Shift+e exit - - bindsym $mod+apostrophe exec rofi-light # rofi-based brightness chooser - bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness - bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness - - bindsym XF86AudioRaiseVolume exec pamixer --allow-boost --increase 5 - bindsym XF86AudioLowerVolume exec pamixer --allow-boost --decrease 5 - bindsym XF86AudioMute exec pamixer --toggle-mute - bindsym XF86AudioMicMute exec pactl set-source-mute 1 toggle - - bindsym $mod+Shift+apostrophe exec rofi-remmina # choose remmina connection - - # original sway workspace switch and window move - bindsym $mod+bracketleft workspace prev - bindsym $mod+bracketright workspace next - bindsym $mod+braceleft move container to workspace prev - bindsym $mod+braceright move container to workspace next - - # bspwm-esque workspace switch and window move - bindsym $mod2+bracketleft exec sway-ws-util switch prev - bindsym $mod2+bracketright exec sway-ws-util switch next - bindsym $mod2+braceleft exec sway-ws-util move prev follow - bindsym $mod2+braceright exec sway-ws-util move next follow -# -# Moving around: -# - # Move your focus around - bindsym $mod+$left focus left - bindsym $mod+$down focus down - bindsym $mod+$up focus up - bindsym $mod+$right focus right - # or use $mod+[up|down|left|right] - bindsym $mod+Left focus left - bindsym $mod+Down focus down - bindsym $mod+Up focus up - bindsym $mod+Right focus right - - # _move_ the focused window with the same, but add Shift - bindsym $mod+Shift+$left move left - bindsym $mod+Shift+$down move down - bindsym $mod+Shift+$up move up - bindsym $mod+Shift+$right move right - # ditto, with arrow 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 -# -# Workspaces: -# - # switch to workspace - bindsym $mod+1 workspace 1 - bindsym $mod+2 workspace 2 - bindsym $mod+3 workspace 3 - bindsym $mod+4 workspace 4 - bindsym $mod+5 workspace 5 - bindsym $mod+6 workspace 6 - bindsym $mod+7 workspace 7 - bindsym $mod+8 workspace 8 - bindsym $mod+9 workspace 9 - bindsym $mod+0 workspace 10 - # move focused container to workspace - bindsym $mod+Shift+1 move container to workspace 1 - bindsym $mod+Shift+2 move container to workspace 2 - bindsym $mod+Shift+3 move container to workspace 3 - bindsym $mod+Shift+4 move container to workspace 4 - bindsym $mod+Shift+5 move container to workspace 5 - bindsym $mod+Shift+6 move container to workspace 6 - bindsym $mod+Shift+7 move container to workspace 7 - bindsym $mod+Shift+8 move container to workspace 8 - bindsym $mod+Shift+9 move container to workspace 9 - bindsym $mod+Shift+0 move container to workspace 10 - # Note: workspaces can have any name you want, not just numbers. - # We just use 1-10 as the default. -# -# Layout stuff: -# - # You can "split" the current object of your focus with - # $mod+b or $mod+v, for horizontal and vertical splits - # respectively. - bindsym $mod+b splith - bindsym $mod+v splitv - - # Switch the current container between different layout styles - bindsym $mod+s layout stacking - bindsym $mod+w layout tabbed - bindsym $mod+e layout toggle split - - # Make the current focus fullscreen - bindsym $mod+f fullscreen - - # Toggle sticky-ness of the current (floating) window - bindsym $mod+Shift+s sticky toggle - - # Toggle the current focus between tiling and floating mode - bindsym $mod+Shift+f floating toggle - - # Swap focus between the tiling area and the floating area - bindsym $mod+grave focus mode_toggle - - # move focus to the parent container - bindsym $mod+a focus parent - bindsym $mod+Shift+a focus child -# -# Scratchpad: -# - # Sway has a "scratchpad", which is a bag of holding for windows. - # You can send windows there and get them back later. - - # 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. - # If there are multiple scratchpad windows, this command cycles through them. - bindsym $mod+minus scratchpad show -# -# Resizing containers: -# -mode "resize" { - # left will shrink the containers width - # right will grow the containers width - # up will shrink the containers height - # down will grow the containers height - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px - - # ditto, with arrow keys - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px - - # return to default mode - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+Shift+r mode "resize" - -# -# Power button -# - -set $mode_system System (l)ock | (e)xit sway | (s)uspend | (h)ibernate | (r)eboot | (S)hutdown -mode "$mode_system" { - bindsym l exec swaylock, mode "default" - bindsym e exec swaymsg exit, mode "default" - bindsym s exec systemctl suspend, mode "default" - bindsym h exec systemctl hibernate, mode "default" - bindsym r exec systemctl reboot, mode "default" - bindsym Shift+s exec systemctl poweroff -i, mode "default" - - # back to normal: Enter, Escape, or q - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym q mode "default" -} -# bindsym XF86PowerOff mode "$mode_system" -bindsym $mod+Shift+e mode "$mode_system" -bindsym XF86ScreenSaver exec swaylock - -# -# Presentation mode -# - -bindsym $mod+$mod2+p exec ([ ! -e ~/.nosleep ] && touch ~/.nosleep || rm ~/.nosleep) && killall -USR1 i3status - -# -# Notifications -# - -bindsym $mod+Shift+n mode notifications -mode notifications { - bindsym Return exec makoctl invoke; exec makoctl dismiss; mode default - bindsym d exec makoctl dismiss; mode default - bindsym Shift+d exec makoctl dismiss -a; mode default - - bindsym Escape mode default - bindsym q mode default -} - -# -# Screenshotting -# - -set $mode_screenshot (a)ll | (r)egion -mode "$mode_screenshot" { - bindsym a exec grim $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default - bindsym r exec grim -g "$(slurp)" $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default - - bindsym Escape mode default - bindsym q mode default -} -bindsym Print mode "$mode_screenshot" - -# -# Window configurations -# -for_window [class="mpv"] floating enable -for_window [class="TelegramDesktop"] floating enable -for_window [app_id="pavucontrol"] floating enable -for_window [app_id="meld"] floating enable -for_window [app_id="nm-connection-editor"] floating enable - -set $blue #285577 -set $gray #1e1f21 -set $red #900000 - -# -# Status Bar: -# -# Read `man 5 sway-bar` for more information about this section. -bar { - position bottom - colors { - background $gray - inactive_workspace $gray $gray #888888 - active_workspace $gray $gray #ffffff - urgent_workspace $red $red #ffffff - focused_workspace $blue $blue #ffffff - } - status_command i3status | my-i3status -} - -client.focused $blue $blue #ffffff $blue $blue -client.unfocused $gray $gray #ffffff $gray $gray -client.focused_inactive $gray $gray #ffffff $gray $gray - -# font pango: DejaVu Sans Mono 9 -font pango: Source Code Pro 9.5 - -# get rid of title bars -default_border pixel 4 - -exec xrdb .Xresources -# exec pgrep -x "systemd-inhibit" || \ -# systemd-inhibit --what=handle-power-key --who=aminb \ -# --why="Handle power button in sway" sleep infinity -exec mako 2>&1 >/tmp/mako.log -#exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 - -include /etc/sway/config.d/* -include ~/.config/sway/`hostname` - -exec systemd-notify --ready || true diff --git a/.config/sway/darrud b/.config/sway/darrud deleted file mode 100644 index 4821860..0000000 --- a/.config/sway/darrud +++ /dev/null @@ -1,19 +0,0 @@ -output HDMI-A-1 res 2560x1440 pos 0,0 -output eDP-1 pos 2560,750 - -# focus output HDMI-A-1 - -input "1739:31251:DLL07BE:01_06CB:7A13_Touchpad" { - dwt enabled - tap enabled - natural_scroll enabled - middle_emulation enabled - click_method clickfinger -} - -input "1:1:AT_Translated_Set_2_keyboard" { - repeat_delay 200 - repeat_rate 45 - xkb_layout us,ir - xkb_options ctrl:nocaps,ctrl:swap_rwin_rctl,grp:shifts_toggle -} diff --git a/.config/sway/langa b/.config/sway/langa deleted file mode 100644 index eaac0e1..0000000 --- a/.config/sway/langa +++ /dev/null @@ -1,17 +0,0 @@ -input "2:7:SynPS/2_Synaptics_TouchPad" { - events disabled - dwt enabled - tap enabled - natural_scroll enabled - click_method clickfinger -} - -input "1:1:AT_Translated_Set_2_keyboard" { - repeat_delay 200 - repeat_rate 45 - xkb_layout us_ab,ir - xkb_options ctrl:nocaps,altwin:swap_alt_win,grp:shifts_toggle -} - -input "1386:230:Wacom_ISDv4_E6_Finger" map_to_output LVDS-1 -input "1386:230:Wacom_ISDv4_E6_Pen" map_to_output LVDS-1 diff --git a/.config/swaylock/config b/.config/swaylock/config deleted file mode 100644 index 779d040..0000000 --- a/.config/swaylock/config +++ /dev/null @@ -1,2 +0,0 @@ -image=/home/amin/usr/pics/wp/wp2445784-blurred-wallpapers.jpg -scaling=fill diff --git a/.local/bin/s b/.local/bin/s deleted file mode 100755 index dc34441..0000000 --- a/.local/bin/s +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -export _JAVA_AWT_WM_NONREPARENTING=1 -export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' -export MOZ_USE_XINPUT2=1 # precise scrolling in firefox -light -N 1 -sway diff --git a/.local/bin/sway-ws-util b/.local/bin/sway-ws-util deleted file mode 100755 index e03bf24..0000000 --- a/.local/bin/sway-ws-util +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -curr_ws=$(swaymsg -t get_workspaces | jq -r '.[] | select(.focused==true).name') -[ "$curr_ws" -eq 1 ] && prev_ws=10 || prev_ws=$((curr_ws-1)) -[ "$curr_ws" -eq 10 ] && next_ws=1 || next_ws=$((curr_ws+1)) -dest_ws=-1 -op=-1 - -if [ "$1" = "switch" ] || [ "$1" = "move" ]; then - op="$1" - if [ "$2" = "prev" ]; then - dest_ws="$prev_ws" - elif [ "$2" = "next" ]; then - dest_ws="$next_ws" - else - echo "Usage: $0 $1 {prev|next} [follow]" - exit 1 - fi -else - echo "Usage: $0 {switch|move} {prev|next} [follow]" - exit 1 -fi - -if [ "$op" = "switch" ]; then - sway workspace "$dest_ws" -elif [ "$op" = "move" ]; then - sway move container to workspace "$dest_ws" - if [ "$3" = "follow" ]; then - sway workspace "$dest_ws" - fi -fi diff --git a/rc.org b/rc.org index 8d770c0..ad8dcbc 100644 --- a/rc.org +++ b/rc.org @@ -1155,656 +1155,6 @@ from bandali@csclub.uwaterloo.ca account default : shemshak #+end_src -** ncmpcpp - -*** config -:PROPERTIES: -:header-args+: :tangle ~/.ncmpcpp/config -:END: - -#+begin_src conf :tangle no -############################################################## -## This is the example configuration file. Copy it to ## -## $HOME/.ncmpcpp/config or $XDG_CONFIG_HOME/ncmpcpp/config ## -## and set up your preferences. ## -############################################################## -# -##### directories ###### -## -## Directory for storing ncmpcpp related files. -## Changing it is useful if you want to store -## everything somewhere else and provide command -## line setting for alternative location to config -## file which defines that while launching ncmpcpp. -## -# -ncmpcpp_directory = ~/.ncmpcpp -# -## -## Directory for storing downloaded lyrics. It -## defaults to ~/.lyrics since other MPD clients -## (eg. ncmpc) also use that location. -## -# -#lyrics_directory = ~/.lyrics -# -##### connection settings ##### -# -#mpd_host = localhost -# -#mpd_port = 6600 -# -#mpd_connection_timeout = 5 -# -## Needed for tag editor and file operations to work. -## -mpd_music_dir = ~/usr/music -# -#mpd_crossfade_time = 5 -# -##### music visualizer ##### -## -## Note: In order to make music visualizer work you'll -## need to use mpd fifo output, whose format parameter -## has to be set to 44100:16:1 for mono visualization -## or 44100:16:2 for stereo visualization. Example -## configuration (it has to be put into mpd.conf): -## -## audio_output { -## type "fifo" -## name "Visualizer feed" -## path "/tmp/mpd.fifo" -## format "44100:16:2" -## } -## -# -visualizer_fifo_path = /tmp/mpd.fifo -# -## -## Note: Below parameter is needed for ncmpcpp -## to determine which output provides data for -## visualizer and thus allow syncing between -## visualization and sound as currently there -## are some problems with it. -## -# -visualizer_output_name = my fifo -# -## -## If you set format to 44100:16:2, make it 'yes'. -## -visualizer_in_stereo = yes -# -## -## Multiply received samples by given value. Very -## useful for proper visualization of quiet music. -## -#visualizer_sample_multiplier = 1 -# -## -## Note: Below parameter defines how often ncmpcpp -## has to "synchronize" visualizer and audio outputs. -## 30 seconds is optimal value, but if you experience -## synchronization problems, set it to lower value. -## Keep in mind that sane values start with >=10. -## -# -visualizer_sync_interval = 30 -# -## -## Note: To enable spectrum frequency visualization -## you need to compile ncmpcpp with fftw3 support. -## -# -## Available values: spectrum, wave, wave_filled, ellipse. -## -visualizer_type = spectrum -# -#visualizer_look = ●▮ -visualizer_look = "●•" -# -#visualizer_color = blue, cyan, green, yellow, magenta, red -# -## Alternative subset of 256 colors for terminals that support it. -## -#visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161 -# -##### system encoding ##### -## -## ncmpcpp should detect your charset encoding -## but if it failed to do so, you can specify -## charset encoding you are using here. -## -## Note: You can see whether your ncmpcpp build -## supports charset detection by checking output -## of `ncmpcpp --version`. -## -## Note: Since MPD uses UTF-8 by default, setting -## this option makes sense only if your encoding -## is different. -## -# -#system_encoding = "" -# -##### delays ##### -# -## Time of inactivity (in seconds) after playlist -## highlighting will be disabled (0 = always on). -## -#playlist_disable_highlight_delay = 5 -# -## Defines how long messages are supposed to be visible. -## -#message_delay_time = 5 -# -##### song format ##### -## -## For a song format you can use: -## -## %l - length -## %f - filename -## %D - directory -## %a - artist -## %A - album artist -## %t - title -## %b - album -## %y - date -## %n - track number (01/12 -> 01) -## %N - full track info (01/12 -> 01/12) -## %g - genre -## %c - composer -## %p - performer -## %d - disc -## %C - comment -## %P - priority -## $R - begin right alignment -## -## If you want to make sure that a part of the format is displayed -## only when certain tags are present, you can archieve it by -## grouping them with brackets, e.g. '{%a - %t}' will be evaluated -## to 'ARTIST - TITLE' if both tags are present or '' otherwise. -## It is also possible to define a list of alternatives by providing -## several groups and separating them with '|', e.g. '{%t}|{%f}' -## will be evaluated to 'TITLE' or 'FILENAME' if the former is not -## present. -## -## Note: If you want to set limit on maximal length of a tag, just -## put the appropriate number between % and character that defines -## tag type, e.g. to make album take max. 20 terminal cells, use '%20b'. -## -## In addition, formats support markers used for text attributes. -## They are followed by character '$'. After that you can put: -## -## - 0 - default window color (discards all other colors) -## - 1 - black -## - 2 - red -## - 3 - green -## - 4 - yellow -## - 5 - blue -## - 6 - magenta -## - 7 - cyan -## - 8 - white -## - 9 - end of current color -## - b - bold text -## - u - underline text -## - r - reverse colors -## - a - use alternative character set -## -## If you don't want to use a non-color attribute anymore, just put it -## again, but this time insert character '/' between '$' and attribute -## character, e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag -## or filename with reversed colors. -## -## If you want to use 256 colors and/or background colors in formats -## (the naming scheme is described below in section about color -## definitions), it can be done with the syntax $(COLOR), e.g. to set -## the artist tag to one of the non-standard colors and make it have -## yellow background, you need to write $(197_yellow)%a$(end). Note -## that for standard colors this is interchangable with attributes -## listed above. -## -## Note: colors can be nested. -## -# -#song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9} -# -#song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f} -# -#song_library_format = {%n - }{%t}|{%f} -# -# -#alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b -# -#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D} -# -#now_playing_prefix = $b -# -#now_playing_suffix = $/b -# -#browser_playlist_prefix = "$2playlist$9 " -# -#selected_item_prefix = $6 -# -#selected_item_suffix = $9 -# -#modified_item_prefix = $3> $9 -# -## -## Note: attributes are not supported for the following variables. -## -#song_window_title_format = {%a - }{%t}|{%f} -## -## Note: Below variables are used for sorting songs in browser. -## The sort mode determines how songs are sorted, and can be used -## in combination with a sort format to specify a custom sorting format. -## Available values for browser_sort_mode are "name", "mtime", "format" -## and "noop". -## -# -#browser_sort_mode = name -# -#browser_sort_format = {%a - }{%t}|{%f} {(%l)} -# -##### columns settings ##### -## -## syntax of song columns list format is "column column etc." -## -## - syntax for each column is: -## -## (width of the column)[color of the column]{displayed tag} -## -## Note: Width is by default in %, if you want a column to -## have fixed size, add 'f' after the value, e.g. (10)[white]{a} -## will be the column that take 10% of screen (so the real width -## will depend on actual screen size), whereas (10f)[white]{a} -## will take 10 terminal cells, no matter how wide the screen is. -## -## - color is optional (if you want the default one, -## leave the field empty). -## -## Note: You can give a column additional attributes by putting appropriate -## character after displayed tag character. Available attributes are: -## -## - r - column will be right aligned -## - E - if tag is empty, empty tag marker won't be displayed -## -## You can also: -## -## - give a column custom name by putting it after attributes, -## separated with character ':', e.g. {lr:Length} gives you -## right aligned column of lengths named "Length". -## -## - define sequence of tags, that have to be displayed in case -## predecessor is empty in a way similar to the one in classic -## song format, i.e. using '|' character, e.g. {a|c|p:Owner} -## creates column named "Owner" that tries to display artist -## tag and then composer and performer if previous ones are -## not available. -## -# -#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l} -# -##### various settings ##### -# -## -## Note: Custom command that will be executed each -## time song changes. Useful for notifications etc. -## -#execute_on_song_change = "" -# -#playlist_show_mpd_host = no -# -#playlist_show_remaining_time = no -# -#playlist_shorten_total_times = no -# -#playlist_separate_albums = no -# -## -## Note: Possible display modes: classic, columns. -## -#playlist_display_mode = columns -# -#browser_display_mode = classic -# -#search_engine_display_mode = classic -# -#playlist_editor_display_mode = classic -# -#discard_colors_if_item_is_selected = yes -# -#incremental_seeking = yes -# -#seek_time = 1 -# -#volume_change_step = 2 -# -#autocenter_mode = no -# -#centered_cursor = no -# -## -## Note: You can specify third character which will -## be used to build 'empty' part of progressbar. -## -#progressbar_look = => -progressbar_look = "─╼╶" -#progressbar_look = "─⊙╶" -# -#progressbar_boldness = yes -# -## Available values: database, playlist. -## -#default_place_to_search_in = database -# -## Available values: classic, alternative. -## -#user_interface = classic -# -#data_fetching_delay = yes -# -## Available values: artist, album_artist, date, genre, composer, performer. -## -#media_library_primary_tag = artist -# -## Available values: wrapped, normal. -## -#default_find_mode = wrapped -# -#default_tag_editor_pattern = %n - %t -# -#header_visibility = yes -# -#statusbar_visibility = yes -# -#titles_visibility = yes -# -#header_text_scrolling = yes -# -#cyclic_scrolling = no -# -#lines_scrolled = 2 -# -#follow_now_playing_lyrics = no -# -#fetch_lyrics_for_current_song_in_background = no -# -#store_lyrics_in_song_dir = no -# -#generate_win32_compatible_filenames = yes -# -#allow_for_physical_item_deletion = no -# -## -## Note: If you set this variable, ncmpcpp will try to -## get info from last.fm in language you set and if it -## fails, it will fall back to english. Otherwise it will -## use english the first time. -## -## Note: Language has to be expressed as an ISO 639 alpha-2 code. -## -#lastfm_preferred_language = en -# -#show_hidden_files_in_local_browser = no -# -## -## How shall screen switcher work? -## -## - "previous" - switch between the current and previous screen. -## - "screen1,...,screenN" - switch between given sequence of screens. -## -## Screens available for use: help, playlist, browser, search_engine, -## media_library, playlist_editor, tag_editor, outputs, visualizer, clock. -## -#screen_switcher_mode = playlist, browser -# -## -## Note: You can define startup screen -## by choosing screen from the list above. -## -#startup_screen = playlist -# -## -## Note: You can define startup slave screen -## by choosing screen from the list above or -## an empty value for no slave screen. -## -#startup_slave_screen = "" -# -#startup_slave_screen_focus = no -# -## -## Default width of locked screen (in %). -## Acceptable values are from 20 to 80. -## -# -#locked_screen_width_part = 50 -# -#ask_for_locked_screen_width_part = yes -# -#jump_to_now_playing_song_at_start = yes -# -#ask_before_clearing_playlists = yes -# -#clock_display_seconds = no -# -#display_volume_level = yes -# -#display_bitrate = no -# -#display_remaining_time = no -# -## Available values: none, basic, extended, perl. -## -#regular_expressions = perl -# -## -## Note: If below is enabled, ncmpcpp will ignore leading -## "The" word while sorting items in browser, tags in -## media library, etc. -## -#ignore_leading_the = no -# -#block_search_constraints_change_if_items_found = yes -# -#mouse_support = yes -# -#mouse_list_scroll_whole_page = yes -# -#empty_tag_marker = -# -#tags_separator = " | " -# -#tag_editor_extended_numeration = no -# -#media_library_sort_by_mtime = no -# -#enable_window_title = yes -# -## -## Note: You can choose default search mode for search -## engine. Available modes are: -## -## - 1 - use mpd built-in searching (no regexes, pattern matching) -## - 2 - use ncmpcpp searching (pattern matching with support for regexes, -## but if your mpd is on a remote machine, downloading big database -## to process it can take a while -## - 3 - match only exact values (this mode uses mpd function for searching -## in database and local one for searching in current playlist) -## -# -#search_engine_default_search_mode = 1 -# -#external_editor = nano -# -## Note: set to yes if external editor is a console application. -## -#use_console_editor = yes -# -##### colors definitions ##### -## -## It is possible to set a background color by setting a color -## value "_", e.g. red_black will set -## foregound color to red and background color to black. -## -## In addition, for terminals that support 256 colors it -## is possible to set one of them by using a number in range -## [1, 256] instead of color name, e.g. numerical value -## corresponding to red_black is 2_1. To find out if the -## terminal supports 256 colors, run ncmpcpp and check out -## the bottom of the help screen for list of available colors -## and their numerical values. -## -## Note: due to technical limitations of ncurses, if 256 colors -## are used, it is possible to either use only the colors with -## default background color, or all pairs from 1_1 up to 254_127, -## depending on the ncurses version used. -## -# -#colors_enabled = yes -# -#empty_tag_color = cyan -# -#header_window_color = default -# -#volume_color = default -# -#state_line_color = default -# -#state_flags_color = default -# -#main_window_color = yellow -# -#color1 = white -# -#color2 = green -# -#main_window_highlight_color = yellow -# -#progressbar_color = black -# -#progressbar_elapsed_color = green -# -#statusbar_color = default -# -#alternative_ui_separator_color = black -# -#active_column_color = red -# -#window_border_color = green -# -#active_window_border = red -# -#+end_src - -*** bindings -:PROPERTIES: -:header-args+: :tangle ~/.ncmpcpp/bindings -:END: - -#+begin_src conf :tangle no -def_key "j" - scroll_down -def_key "k" - scroll_up - -def_key "ctrl-u" - page_up -def_key "ctrl-d" - page_down - -def_key "h" - previous_column -def_key "l" - next_column - -def_key "." - show_lyrics - -def_key "n" - next_found_item -def_key "N" - previous_found_item - -def_key "J" - move_sort_order_down -def_key "K" - move_sort_order_up -#+end_src - -** pigeonhole -*** amin.sieve -:PROPERTIES: -:header-args+: :tangle ~/mail/bndl.org/amin/sieve/amin.sieve :comments none -:END: - -#+begin_src conf -require ["regex", "variables", "fileinto", "envelope", - "mailbox", "imap4flags", "include"]; - -# webmasters -if anyof ( - address :is "from" ["webmasters@gnu.org", "webmasters-comment@gnu.org"]) { - fileinto :create "gnu.webmasters"; - stop; -} - -include :personal "lists"; -#+end_src - -*** lists.sieve -:PROPERTIES: -:header-args+: :tangle ~/mail/bndl.org/amin/sieve/lists.sieve :comments none -:END: - -#+begin_src conf -require ["regex", "variables", "fileinto", "envelope", - "mailbox", "imap4flags", "include"]; - -# mailing lists -if anyof ( - header :contains "list-id" - [ "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - , "" - ] ) { - if header :regex "list-id" "<([a-z_0-9-]+)[.@]" { - set :lower "listname" "${1}"; - fileinto :create "gnu.${listname}"; - stop; - } -} - -# sr.ht lists, with dots ('.') omitted -if anyof ( - header :contains "list-id" - [ "<~bandali/public-inbox@lists.sr.ht>" - , "<~sircmpwn/sr.ht-admins@lists.sr.ht>" - , "<~sircmpwn/sr.ht-announce@lists.sr.ht>" - , "<~sircmpwn/sr.ht-dev@lists.sr.ht>" - , "<~sircmpwn/sr.ht-discuss@lists.sr.ht>" - ] ) { - if header :regex "list-id" "(~[a-z_0-9-]+)/([^.]*)\\.?([^.]*)\\.?([^.]*)\\.?([^.]*)\\.?([^.]*)\\.?([^.]*)@" { - set :lower "username" "${1}"; - set :lower "listname" "${2}${3}${4}${5}${6}${7}"; - fileinto :create "gnu.${username}.${listname}"; - stop; - } -} -#+end_src - ** Readline :PROPERTIES: :header-args+: :tangle ~/.config/readline/inputrc @@ -2323,414 +1673,9 @@ TTYVTDisallocate=no ** TLP -*** langa - -#+begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "langa")) "/sudo::/etc/default/tlp") -# ------------------------------------------------------------------------------ -# tlp - Parameters for power saving -# See full explanation: https://linrunner.de/en/tlp/docs/tlp-configuration.html - -# Notes: -# - Some parameters are disabled, remove the leading '#' to enable # them; -# shown values are suggestions not defaults -# - Default *: intrinsic default that is effective when the parameter is missing -# or disabled by a leading '#'; use PARAM="" to disable intrinsic defaults for -# parameters with text string values -# - Default : do nothing or use kernel/hardware defaults - -# Set to 0 to disable, 1 to enable TLP. -# Default: 0 -TLP_ENABLE=1 - -# Operation mode when no power supply can be detected: AC, BAT. -# Concerns some desktop and embedded hardware only. -# Default: -TLP_DEFAULT_MODE=AC - -# Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE -# Hint: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC. -# Default: 0 -TLP_PERSISTENT_DEFAULT=0 - -# Seconds laptop mode has to wait after the disk goes idle before doing a sync. -# Non-zero value enables, zero disables laptop mode. -# Default: 0 (AC), 2 (BAT) -DISK_IDLE_SECS_ON_AC=0 -DISK_IDLE_SECS_ON_BAT=2 - -# Dirty page values (timeouts in secs). -# Default: 15 (AC + BAT) -MAX_LOST_WORK_SECS_ON_AC=15 -MAX_LOST_WORK_SECS_ON_BAT=60 - -# Note: CPU parameters below are disabled by default, remove the leading # -# to enable them, otherwise kernel defaults will be used. - -# Select a CPU frequency scaling governor. -# Intel Core i processor with intel_pstate driver: -# powersave(*), performance. -# Older hardware with acpi-cpufreq driver: -# ondemand(*), powersave, performance, conservative, schedutil. -# (*) is recommended. -# Use tlp-stat -p to show the active driver and available governors. -# Important: -# powersave for intel_pstate and ondemand for acpi-cpufreq are power -# efficient for *almost all* workloads and therefore kernel and most -# distributions have chosen them as defaults. If you still want to change, -# you should know what you're doing! You *must* disable your distribution's -# governor settings or conflicts will occur. -# Default: -#CPU_SCALING_GOVERNOR_ON_AC=powersave -#CPU_SCALING_GOVERNOR_ON_BAT=powersave - -# Set the min/max frequency available for the scaling governor. -# Possible values depend on your CPU. For available frequencies see -# the output of tlp-stat -p. -# Default: -#CPU_SCALING_MIN_FREQ_ON_AC=0 -#CPU_SCALING_MAX_FREQ_ON_AC=0 -#CPU_SCALING_MIN_FREQ_ON_BAT=0 -#CPU_SCALING_MAX_FREQ_ON_BAT=0 - -# Set energy performance hints (HWP) for Intel P-state governor: -# performance, balance_performance, default, balance_power, power -# Values are given in order of increasing power saving. -# Note: Intel Skylake or newer CPU and Kernel >= 4.10 required. -# Default: -CPU_HWP_ON_AC=balance_performance -CPU_HWP_ON_BAT=balance_power - -# Set Intel P-state performance: 0..100 (%). -# Limit the max/min P-state to control the power dissipation of the CPU. -# Values are stated as a percentage of the available performance. -# Requires an Intel Core i processor with intel_pstate driver. -# Default: -#CPU_MIN_PERF_ON_AC=0 -#CPU_MAX_PERF_ON_AC=100 -#CPU_MIN_PERF_ON_BAT=0 -#CPU_MAX_PERF_ON_BAT=30 - -# Set the CPU "turbo boost" feature: 0=disable, 1=allow -# Requires an Intel Core i processor. -# Important: -# - This may conflict with your distribution's governor settings -# - A value of 1 does *not* activate boosting, it just allows it -# Default: -#CPU_BOOST_ON_AC=1 -#CPU_BOOST_ON_BAT=0 - -# Minimize number of used CPU cores/hyper-threads under light load conditions: -# 0=disable, 1=enable. -# Default: -SCHED_POWERSAVE_ON_AC=0 -SCHED_POWERSAVE_ON_BAT=1 - -# Kernel NMI Watchdog: -# 0=disable (default, saves power), 1=enable (for kernel debugging only). -# Default: -NMI_WATCHDOG=0 - -# Change CPU voltages aka "undervolting" - Kernel with PHC patch required. -# Frequency voltage pairs are written to: -# /sys/devices/system/cpu/cpu0/cpufreq/phc_controls -# CAUTION: only use this, if you thoroughly understand what you are doing! -# Default: . -#PHC_CONTROLS="F:V F:V F:V F:V" - -# Set CPU performance versus energy savings policy: -# performance, balance-performance, default, balance-power, power. -# Values are given in order of increasing power saving. -# Requires kernel module msr and x86_energy_perf_policy from linux-tools. -# Default: -ENERGY_PERF_POLICY_ON_AC=performance -ENERGY_PERF_POLICY_ON_BAT=balance-power - -# Disk devices; separate multiple devices with spaces. -# Devices can be specified by disk ID also (lookup with: tlp diskid). -# Note: DISK parameters below are effective only when this option is configured. -# Default: "nvme0n1 sda" -DISK_DEVICES="sda sdb" - -# Disk advanced power management level: 1..254, 255 (max saving, min, off). -# Levels 1..127 may spin down the disk; 255 allowable on most drives. -# Separate values for multiple disks with spaces. Use the special value 'keep' -# to keep the hardware default for the particular disk. -# Default: -DISK_APM_LEVEL_ON_AC="254 254" -DISK_APM_LEVEL_ON_BAT="128 128" - -# Hard disk spin down timeout: -# 0: spin down disabled -# 1..240: timeouts from 5s to 20min (in units of 5s) -# 241..251: timeouts from 30min to 5.5 hours (in units of 30min) -# See 'man hdparm' for details. -# Separate values for multiple disks with spaces. Use the special value 'keep' -# to keep the hardware default for the particular disk. -# Default: -#DISK_SPINDOWN_TIMEOUT_ON_AC="0 0" -#DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0" - -# Select I/O scheduler for the disk devices. -# Multi queue (blk-mq) schedulers: -# mq-deadline(*), none, kyber, bfq -# Single queue schedulers: -# deadline(*), cfq, bfq, noop -# (*) recommended. -# Separate values for multiple disks with spaces. Use the special value 'keep' -# to keep the kernel default scheduler for the particular disk. -# Notes: -# - Multi queue (blk-mq) may need kernel boot option 'scsi_mod.use_blk_mq=1' -# and 'modprobe mq-deadline-iosched|kyber|bfq' on kernels < 5.0 -# - Single queue schedulers are legacy now and were removed together with -# the old block layer in kernel 5.0 -# Default: keep -#DISK_IOSCHED="mq-deadline mq-deadline" - -# AHCI link power management (ALPM) for disk devices: -# min_power, med_power_with_dipm(*), medium_power, max_performance. -# (*) Kernel >= 4.15 required, then recommended. -# Multiple values separated with spaces are tried sequentially until success. -# Default: -SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance" -SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power" - -# Exclude host devices from AHCI link power management. -# Separate multiple hosts with spaces. -# Default: -#SATA_LINKPWR_BLACKLIST="host1" - -# Runtime Power Management for AHCI host and disks devices: -# on=disable, auto=enable. -# EXPERIMENTAL ** WARNING: auto may cause system lockups/data loss. -# Default: -#AHCI_RUNTIME_PM_ON_AC=on -#AHCI_RUNTIME_PM_ON_BAT=on - -# Seconds of inactivity before disk is suspended. -# Note: effective only when AHCI_RUNTIME_PM_ON_AC/BAT is activated. -# Default: 15 -AHCI_RUNTIME_PM_TIMEOUT=15 - -# PCI Express Active State Power Management (PCIe ASPM): -# default(*), performance, powersave. -# (*) keeps BIOS ASPM defaults (recommended) -# Default: -#PCIE_ASPM_ON_AC=default -#PCIE_ASPM_ON_BAT=default - -# Set the min/max/turbo frequency for the Intel GPU. -# Possible values depend on your hardware. For available frequencies see -# the output of tlp-stat -g. -# Default: -#INTEL_GPU_MIN_FREQ_ON_AC=0 -#INTEL_GPU_MIN_FREQ_ON_BAT=0 -#INTEL_GPU_MAX_FREQ_ON_AC=0 -#INTEL_GPU_MAX_FREQ_ON_BAT=0 -#INTEL_GPU_BOOST_FREQ_ON_AC=0 -#INTEL_GPU_BOOST_FREQ_ON_BAT=0 - -# Radeon graphics clock speed (profile method): low, mid, high, auto, default; -# auto = mid on BAT, high on AC. -# Default: default -RADEON_POWER_PROFILE_ON_AC=default -RADEON_POWER_PROFILE_ON_BAT=default - -# Radeon dynamic power management method (DPM): battery, performance. -# Default: -RADEON_DPM_STATE_ON_AC=performance -RADEON_DPM_STATE_ON_BAT=battery - -# Radeon DPM performance level: auto, low, high; auto is recommended. -# Note: effective only when RADEON_DPM_STATE_ON_AC/BAT is activated. -# Default: auto -RADEON_DPM_PERF_LEVEL_ON_AC=auto -RADEON_DPM_PERF_LEVEL_ON_BAT=auto - -# WiFi power saving mode: on=enable, off=disable; not supported by all adapters. -# Default: -WIFI_PWR_ON_AC=off -WIFI_PWR_ON_BAT=on - -# Disable wake on LAN: Y/N. -# Default: N -WOL_DISABLE=Y - -# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs). -# A value of 0 disables, >=1 enables power saving (recommended: 1). -# Default: -SOUND_POWER_SAVE_ON_AC=0 -SOUND_POWER_SAVE_ON_BAT=0 - -# Disable controller too (HDA only): Y/N. -# Note: effective only when SOUND_POWER_SAVE_ON_AC/BAT is activated. -# Default: Y -SOUND_POWER_SAVE_CONTROLLER=N - -# Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable. -# Drive can be powered on again by releasing (and reinserting) the eject lever -# or by pressing the disc eject button on newer models. -# Note: an UltraBay/MediaBay hard disk is never powered off. -# Default: 0 -BAY_POWEROFF_ON_AC=0 -BAY_POWEROFF_ON_BAT=0 -# Optical drive device to power off -# Default: sr0 -BAY_DEVICE="sr0" - -# Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable. -# Default: -RUNTIME_PM_ON_AC=on -RUNTIME_PM_ON_BAT=auto - -# Exclude PCI(e) device adresses the following list from Runtime PM -# (separate with spaces). Use lspci to get the adresses (1st column). -# Default: -#RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6" - -# Exclude PCI(e) devices assigned to the listed drivers from Runtime PM. -# Default when unconfigured is "amdgpu nouveau nvidia radeon" which -# prevents accidential power-on of dGPU in hybrid graphics setups. -# Separate multiple drivers with spaces. -# Default: "amdgpu mei_me nouveau nvidia pcieport radeon", use "" to disable -# completely. -#RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon" - -# Set to 0 to disable, 1 to enable USB autosuspend feature. -# Default: 0 -USB_AUTOSUSPEND=1 - -# Exclude listed devices from USB autosuspend (separate with spaces). -# Use lsusb to get the ids. -# Note: input devices (usbhid) are excluded automatically -# Default: -#USB_BLACKLIST="1111:2222 3333:4444" - -# Bluetooth devices are excluded from USB autosuspend: -# 0=do not exclude, 1=exclude. -# Default: 0 -USB_BLACKLIST_BTUSB=0 - -# Phone devices are excluded from USB autosuspend: -# 0=do not exclude, 1=exclude (enable charging). -# Default: 0 -USB_BLACKLIST_PHONE=0 - -# Printers are excluded from USB autosuspend: -# 0=do not exclude, 1=exclude. -# Default: 1 -USB_BLACKLIST_PRINTER=1 - -# WWAN devices are excluded from USB autosuspend: -# 0=do not exclude, 1=exclude. -# Default: 0 -USB_BLACKLIST_WWAN=0 - -# Include listed devices into USB autosuspend even if already excluded -# by the blacklists above (separate with spaces). Use lsusb to get the ids. -# Default: -#USB_WHITELIST="1111:2222 3333:4444" - -# Set to 1 to disable autosuspend before shutdown, 0 to do nothing -# (workaround for USB devices that cause shutdown problems). -# Default: 0 -#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1 - -# Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown -# on system startup: 0=disable, 1=enable. -# Note: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below -# are ignored when this is enabled. -# Default: 0 -#RESTORE_DEVICE_STATE_ON_STARTUP=0 -RESTORE_DEVICE_STATE_ON_STARTUP=1 - -# Radio devices to disable on startup: bluetooth, wifi, wwan. -# Separate multiple devices with spaces. -# Default: -#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan" - -# Radio devices to enable on startup: bluetooth, wifi, wwan. -# Separate multiple devices with spaces. -# Default: -#DEVICES_TO_ENABLE_ON_STARTUP="wifi" - -# Radio devices to disable on shutdown: bluetooth, wifi, wwan. -# (workaround for devices that are blocking shutdown). -# Default: -#DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan" - -# Radio devices to enable on shutdown: bluetooth, wifi, wwan. -# (to prevent other operating systems from missing radios). -# Default: -#DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan" - -# Radio devices to enable on AC: bluetooth, wifi, wwan. -# Default: -#DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan" - -# Radio devices to disable on battery: bluetooth, wifi, wwan. -# Default: -#DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan" -DEVICES_TO_DISABLE_ON_BAT="bluetooth" - -# Radio devices to disable on battery when not in use (not connected): -# bluetooth, wifi, wwan. -# Default: -#DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan" - -# Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module -# required). Charging starts when the remaining capacity falls below the -# START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value. -# Main / Internal battery (values in %) -# Default: -#START_CHARGE_THRESH_BAT0=75 -#STOP_CHARGE_THRESH_BAT0=80 -# Ultrabay / Slice / Replaceable battery (values in %) -# Default: -#START_CHARGE_THRESH_BAT1=75 -#STOP_CHARGE_THRESH_BAT1=80 - -# Restore charge thresholds when AC is unplugged: 0=disable, 1=enable. -# Default: 0 -#RESTORE_THRESHOLDS_ON_BAT=1 - -# Battery feature drivers: 0=disable, 1=enable -# Default: 1 (all) -NATACPI_ENABLE=1 -TPACPI_ENABLE=1 -TPSMAPI_ENABLE=1 - -# ------------------------------------------------------------------------------ -# tlp-rdw - Parameters for the radio device wizard -# Possible devices: bluetooth, wifi, wwan. - -# Notes: -# - Parameters are disabled by default, remove the leading # to enable them -# - Separate multiple radio devices with spaces - -# Default: (for all parameters below) - -# Radio devices to disable on connect. -#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan" -#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan" -#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi" - -# Radio devices to enable on disconnect. -#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan" -#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT="" -#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT="" - -# Radio devices to enable/disable when docked. -#DEVICES_TO_ENABLE_ON_DOCK="" -#DEVICES_TO_DISABLE_ON_DOCK="" - -# Radio devices to enable/disable when undocked. -#DEVICES_TO_ENABLE_ON_UNDOCK="wifi" -#DEVICES_TO_DISABLE_ON_UNDOCK="" -#+end_src - -*** shemshak +*** darrud -#+begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "shemshak")) "/sudo::/etc/default/tlp") +#+begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "darrud")) "/sudo::/etc/default/tlp") # ------------------------------------------------------------------------------ # tlp - Parameters for power saving # See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html @@ -2776,6 +1721,8 @@ MAX_LOST_WORK_SECS_ON_BAT=60 # governor settings or conflicts will occur. #CPU_SCALING_GOVERNOR_ON_AC=powersave #CPU_SCALING_GOVERNOR_ON_BAT=powersave +CPU_SCALING_GOVERNOR_ON_AC=conservative +CPU_SCALING_GOVERNOR_ON_BAT=conservative # Set the min/max frequency available for the scaling governor. # Possible values strongly depend on your CPU. For available frequencies see