diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi deleted file mode 100644 index 609dc1d0..00000000 --- a/rofi/.config/rofi/config.rasi +++ /dev/null @@ -1,25 +0,0 @@ -configuration { - modi: ["drun", "filebrowser"]; - font: "Noto Sans CJK JP 12"; - show-icons: true; - bw: 0; - display-drun: ""; - display-window: ""; - display-combi: ""; - drun-icon-theme: "Papirus-Dark"; - terminal: "kitty"; - scroll-method: 1; - run-shell-command: "{terminal} -e fish -ic '{cmd} && read'"; -} - -@theme "~/.cache/wal/rofi.rasi" - -listview { - columns: 3; -} - -window { - width: 1200px; -} - -// vim:syn=java diff --git a/rofi/.config/rofi/launch.sh b/rofi/.config/rofi/launch.sh deleted file mode 100755 index 6decf5a6..00000000 --- a/rofi/.config/rofi/launch.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh -# New Start: A modern Arch workflow built with an emphasis on functionality. -# Copyright (C) 2018 Donovan Glover - -# This script will find the X server DPI and apply the necessary -# settings to make Rofi, X, GNOME, and KDE applications have the -# proper scaling, with no intervention from the user necessary. - -# Note that XDG_CURRENT_DESKTOP is required for KDE/Qt applications to -# have the proper theming in non-Plasma environments. In contrast, GNOME -# respects its theming even when XDG_CURRENT_DESKTOP is not set to it -# (through settings.ini). - -# Note that the xcursor size is specified with: -# -# 1. The X server resource database (xrdb), of which cursor size is -# only applied BEFORE your window manager starts -# 2. The xsetroot command, which affects the cursor shown on the root -# window (your desktop) -# 3. The XCURSOR_SIZE environment variable, which affects the current -# program -# -# There are a few things to take away from this: -# -# 1. The root window (desktop) cursor size MUST be changed with xsetroot -# 2. KDE applications will honor XCURSOR_SIZE but NOT xsetroot -# 3. GTK applications will honor xsetroot but NOT XCURSOR_SIZE -# -# Additionally, -# -# 4. SOME X applications require XCURSOR_SIZE to be set and will NOT -# honor xsetroot -# 5. SOME X applications require xsetroot to be set and will NOT -# honor XCURSOR_SIZE -# -# So for a consistent variable cursor DPI environment, one has to set BOTH -# xsetroot and XCURSOR_SIZE -# -# Note that existing windows will NOT have their X cursor size changed -# if they don't depend on xsetroot. Because of this, and because of the -# fact that active windows will not handle DPI changes anyway, you should -# probably have no GUIs running when switching DPI. - -# Kill rofi if it's already running to make this a simple toggle script. -if pgrep -x rofi; then - killall rofi - exit -fi - -ROFI_DPI=$(xrdb -query | grep Xft.dpi | cut -f 2) -ROFI_SCALE=$(expr $ROFI_DPI / 96) -ROFI_DPI_SCALE=$(awk "BEGIN { print "1/$ROFI_SCALE" }") - -CURSOR_THEME=${XCURSOR_THEME:-phinger-cursors} -CURSOR_SIZE=$((16 * $ROFI_SCALE)) - -xsetroot -xcf "/usr/share/icons/$CURSOR_THEME/cursors/left_ptr" "$CURSOR_SIZE" - -env \ - QT_AUTO_SCREEN_SCALE_FACTOR="0" \ - QT_FONT_DPI="$ROFI_DPI" \ - QT_SCREEN_SCALE_FACTORS="VGA-1=$ROFI_SCALE;" \ - GDK_SCALE="$ROFI_SCALE" \ - GDK_DPI_SCALE="$ROFI_DPI_SCALE" \ - XCURSOR_SIZE="$CURSOR_SIZE" \ - rofi \ - -show drun \ - -dpi "$ROFI_DPI" \ - -normal-window \ - -m -1 diff --git a/rofi/.config/wal/templates/rofi.rasi b/rofi/.config/wal/templates/rofi.rasi deleted file mode 100644 index bf7dc092..00000000 --- a/rofi/.config/wal/templates/rofi.rasi +++ /dev/null @@ -1,169 +0,0 @@ -* {{ - active-background: @background; - active-foreground: @foreground; - normal-background: @background; - normal-foreground: @foreground; - urgent-background: @background; - urgent-foreground: @foreground; - - alternate-active-background: @background; - alternate-active-foreground: @foreground; - alternate-normal-background: @background; - alternate-normal-foreground: @foreground; - alternate-urgent-background: @background; - alternate-urgent-foreground: @foreground; - - selected-active-background: {color8}; - selected-active-foreground: @foreground; - selected-normal-background: {color8}; - selected-normal-foreground: @foreground; - selected-urgent-background: {color8}; - selected-urgent-foreground: @foreground; - - background-color: transparent; - background: rgba({background.rgb}, 0.9); - foreground: {foreground}; - border-color: @background; - spacing: 2; -}} - -#window {{ - background-color: @background; - border: 1px; - border-color: {color7}; - padding: 2.5ch; -}} - -#mainbox {{ - border: 0; - padding: 0; -}} - -#message {{ - border: 2px 0px 0px; - border-color: @border-color; - padding: 1px; -}} - -#textbox {{ - text-color: @foreground; -}} - -#inputbar {{ - children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; -}} - -#textbox-prompt-colon {{ - expand: false; - str: ":"; - margin: 0px 0.3em 0em 0em; - text-color: @normal-foreground; -}} - -#listview {{ - fixed-height: 0; - border: 2px 0px 0px; - border-color: @border-color; - spacing: 2px; - scrollbar: true; - padding: 2px 0px 0px; -}} - -#element {{ - border: 0; - padding: 1px; -}} - -#element-text, element-icon {{ - background-color: inherit; - text-color: inherit; -}} - -#element.normal.normal {{ - background-color: transparent; - text-color: @normal-foreground; -}} - -#element.normal.urgent {{ - background-color: transparent; - text-color: @urgent-foreground; -}} - -#element.normal.active {{ - background-color: transparent; - text-color: @active-foreground; -}} - -#element.selected.normal {{ - background-color: transparent; - text-color: @selected-normal-foreground; -}} - -#element.selected.urgent {{ - background-color: transparent; - text-color: @selected-urgent-foreground; -}} - -#element.selected.active {{ - background-color: transparent; - text-color: @selected-active-foreground; -}} - -#element.alternate.normal {{ - background-color: transparent; - text-color: @alternate-normal-foreground; -}} - -#element.alternate.urgent {{ - background-color: transparent; - text-color: @alternate-urgent-foreground; -}} - -#element.alternate.active {{ - background-color: transparent; - text-color: @alternate-active-foreground; -}} - -#scrollbar {{ - width: 4px; - border: 0; - handle-width: 8px; - padding: 0; -}} - -#sidebar {{ - border: 2px 0px 0px; - border-color: @border-color; -}} - -#button {{ - text-color: @normal-foreground; -}} - -#button.selected {{ - background-color: transparent; - text-color: @selected-normal-foreground; -}} - -#inputbar {{ - spacing: 0; - text-color: @normal-foreground; - padding: 1px; -}} - -#case-indicator {{ - spacing: 0; - text-color: @normal-foreground; -}} - -#entry {{ - spacing: 0; - text-color: @normal-foreground; -}} - -#prompt {{ - spacing: 0; - text-color: @normal-foreground; -}} - -// vim:syn=css diff --git a/rofi/README.md b/rofi/README.md deleted file mode 100644 index 99d4435e..00000000 --- a/rofi/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# rofi - -[rofi][rofi] is an application launcher, window switcher, and dmenu replacement. - -## Use Cases - -rofi can be used to: - -- Launch applications based on `.desktop` files -- Show all open windows and switch between them -- Parse dmenu-like input - -You should not use rofi if: - -- Your desktop environment already has an application launcher and window switcher - -[rofi]: https://github.com/DaveDavenport/rofi