If you want the physical Control key to become Caps Lock, run this:
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swapcaps']"To undo changes, run this:
gsettings reset org.gnome.desktop.input-sources xkb-optionsIf you want the physical Control key to become Caps Lock, run this:
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swapcaps']"To undo changes, run this:
gsettings reset org.gnome.desktop.input-sources xkb-optionsAdd this flatpak environment variable globally
XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/iconsYou can do it with a Flatseal if you prefer GUI.
Alternatively, you can copy paste this command to do the job.
flatpak --user override --env "XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"| ! Restore Ctrl+Shift+(c|v) | |
| URxvt.keysym.Shift-Control-V: eval:paste_clipboard | |
| URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard | |
| URxvt.iso14755: false | |
| URxvt.iso14755_52: false | |
| ! Appearance | |
| URxvt.font: xft:Monospace:size=12 | |
| URxvt.background: black | |
| URxvt.foreground: white |
/ and type this in the search bar:\%Vpattern| #include <stdio.h> | |
| #include <ctype.h> | |
| #include <stdlib.h> | |
| typedef struct node { | |
| char ch; | |
| struct node* next; | |
| } node; | |
| node* type(node* next); |
| @media (prefers-color-scheme: dark) { | |
| body { | |
| background: #202020; | |
| color: silver; | |
| } | |
| a { | |
| color: white; | |
| } | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define BUFFER_SIZE 512 | |
| int main(void) | |
| { | |
| char* string = malloc(sizeof(char) * BUFFER_SIZE); | |
| if (!string) return 1; |
| from fire import Fire | |
| def checksum(cardnumber: int): | |
| cardnumber = [int(i) for i in str(cardnumber)] | |
| cardnumber.reverse() | |
| odd = [v for i, v in enumerate(cardnumber) if i % 2 == 0] | |
| even = [v for i, v in enumerate(cardnumber) if i % 2 != 0] | |
| even_sum = int() | |
| for i in even: |
I recently encountered an issue where my Google Chrome browser was unable to set the prefers-color-scheme option to dark, even though I had configured it to do so in the gtk settings.ini file. This problem only occurred with Sway; in other desktop environments, Chrome set that option correctly.
The solution to this problem was the following command:
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'